public interface WorkSmartFoundrySession extends OsidSession
This session manages queries and sequencing to create "smart" dynamic
catalogs. A WorkQuery can be retrieved from this session
and mapped to this Foundry to create a virtual collection
of Works. The works may be sequenced using the
WorkSearchOrder from this session.
This Foundry has a default query that matches any work
and a default search order that specifies no sequencing. The queries may
be examined using a WorkQueryInspector. The query may be
modified by converting the inspector back to a WorkQuery.
| Modifier and Type | Method and Description |
|---|---|
void |
applyWorkQuery(WorkQuery workQuery)
Applies a work query to this foundry.
|
void |
applyWorkSequencing(WorkSearchOrder workSearchOrder)
Applies a work search order to this foundry.
|
boolean |
canManageSmartFoundries()
Tests if this user can manage smart foundries.
|
Foundry |
getFoundry()
Gets the
Foundry associated with this session. |
Id |
getFoundryId()
Gets the
Foundry Id associated with this
session. |
WorkQuery |
getWorkQuery()
Gets a work query.
|
WorkQuery |
getWorkQueryFromInspector(WorkQueryInspector workQueryInspector)
Gets a work query from an inspector.
|
WorkSearchOrder |
getWorkSearchOrder()
Gets a work search order.
|
WorkQueryInspector |
inspectWorkQuery()
Gets a work query inspector for this foundry.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getFoundryId()
Foundry Id associated with this
session. Foundry Id associated with this sessionmandatory - This method must be implemented. Foundry getFoundry() throws OperationFailedException, PermissionDeniedException
Foundry associated with this session.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canManageSmartFoundries()
PERMISSION_DENIED. This is intended as a hint to an
application that may opt not to offer operations to unauthorized
users. false if smart foundry management is not
authorized, true otherwisemandatory - This method must be implemented. WorkQuery getWorkQuery()
mandatory - This method must be implemented. WorkSearchOrder getWorkSearchOrder()
mandatory - This method must be implemented. void applyWorkQuery(WorkQuery workQuery) throws OperationFailedException, PermissionDeniedException
workQuery - the work queryNullArgumentException - workQuery is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failure
occurredUnsupportedException - workQuery not of
this servicemandatory - This method must be implemented. WorkQueryInspector inspectWorkQuery() throws OperationFailedException, PermissionDeniedException
OperationFailedException - unable to complete requestPermissionDeniedException - authorization failure
occurredmandatory - This method must be implemented. void applyWorkSequencing(WorkSearchOrder workSearchOrder) throws OperationFailedException, PermissionDeniedException
workSearchOrder - the work search orderNullArgumentException - workSearchOrder
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failure
occurredUnsupportedException - workSearchOrder
not of this servicemandatory - This method must be implemented. WorkQuery getWorkQueryFromInspector(WorkQueryInspector workQueryInspector)
workQueryInspector - a work query inspectorNullArgumentException - workQueryInspector
is null UnsupportedException - workQueryInspector
is not of this servicemandatory - This method must be implemented.