Interface AuthorizationEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply AuthorizationEnablers to
Authorizations . An Authorization with multiple
AuthorizationEnablers means any positive rule evaluation across the
enablers result in an effective Authorization .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignAuthorizationEnablerToAuthorization(Id authorizationEnablerId, Id authorizationId) Adds an existingAuthorizationEnablerto anAuthorization.booleanTests if this user can alter authorization enabler/authorization mappings.booleanTests if this user can orderAuthorizationEnablers.getVault()Gets theVaultassociated with this session.Gets theVaultIdassociated with this session.voidmoveAuthorizationEnablerAhead(Id authorizationEnablerId, Id authorizationId, Id referenceId) Reorders authorization enablers for an authorization by moving the specified authorization enabler in front of a reference authorization enabler.voidmoveAuthorizationEnablerBehind(Id authorizationEnablerId, Id authorizationId, Id referenceId) Reorders authorization enablers for an authorization by moving the specified authorization enabler behind a reference authorization enabler.voidorderAuthorizationEnablers(Id[] authorizationEnablerIds, Id authorizationId) Reorders a set of authorization enablers for an authorization.voidunassignAuthorizationEnablerFromAuthorization(Id authorizationEnablerId, Id authorizationId) Removes anAuthorizationEnablerfrom anAuthorization.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.
-
Method Details
-
getVaultId
Id getVaultId()Gets theVaultIdassociated with this session.- Returns:
- the
Vault Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getVault
Gets theVaultassociated with this session.- Returns:
- the vault
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canAssignAuthorizationEnablers
boolean canAssignAuthorizationEnablers()Tests if this user can alter authorization enabler/authorization mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping methods in this session will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.- Returns:
falseif mapping is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
assignAuthorizationEnablerToAuthorization
void assignAuthorizationEnablerToAuthorization(Id authorizationEnablerId, Id authorizationId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingAuthorizationEnablerto anAuthorization.- Parameters:
authorizationEnablerId- theIdof theAuthorizationEnablerauthorizationId- theIdof theAuthorization- Throws:
AlreadyExistsException-authorizationEnablerIdalready assigned toauthorizationIdNotFoundException-authorizationEnablerIdorauthorizationIdnot foundNullArgumentException-authorizationEnablerIdorauthorizationIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignAuthorizationEnablerFromAuthorization
void unassignAuthorizationEnablerFromAuthorization(Id authorizationEnablerId, Id authorizationId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes anAuthorizationEnablerfrom anAuthorization.- Parameters:
authorizationEnablerId- theIdof theAuthorizationEnablerauthorizationId- theIdof theAuthorization- Throws:
NotFoundException-authorizationEnablerIdorauthorizationIdnot found or not mappedNullArgumentException-authorizationEnablerIdorauthorizationIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceAuthorizationEnablers
boolean canSequenceAuthorizationEnablers()Tests if this user can orderAuthorizationEnablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known sequencing operations will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer sequencing operations to an unauthorized user.- Returns:
falseifAuthorizationEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveAuthorizationEnablerAhead
void moveAuthorizationEnablerAhead(Id authorizationEnablerId, Id authorizationId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders authorization enablers for an authorization by moving the specified authorization enabler in front of a reference authorization enabler.- Parameters:
authorizationEnablerId- theIdof anAuthorizationEnablerauthorizationId- theIdof anAuthorizationreferenceId- the reference authorization enablerId- Throws:
NotFoundException-authorizationEnablerId, authorizationId, orreferenceIdnot found or,authorizationEnablerIdorreferenceIdnot related toauthorizationIdNullArgumentException-authorizationEnablerId, authorizationId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveAuthorizationEnablerBehind
void moveAuthorizationEnablerBehind(Id authorizationEnablerId, Id authorizationId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders authorization enablers for an authorization by moving the specified authorization enabler behind a reference authorization enabler.- Parameters:
authorizationEnablerId- theIdof anAuthorizationEnablerauthorizationId- theIdof anAuthorizationreferenceId- the reference authorization enablerId- Throws:
NotFoundException-authorizationEnabelrId, authorizationId, orreferenceIdnot found or,authorizationEnablerIdorreferenceIdnot related toauthorizationIdNullArgumentException-authorizationEnablerId, authorizationId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderAuthorizationEnablers
void orderAuthorizationEnablers(Id[] authorizationEnablerIds, Id authorizationId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of authorization enablers for an authorization.- Parameters:
authorizationEnablerIds- theIdsfor a set ofAuthorizationEnablersauthorizationId- theIdof anAuthorization- Throws:
NotFoundException-authorizationIdnot found or, anauthorizationEnablerIdnot related toauthorizationIdNullArgumentException-authorizationEnablerIdsorauthorizationIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-