Interface HoldSmartOublietteSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session manages queries and sequencing to create "smart" dynamic
catalogs. A HoldQuery can be retrieved from this session and
oublietteped to this Oubliette to create a virtual collection of
Holds. The holds may be sequenced using the
HoldSearchOrder from this session.
This Oubliette has a default query that matches any hold and a
default search order that specifies no sequencing. The queries may be
examined using a HoldQueryInspector. The query may be modified by
converting the inspector back to a HoldQuery.
Like all OsidSessions, HoldSmartOublietteSessions are
dedicated to single processing threads and a single authenticated user.
-
Method Summary
Modifier and TypeMethodDescriptionvoidapplyHoldQuery(HoldQuery holdQuery) Applies a hold query to this oubliette.voidapplyHoldSequencing(HoldSearchOrder holdSearchOrder) Applies a hold search order to this oubliette.booleanTests if this user can manage smart oubliettes.Gets a hold query.getHoldQueryFromInspector(HoldQueryInspector holdQueryInspector) Gets a hold query from an inspector.Gets a hold search order.Gets theOublietteassociated with this session.Gets theOublietteIdassociated with this session.Gets a hold query inspector for this oubliette.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatTypes, getLocales, isAuthenticated, startTransaction, supportsTransactions
-
Method Details
-
getOublietteId
Id getOublietteId()Gets theOublietteIdassociated with this session.- Returns:
- the
Oubliette Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getOubliette
Gets theOublietteassociated with this session.- Returns:
- the oubliette
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canManageSmartOubliettes
boolean canManageSmartOubliettes()Tests if this user can manage smart oubliettes. A return of true does not guarantee successful authorization. A return of false indicates that it is known methods in this session will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer operations to unauthorized users.- Returns:
falseif smart oubliette management is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
getHoldQuery
HoldQuery getHoldQuery()Gets a hold query.- Returns:
- the hold query
- Compliance:
mandatory- This method must be implemented.
-
getHoldSearchOrder
HoldSearchOrder getHoldSearchOrder()Gets a hold search order.- Returns:
- the hold search order
- Compliance:
mandatory- This method must be implemented.
-
applyHoldQuery
Applies a hold query to this oubliette.- Parameters:
holdQuery- the hold query- Throws:
NullArgumentException-holdQueryisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurredUnsupportedException-holdQuerynot of this service- Compliance:
mandatory- This method must be implemented.
-
inspectHoldQuery
Gets a hold query inspector for this oubliette.- Returns:
- the hold query inspector
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
applyHoldSequencing
void applyHoldSequencing(HoldSearchOrder holdSearchOrder) throws OperationFailedException, PermissionDeniedException Applies a hold search order to this oubliette.- Parameters:
holdSearchOrder- the hold search order- Throws:
NullArgumentException-holdSearchOrderisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurredUnsupportedException-holdSearchOrdernot of this service- Compliance:
mandatory- This method must be implemented.
-
getHoldQueryFromInspector
Gets a hold query from an inspector.- Parameters:
holdQueryInspector- a hold query inspector- Returns:
- the hold query
- Throws:
NullArgumentException-holdQueryInspectorisnullUnsupportedException-holdQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-