public interface ActionGroupLookupSession extends OsidSession
This session provides methods for retrieving ActionGroup
objects.
This session defines views that offer differing behaviors when retrieving multiple objects.
ActionGroups
with the ActionGroupAdminSession.
Generally, the comparative view should be used for most applications
as it permits operation even if there is data that cannot be accessed. The
methods useFederatedSystemView()
and
useIsolatedSystemView()
behave as a radio group and one should be
selected before invoking any lookup methods.
Modifier and Type | Method and Description |
---|---|
boolean |
canLookupActionGroups()
Tests if this user can perform
ActionGroup lookups. |
ActionGroup |
getActionGroup(Id actionGroupId)
Gets the
ActionGroup specified by its Id. |
ActionGroupList |
getActionGroups()
Gets all
ActionGroups. |
ActionGroupList |
getActionGroupsByAction(Id actionId)
Gets an
ActionGroupList containing of the given
Action. |
ActionGroupList |
getActionGroupsByGenusType(Type actionGroupGenusType)
Gets an
ActionGroupList corresponding to the given
action group genus Type which does not include action
groups of genus types derived from the specified Type. |
ActionGroupList |
getActionGroupsByIds(IdList actionGroupIds)
Gets an
ActionGroupList corresponding to the given
IdList. |
ActionGroupList |
getActionGroupsByParentGenusType(Type actionGroupGenusType)
Gets an
ActionGroupList corresponding to the given
action group genus Type and include any additional
action groups with genus types derived from the specified Type. |
ActionGroupList |
getActionGroupsByRecordType(Type actionGroupRecordType)
Gets an
ActionGroupList containing the given action
group record Type. |
System |
getSystem()
Gets the
System associated with this session. |
Id |
getSystemId()
Gets the
System Id associated with this
session. |
void |
useComparativeActionGroupView()
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 |
usePlenaryActionGroupView()
A complete view of the
ActionGroup 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 canLookupActionGroups()
ActionGroup
lookups. A
return of true does not guarantee successful authorization. A return
of false indicates that it is known all methods in this session will
result in a PERMISSION_DENIED.
This is intended as a
hint to an application that may opt not to offer lookup operations to
unauthorized users. false
if lookup methods are not authorized,
true
otherwisemandatory
- This method must be implemented. void useComparativeActionGroupView()
mandatory
- This method is must be implemented. void usePlenaryActionGroupView()
ActionGroup
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. ActionGroup getActionGroup(Id actionGroupId) throws NotFoundException, OperationFailedException, PermissionDeniedException
ActionGroup
specified by its Id.
In plenary mode, the exact Id
is found
or a NOT_FOUND
results. Otherwise, the returned
ActionGroup
may have a different Id
than
requested, such as the case where a duplicate Id
was
assigned to an ActionGroup
and retained for
compatibility.actionGroupId
- Id
of the ActionGroup
NotFoundException
- actionGroupId
not
foundNullArgumentException
- actionGroupId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method is must be implemented. ActionGroupList getActionGroupsByIds(IdList actionGroupIds) throws NotFoundException, OperationFailedException, PermissionDeniedException
ActionGroupList
corresponding to the given
IdList.
In plenary mode, the returned list contains all of the
action groups specified in the Id
list, in the order of
the list, including duplicates, or an error results if an Id
in the supplied list is not found or inaccessible. Otherwise,
inaccessible ActionGroups
may be omitted from the list
and may present the elements in any order including returning a unique
set.actionGroupIds
- the list of Ids
to retrieve ActionGroup
listNotFoundException
- an Id
was not foundNullArgumentException
- actionGroupIds
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. ActionGroupList getActionGroupsByGenusType(Type actionGroupGenusType) throws OperationFailedException, PermissionDeniedException
ActionGroupList
corresponding to the given
action group genus Type
which does not include action
groups of genus types derived from the specified Type.
In plenary mode, the returned list contains all known
action groups or an error results. Otherwise, the returned list may
contain only those action groups that are accessible through this
session.actionGroupGenusType
- an action group genus type ActionGroup
listNullArgumentException
- actionGroupGenusType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. ActionGroupList getActionGroupsByParentGenusType(Type actionGroupGenusType) throws OperationFailedException, PermissionDeniedException
ActionGroupList
corresponding to the given
action group genus Type
and include any additional
action groups with genus types derived from the specified Type.
In plenary mode, the returned list contains all known
action groups or an error results. Otherwise, the returned list may
contain only those action groups that are accessible through this
session.actionGroupGenusType
- an action group genus type ActionGroup
listNullArgumentException
- actionGroupGenusType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. ActionGroupList getActionGroupsByRecordType(Type actionGroupRecordType) throws OperationFailedException, PermissionDeniedException
ActionGroupList
containing the given action
group record Type.
In plenary mode, the returned list contains all known
action groups or an error results. Otherwise, the returned list may
contain only those action groups that are accessible through this
session.actionGroupRecordType
- an action group record type ActionGroup
listNullArgumentException
- actionGroupRecordType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. ActionGroupList getActionGroupsByAction(Id actionId) throws OperationFailedException, PermissionDeniedException
ActionGroupList
containing of the given
Action.
In plenary mode, the returned list contains all known
action groups or an error results. Otherwise, the returned list may
contain only those action groups that are accessible through this
session.actionId
- an action Id
ActionGroup
listNullArgumentException
- actionId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. ActionGroupList getActionGroups() throws OperationFailedException, PermissionDeniedException
ActionGroups.
In plenary mode, the returned list contains all known action groups or
an error results. Otherwise, the returned list may contain only those
action groups that are accessible through this session. ActionGroups
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.