public interface ActionEnablerRuleLookupSession extends OsidSession
This session provides methods to retrieve ActionEnabler
to Action
mappings. An Action
with multiple
ActionEnablers
means any positive rule evaluation across
the enablers result in an effective Action.
This lookup session defines several views:
Modifier and Type | Method and Description |
---|---|
boolean |
canLookupActionEnablerRules()
Tests if this user can perform lookups of action enabler/action
mappings.
|
IdList |
getActionEnablerIdsForAction(Id actionId)
Gets the
ActionEnabler Id associated with an
Action. |
ActionEnablerList |
getActionEnablersForAction(Id actionId)
Gets the
ActionEnablers associated with an
Action. |
IdList |
getActionIdsForActionEnabler(Id actionEnablerId)
Gets the
Action Ids mapped to an
ActionEnabler. |
ActionList |
getActionsForActionEnabler(Id actionEnablerId)
Gets the
Actions mapped to an ActionEnabler. |
System |
getSystem()
Gets the
System associated with this session. |
Id |
getSystemId()
Gets the
System Id associated with this
session. |
void |
useComparativeActionEnablerRuleView()
The returns from the lookup methods may omit or translate elements
based on this session, such as authorization, and not result in an
error.
|
void |
useFederatedSystemView()
Federates the view for methods in this session.
|
void |
useIsolatedSystemView()
Isolates the view for methods in this session.
|
void |
usePlenaryActionEnablerRuleView()
A complete view of the
ActionEnabler and Action
returns is desired. |
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 canLookupActionEnablerRules()
PERMISSION_DENIED.
This is intended as a hint to an application that may opt not
to offer lookup operations to unauthorized users. false
if looking up mappings is not authorized,
true
otherwisemandatory
- This method must be implemented. void useComparativeActionEnablerRuleView()
mandatory
- This method is must be implemented. void usePlenaryActionEnablerRuleView()
ActionEnabler
and Action
returns is desired. Methods will return what is requested or
result in an error. This view is used when greater precision is
desired at the expense of interoperability.mandatory
- This method is must be implemented. void useFederatedSystemView()
mandatory
- This method is must be implemented. void useIsolatedSystemView()
mandatory
- This method is must be implemented. IdList getActionEnablerIdsForAction(Id actionId) throws NotFoundException, OperationFailedException, PermissionDeniedException
ActionEnabler Id
associated with an
Action.
actionId
- Id
of the Action
Ids
NotFoundException
- actionId
is not
foundNullArgumentException
- action
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. ActionEnablerList getActionEnablersForAction(Id actionId) throws NotFoundException, OperationFailedException, PermissionDeniedException
ActionEnablers
associated with an
Action.
actionId
- Id
of the Action
NotFoundException
- actionId
is not
foundNullArgumentException
- actionId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. IdList getActionIdsForActionEnabler(Id actionEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Action
Ids
mapped to an
ActionEnabler.
actionEnablerId
- Id
of an ActionEnabler
Ids
NotFoundException
- actionEnablerId
is
not foundNullArgumentException
- actionEnablerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. ActionList getActionsForActionEnabler(Id actionEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Actions
mapped to an ActionEnabler.
actionEnablerId
- Id
of an ActionEnabler
NotFoundException
- actionEnablerId
is
not foundNullArgumentException
- actionEnablerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.