public interface WorkSmartOfficeSession 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 Office
to create a virtual collection of
Works.
The works may be sequenced using the
WorkSearchOrder
from this session.
This Office
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 office.
|
void |
applyWorkSequencing(WorkSearchOrder workSearchOrder)
Applies a work search order to this office.
|
boolean |
canManageSmartOffices()
Tests if this user can manage smart offices.
|
Office |
getOffice()
Gets the
Office associated with this session. |
Id |
getOfficeId()
Gets the
Office 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 office.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getOfficeId()
Office
Id
associated with this
session. Office Id
associated with this sessionmandatory
- This method must be implemented. Office getOffice() throws OperationFailedException, PermissionDeniedException
Office
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canManageSmartOffices()
PERMISSION_DENIED.
This is intended as a hint to an
application that may opt not to offer operations to unauthorized
users. false
if smart office 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.