public interface DispatchSmartPublisherSession extends OsidSession
This session manages queries and sequencing to create "smart" dynamic
catalogs. A DispatchQuery
can be retrieved from this
session and mapped to this Publisher
to create a virtual
collection of Dispatches.
The dispatches may be sequenced
using the DispatchSearchOrder
from this session.
This Publisher
has a default query that matches any
dispatch and a default search order that specifies no sequencing. The
queries may be examined using a DispatchQueryInspector.
The
query may be modified by converting the inspector back to a
DispatchQuery.
Modifier and Type | Method and Description |
---|---|
void |
applyDispatchQuery(DispatchQuery dispatchQuery)
Applies a dispatch query to this publisher.
|
void |
applyDispatchSequencing(DispatchSearchOrder dispatchSearchOrder)
Applies a dispatch search order to this publisher.
|
boolean |
canManageSmartPublishers()
Tests if this user can manage smart publishers.
|
DispatchQuery |
getDispatchQuery()
Gets a dispatch query.
|
DispatchQuery |
getDispatchQueryFromInspector(DispatchQueryInspector dispatchQueryInspector)
Gets a dispatch query from an inspector.
|
DispatchSearchOrder |
getDispatchSearchOrder()
Gets a dispatch search order.
|
Publisher |
getPublisher()
Gets the
Publisher associated with this session. |
Id |
getPublisherId()
Gets the
Publisher Id associated with
this session. |
DispatchQueryInspector |
inspectDispatchQuery()
Gets a dispatch query inspector for this publisher.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getPublisherId()
Publisher
Id
associated with
this session. Publisher Id
associated with this sessionmandatory
- This method must be implemented. Publisher getPublisher() throws OperationFailedException, PermissionDeniedException
Publisher
associated with this session. Publisher
associated with this sessionOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canManageSmartPublishers()
PERMISSION_DENIED.
This is intended as a hint to an
application that may opt not to offer operations to unauthorized
users. false
if smart publisher management is not
authorized, true
otherwisemandatory
- This method must be implemented. DispatchQuery getDispatchQuery()
mandatory
- This method must be implemented. DispatchSearchOrder getDispatchSearchOrder()
mandatory
- This method must be implemented. void applyDispatchQuery(DispatchQuery dispatchQuery) throws OperationFailedException, PermissionDeniedException
dispatchQuery
- the dispatch queryNullArgumentException
- dispatchQuery
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- dispatchQuery
not
of this servicemandatory
- This method must be implemented. DispatchQueryInspector inspectDispatchQuery() throws OperationFailedException, PermissionDeniedException
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredmandatory
- This method must be implemented. void applyDispatchSequencing(DispatchSearchOrder dispatchSearchOrder) throws OperationFailedException, PermissionDeniedException
dispatchSearchOrder
- the dispatch search orderNullArgumentException
- dispatchSearchOrder
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- dispatchSearchOrder
not of this servicemandatory
- This method must be implemented. DispatchQuery getDispatchQueryFromInspector(DispatchQueryInspector dispatchQueryInspector)
dispatchQueryInspector
- a query inspectorNullArgumentException
- dispatchQueryInspector
is null
UnsupportedException
- dispatchQueryInspector
is not of this servicemandatory
- This method must be implemented.