public interface BlockSession extends OsidSession
This is the basic session for checking blocks.
Availabilities with the IssueAdminSession.
The methods useFederatedOublietteView() and
useIsolatedOublietteView() behave as a radio group and one should
be selected before invoking any lookup methods.
| Modifier and Type | Method and Description |
|---|---|
boolean |
canAccessBlocks()
Tests if this user can perform
Block checks. |
Oubliette |
getOubliette()
Gets the
Oubliette associated with this session. |
Id |
getOublietteId()
Gets the
Oubliette Id associated with
this session. |
boolean |
isBlocked(Id agentId,
Id blockId)
Determines if the given resource is blocked.
|
void |
useFederatedOublietteView()
Federates the view for methods in this session.
|
void |
useIsolatedOublietteView()
Isolates the view for methods in this session.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getOublietteId()
Oubliette Id associated with
this session. Oubliette Id associated with this sessionmandatory - This method must be implemented. Oubliette getOubliette() throws OperationFailedException, PermissionDeniedException
Oubliette associated with this session.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canAccessBlocks()
Block checks. 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 not offer lookup operations to unauthorized
users. false if block methods are not authorized,
true otherwisemandatory - This method must be implemented. void useFederatedOublietteView()
mandatory - This method is must be implemented. void useIsolatedOublietteView()
mandatory - This method is must be implemented. boolean isBlocked(Id agentId, Id blockId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Hold for the given agent exists for an
Issue maped to the given Block. agentId - the Id of an Agent blockId - the Id of a Block true if the user is blocked, false
othersiseNotFoundException - blockId is not foundNullArgumentException - agentId or
blockId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failure
making requestmandatory - This method must be implemented.