Interface ActionEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply ActionEnablers to
Actions . An Action with multiple ActionEnablers means
any positive rule evaluation across the enablers result in an active
Action .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignActionEnablerToAction(Id actionEnablerId, Id actionId) Adds an existingActionEnablerto anAction.booleanTests if this user can alter action enabler/action mappings.booleanTests if this user can orderActionEnablers.Gets theSystemassociated with this session.Gets theSystemIdassociated with this session.voidmoveActionEnablerAhead(Id actionEnablerId, Id actionId, Id referenceId) Reorders action enablers for an action by moving the specified action enabler in front of a reference action enabler.voidmoveActionEnablerBehind(Id actionEnablerId, Id actionId, Id referenceId) Reorders action enablers for an action by moving the specified action enabler behind a reference action enabler.voidorderActionEnablers(Id[] actionEnablerIds, Id actionId) Reorders a set of action enablers for an action.voidunassignActionEnablerFromAction(Id actionEnablerId, Id actionId) Removes anActionEnablerfrom anAction.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
-
getSystemId
Id getSystemId()Gets theSystemIdassociated with this session.- Returns:
- the
System Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getSystem
Gets theSystemassociated with this session.- Returns:
- the system
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canAssignActionEnablers
boolean canAssignActionEnablers()Tests if this user can alter action enabler/action 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.
-
assignActionEnablerToAction
void assignActionEnablerToAction(Id actionEnablerId, Id actionId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingActionEnablerto anAction.- Parameters:
actionEnablerId- theIdof theActionEnableractionId- theIdof theAction- Throws:
AlreadyExistsException-actionEnablerIdalready applied toactionIdNotFoundException-actionEnablerIdoractionIdnot foundNullArgumentException-actionEnablerIdoractionIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignActionEnablerFromAction
void unassignActionEnablerFromAction(Id actionEnablerId, Id actionId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes anActionEnablerfrom anAction.- Parameters:
actionEnablerId- theIdof theActionEnableractionId- theIdof theAction- Throws:
NotFoundException-actionEnablerIdoractionIdnot found oractionEnablerIdnot applied toactionIdNullArgumentException-actionEnablerIdoractionIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceActionEnablers
boolean canSequenceActionEnablers()Tests if this user can orderActionEnablers. 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:
falseifActionEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveActionEnablerAhead
void moveActionEnablerAhead(Id actionEnablerId, Id actionId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders action enablers for an action by moving the specified action enabler in front of a reference action enabler.- Parameters:
actionEnablerId- theIdof anActionEnableractionId- theIdof anActionreferenceId- the reference action enablerId- Throws:
NotFoundException-actionEnablerId, actionId, orreferenceIdnot found or,actionEnablerIdorreferenceIdnot related toactionIdNullArgumentException-actionEnablerId, actionId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveActionEnablerBehind
void moveActionEnablerBehind(Id actionEnablerId, Id actionId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders action enablers for an action by moving the specified action enabler behind a reference action enabler.- Parameters:
actionEnablerId- theIdof anActionEnableractionId- theIdof anActionreferenceId- the reference action enablerId- Throws:
NotFoundException-actionEnablerId, actionId, orreferenceIdnot found or,actionEnablerIdorreferenceIdnot related toactionIdNullArgumentException-actionEnablerId, actionId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderActionEnablers
void orderActionEnablers(Id[] actionEnablerIds, Id actionId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of action enablers for an action.- Parameters:
actionEnablerIds- theIdsfor a set ofActionEnablersactionId- theIdof anAction- Throws:
NotFoundException-actionEnablerIdnot found or, anactionEnablerIdnot related toactionIdNullArgumentException-actionEnablerIdsoractionIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-