public interface ActionEnablerRuleApplicationSession extends 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.
Modifier and Type | Method and Description |
---|---|
void |
assignActionEnablerToAction(Id actionEnablerId,
Id actionId)
Adds an existing
ActionEnabler to an Action. |
boolean |
canAssignActionEnablers()
Tests if this user can alter action enabler/action mappings.
|
boolean |
canSequenceActionEnablers()
Tests if this user can order
ActionEnablers. |
System |
getSystem()
Gets the
System associated with this session. |
Id |
getSystemId()
Gets the
System Id associated with this
session. |
void |
moveActionEnablerAhead(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.
|
void |
moveActionEnablerBehind(Id actionEnablerId,
Id actionId,
Id referenceId)
Reorders action enablers for an action by moving the specified action
enabler behind a reference action enabler.
|
void |
orderActionEnablers(Id[] actionEnablerIds,
Id actionId)
Reorders a set of action enablers for an action.
|
void |
unassignActionEnablerFromAction(Id actionEnablerId,
Id actionId)
Removes an
ActionEnabler from an Action. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getSystemId()
System
Id
associated with this
session. System Id
associated with this sessionmandatory
- This method must be implemented. System getSystem() throws OperationFailedException, PermissionDeniedException
System
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canAssignActionEnablers()
PERMISSION_DENIED.
This is intended as a hint to
an application that may opt not to offer lookup operations to
unauthorized users. false
if mapping is not authorized, true
otherwisemandatory
- This method must be implemented. void assignActionEnablerToAction(Id actionEnablerId, Id actionId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
ActionEnabler
to an Action.
actionEnablerId
- the Id
of the
ActionEnabler
actionId
- the Id
of the Action
AlreadyExistsException
- actionEnablerId
already applied to actionId
NotFoundException
- actionEnablerId
or
actionId
not foundNullArgumentException
- actionEnablerId
or actionId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void unassignActionEnablerFromAction(Id actionEnablerId, Id actionId) throws NotFoundException, OperationFailedException, PermissionDeniedException
ActionEnabler
from an Action.
actionEnablerId
- the Id
of the
ActionEnabler
actionId
- the Id
of the Action
NotFoundException
- actionEnablerId
or
actionId
not found or actionEnablerId
not applied to actionId
NullArgumentException
- actionEnablerId
or actionId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canSequenceActionEnablers()
ActionEnablers.
A return
of true does not guarantee successful authorization. A return of false
indicates that it is known sequencing operations will result in a
PERMISSION_DENIED.
This is intended as a hint to an
application that may opt not to offer sequencing operations to an
unauthorized user. false
if ActionEnabler
ordering
is not authorized, true
otherwisemandatory
- This method must be implemented. void moveActionEnablerAhead(Id actionEnablerId, Id actionId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
actionEnablerId
- the Id
of an
ActionEnabler
actionId
- the Id
of an Action
referenceId
- the reference action enabler Id
NotFoundException
- actionEnablerId, actionId,
or referenceId
not found or,
actionEnablerId
or referenceId
not
related to actionId
NullArgumentException
- actionEnablerId,
actionId,
or referenceId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void moveActionEnablerBehind(Id actionEnablerId, Id actionId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
actionEnablerId
- the Id
of an
ActionEnabler
actionId
- the Id
of an Action
referenceId
- the reference action enabler Id
NotFoundException
- actionEnablerId, actionId,
or referenceId
not found or,
actionEnablerId
or referenceId
not
related to actionId
NullArgumentException
- actionEnablerId,
actionId,
or referenceId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void orderActionEnablers(Id[] actionEnablerIds, Id actionId) throws NotFoundException, OperationFailedException, PermissionDeniedException
actionEnablerIds
- the Ids
for a set of
ActionEnablers
actionId
- the Id
of an Action
NotFoundException
- actionEnablerId
not
found or, an actionEnablerId
not related to
actionId
NullArgumentException
- actionEnablerIds
or actionId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.