|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.sandev.basics.Authorizer.DummyAuthFilter
public class DummyAuthFilter
A dummy AuthFilter that lets just lets everything through.
| Field Summary |
|---|
| Fields inherited from interface org.sandev.basics.util.AuthFilter |
|---|
AUTH_ARRAYACCESS, AUTH_ARRAYADD, AUTH_ARRAYDELETE, AUTH_ARRAYMOVE, AUTH_ARRAYNEW, AUTH_NOACCESS, AUTH_READONLY, AUTH_READONLYNODISP, AUTH_UNRESTRICTED, AUTH_UNRESTRICTEDNODISP, AUTH_UNRESTRICTEDREADONLY, AUTH_VALHIDDEN |
| Constructor Summary | |
|---|---|
DummyAuthFilter()
|
|
| Method Summary | |
|---|---|
SandAttrVal[] |
matchRestrictions(AuthUser user,
java.lang.String className,
SandAttrVal[] savs)
Return additional match constraints for a query or entry display. |
int |
messageClassAccess(AuthUser user,
java.lang.String className)
Return one of the AUTH* constants describing allowed access to the specified class. |
int |
messageFieldAccess(AuthUser user,
SandMessage msg,
java.lang.String fieldName)
Return one of the AUTH* constants describing the allowed access to the specified field in the specified class. |
int |
messageFieldValueAccess(AuthUser user,
SandMessage msg,
java.lang.String fieldName)
Return one of the AUTH* constants describing the allowed access to the specified field in the given message instance. |
int |
messageInstanceAccess(AuthUser user,
SandMessage msg)
Return one of the AUTH* constants describing allowed access to the specified class instance. |
int |
tokenAccess(AuthUser user,
java.lang.String token)
Return one of the AUTH* constants describing the allowed access to the specified token. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DummyAuthFilter()
| Method Detail |
|---|
public int messageClassAccess(AuthUser user,
java.lang.String className)
throws SandException
AuthFilterUsage:
messageClassAccess in interface AuthFilterSandException
public int messageInstanceAccess(AuthUser user,
SandMessage msg)
throws SandException
AuthFilterUsage:
This method is called only if messageClassAccess is allowed.
messageInstanceAccess in interface AuthFilterSandException
public int messageFieldAccess(AuthUser user,
SandMessage msg,
java.lang.String fieldName)
throws SandException
AuthFilterUsage:
This method is called only if messageInstanceAccess is allowed.
messageFieldAccess in interface AuthFilterSandException
public int messageFieldValueAccess(AuthUser user,
SandMessage msg,
java.lang.String fieldName)
throws SandException
AuthFilterUsage:
This method is called only if messageFieldAccess is allowed.
messageFieldValueAccess in interface AuthFilterSandException
public SandAttrVal[] matchRestrictions(AuthUser user,
java.lang.String className,
SandAttrVal[] savs)
throws SandException
AuthFilterThe match constraints are added by the Authorizer when
processing a query, to prevent unauthorized information from
being retrieved. The same constraints can also be used by the
UI to filter and check for invalid options.
When filtering possible field values in the UI, care must be
taken to monitor the number of available values remaining. If
only one value is possible, then the field should be switched
to READONLY with that value. If no values are possible the field
should be switched to NOACCESS. Similar logic applies to range
reductions on integer values.
The current query values are provided as a reference for existing restrictions to avoid duplication or add successive refinements.
Usage:
matchRestrictions in interface AuthFilterSandException
public int tokenAccess(AuthUser user,
java.lang.String token)
throws SandException
AuthFilterUsage:
tokenAccess in interface AuthFilterSandException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||