public interface GroupSession extends OsidSession
This session provides methods to retrieve Resource to
Group mappings. A Resource may appear in
multiple resource groups. A group is also represented by a resource
itself.
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLookupResourceMembers()
Tests if this user can perform lookups of resource members.
|
Bin |
getBin()
Gets the
Bin associated with this session. |
Id |
getBinId()
Gets the
Bin Id associated with this
session. |
IdList |
getGroupIdsByResource(Id resourceId)
Gets the list of
Resource Ids mapped to
a Resource. |
ResourceList |
getGroupsByResource(Id resourceId)
Gets the list of
Resource objects mapped to a
Resource. |
IdList |
getResourceIdsByGroup(Id groupResourceId)
Gets the list of
Resource Ids associated
with a Resource. |
IdList |
getResourceIdsByGroups(IdList groupResourceIds)
Gets the list of
Resource Ids corresponding to a list
of Resource objects. |
ResourceList |
getResourcesByGroup(Id groupResourceId)
Gets the list of
Resources associated with a
Resource. |
ResourceList |
getResourcesByGroups(IdList groupResourceIds)
Gets the list of
Resources corresponding to a list of
Resource objects. |
void |
useComparativeResourceView()
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 |
useFederatedBinView()
Federates the view for methods in this session.
|
void |
useFederatedGroupView()
Federates the view for methods in this session.
|
void |
useIsolatedBinView()
Isolates the view for methods in this session.
|
void |
useIsolatedGroupView()
Isolates the view for methods in this session.
|
void |
usePlenaryResourceView()
A complete view of the
Resource returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getBinId()
Bin Id associated with this
session. Bin Id associated with this sessionmandatory - This method must be implemented. Bin getBin() throws OperationFailedException, PermissionDeniedException
Bin associated with this session. Bin associated with this sessionOperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canLookupResourceMembers()
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 members is not authorized,
true otherwisemandatory - This method must be implemented. void useComparativeResourceView()
mandatory - This method is must be implemented. void usePlenaryResourceView()
Resource 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 useFederatedBinView()
mandatory - This method is must be implemented. void useIsolatedBinView()
mandatory - This method is must be implemented. void useFederatedGroupView()
mandatory - This method is must be implemented. void useIsolatedGroupView()
mandatory - This method is must be implemented. IdList getResourceIdsByGroup(Id groupResourceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Resource Ids associated
with a Resource. In a federated view, resources for
child groups are included.groupResourceId - Id of the Resource
Ids NotFoundException - groupResourceId is
not foundNullArgumentException - groupResourceId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ResourceList getResourcesByGroup(Id groupResourceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Resources associated with a
Resource. In a federated view, resources for child groups are
included.groupResourceId - Id of the Resource
NotFoundException - groupResourceId is
not foundNullArgumentException - groupResourceId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. IdList getResourceIdsByGroups(IdList groupResourceIds) throws OperationFailedException, PermissionDeniedException
Resource Ids corresponding to a list
of Resource objects.groupResourceIds - list of resource Ids Ids NullArgumentException - groupResourceIds
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ResourceList getResourcesByGroups(IdList groupResourceIds) throws OperationFailedException, PermissionDeniedException
Resources corresponding to a list of
Resource objects.groupResourceIds - list of resource Ids NullArgumentException - groupResourceIds
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. IdList getGroupIdsByResource(Id resourceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Resource Ids mapped to
a Resource. resourceId - Id of a Resource Ids NotFoundException - resourceId is not
foundNullArgumentException - resourceId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ResourceList getGroupsByResource(Id resourceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Resource objects mapped to a
Resource. resourceId - Id of a Resource NotFoundException - resourceId is not
foundNullArgumentException - resourceId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.