public interface DpAuthorizationCallback
| Modifier and Type | Field and Description | 
|---|---|
static int | 
M_CHECK_CMD_ACCESS  | 
static int | 
M_CHECK_DATA_ACCESS  | 
| Modifier and Type | Method and Description | 
|---|---|
AuthorizationResult | 
checkCommandAccess(DpAuthorizationContext context,
                  String[] commandTokens,
                  AuthorizationOperCheck operation)
This callback is invoked for command authorization, i.e. 
 | 
AuthorizationResult | 
checkDataAccess(DpAuthorizationContext context,
               ConfObject[] kp,
               AuthorizationOperCheck operation,
               AuthorizationOperCheck how)  | 
EnumSet<AuthorizationOperCheck> | 
commandFilter()
Thus method can be used to prevent access checks from causing invocation
 of a checkCommandAccess callback even though it is registered. 
 | 
EnumSet<AuthorizationOperCheck> | 
dataFilter()
Thus method can be used to prevent access checks from causing invocation
 of a checkDataAccess callback even though it is registered. 
 | 
int | 
mask()
Mask of flags for each method that is supported by this callback:
 
   
DpAuthorizationCallback.M_CHECK_CMD_ACCESS
  DpAuthorizationCallback.M_CHECK_DATA_ACCESS
  | 
static final int M_CHECK_CMD_ACCESS
static final int M_CHECK_DATA_ACCESS
int mask()
AuthorizationResult checkCommandAccess(DpAuthorizationContext context, String[] commandTokens, AuthorizationOperCheck operation) throws DpCallbackException
context - the authorization contextcommandTokens - command represented as a string of tokensoperation - AuthorizationOperCheck describing the operatopn typeDpCallbackExceptionAuthorizationResult checkDataAccess(DpAuthorizationContext context, ConfObject[] kp, AuthorizationOperCheck operation, AuthorizationOperCheck how) throws DpCallbackException
context - the authorization contextkp - the data element represented by an array of ConfObjectoperation - AuthorizationOperCheck describing the operatopn typehow - checking state INTERMEDIATE or FINALDpCallbackExceptionEnumSet<AuthorizationOperCheck> commandFilter()
EnumSet<AuthorizationOperCheck> dataFilter()