Interface BlockOublietteSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to retrieve Block to
Oubliette holds. A Block may appear in multiple Oubliette
objects. Each oubliette may have its own authorizations governing who is
allowed to look at it.
This lookup session defines several views:
- comparative view: elements may be silently omitted or re-ordered
- plenary view: provides a complete result set or is an error condition
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if this user can perform lookups of block/oubliette holds.getBlockIdsByOubliette(Id oublietteId) Gets the list ofBlock Idsassociated with anOubliette.getBlockIdsByOubliettes(IdList oublietteIds) Gets the list ofBlock Idscorresponding to a list ofOubliettes.getBlocksByOubliette(Id oublietteId) Gets the list ofBlocksassociated with anOubliette.getBlocksByOubliettes(IdList oublietteIds) Gets the list ofBlockcorresponding to a list ofOubliettes.getOublietteIdsByBlock(Id blockId) Gets theOublietteIdsmapped to aBlock.getOubliettesByBlock(Id blockId) Gets theOubliettesmapped to aBlock.voidThe returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error.voidA complete view of theBlockandOubliettereturns is desired.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.
-
Method Details
-
canLookupBlockOublietteMappings
boolean canLookupBlockOublietteMappings()Tests if this user can perform lookups of block/oubliette holds. A return of true does not guarantee successful authorization. A return of false indicates that it is known lookup methods in this session will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.- Returns:
falseif looking up mappings is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
useComparativeBlockOublietteView
void useComparativeBlockOublietteView()The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision.- Compliance:
mandatory- This method is must be implemented.
-
usePlenaryBlockOublietteView
void usePlenaryBlockOublietteView()A complete view of theBlockandOubliettereturns 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.- Compliance:
mandatory- This method is must be implemented.
-
getBlockIdsByOubliette
IdList getBlockIdsByOubliette(Id oublietteId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets the list ofBlock Idsassociated with anOubliette.- Parameters:
oublietteId-Idof theOubliette- Returns:
- list of related block
Ids - Throws:
NotFoundException-oublietteIdis not foundNullArgumentException-oublietteIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getBlocksByOubliette
BlockList getBlocksByOubliette(Id oublietteId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets the list ofBlocksassociated with anOubliette.- Parameters:
oublietteId-Idof theOubliette- Returns:
- list of related blocks
- Throws:
NotFoundException-oublietteIdis not foundNullArgumentException-oublietteIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getBlockIdsByOubliettes
IdList getBlockIdsByOubliettes(IdList oublietteIds) throws OperationFailedException, PermissionDeniedException Gets the list ofBlock Idscorresponding to a list ofOubliettes.- Parameters:
oublietteIds- list of oublietteIds- Returns:
- list of block
Ids - Throws:
NullArgumentException-oublietteIdsisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getBlocksByOubliettes
BlockList getBlocksByOubliettes(IdList oublietteIds) throws OperationFailedException, PermissionDeniedException Gets the list ofBlockcorresponding to a list ofOubliettes.- Parameters:
oublietteIds- list of oublietteIds- Returns:
- list of blocks
- Throws:
NullArgumentException-oublietteIdsisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getOublietteIdsByBlock
IdList getOublietteIdsByBlock(Id blockId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets theOublietteIdsmapped to aBlock.- Parameters:
blockId-Idof aBlock- Returns:
- list of oubliettes
- Throws:
NotFoundException-blockIdis not foundNullArgumentException-blockIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getOubliettesByBlock
OublietteList getOubliettesByBlock(Id blockId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets theOubliettesmapped to aBlock.- Parameters:
blockId-Idof aBlock- Returns:
- list of oubliettes
- Throws:
NotFoundException-blockIdis not foundNullArgumentException-blockIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-