public interface DispatchLookupSession extends OsidSession
This session provides methods for retrieving Dispatch
objects. The Dispatch represents a collection of
subscriptions.
This session defines views that offer differing behaviors when retrieving multiple objects.
DispatchAdminSession. | Modifier and Type | Method and Description |
|---|---|
boolean |
canLookupDispatches()
Tests if this user can perform
Dispatch lookups. |
Dispatch |
getDispatch(Id dispatchId)
Gets the
Dispatch specified by its Id. |
DispatchList |
getDispatches()
Gets all
Dispatches. |
DispatchList |
getDispatchesByGenusType(Type dispatchGenusType)
Gets a
DispatchList corresponding to the given dispatch
genus Type which does not include dispatches of genus
types derived from the specified Type. |
DispatchList |
getDispatchesByIds(IdList dispatchIds)
Gets a
DispatchList corresponding to the given
IdList. |
DispatchList |
getDispatchesByParentGenusType(Type dispatchGenusType)
Gets a
DispatchList corresponding to the given dispatch
genus Type and include any additional dispatches with
genus types derived from the specified Type. |
DispatchList |
getDispatchesByProvider(Id resourceId)
Gets a
DispatchList for the given provider. |
DispatchList |
getDispatchesByRecordType(Type dispatchRecordType)
Gets a
DispatchList containing the given dispatch
record Type. |
Publisher |
getPublisher()
Gets the
Publisher associated with this session. |
Id |
getPublisherId()
Gets the
Publisher Id associated with
this session. |
void |
useActiveDispatchView()
Only active dispatches are returned by methods in this session.
|
void |
useAnyStatusDispatchView()
All active and inactive dispatches are returned by methods in this
session.
|
void |
useComparativeDispatchView()
The returns from the lookup methods may omit or translate elements
based on this session, such as authorization, and not result in an
error.
|
void |
useFederatedPublisherView()
Federates the view for methods in this session.
|
void |
useIsolatedPublisherView()
Isolates the view for methods in this session.
|
void |
usePlenaryDispatchView()
A complete view of the
Dispatch returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId 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.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canLookupDispatches()
Dispatch lookups. A
return of true does not guarantee successful authorization. A return
of false indicates that it is known all methods in this session will
result in a PERMISSION_DENIED. This is intended as a
hint to an application that may not offer lookup operations to
unauthorized users. false if lookup methods are not authorized,
true otherwisemandatory - This method must be implemented. void useComparativeDispatchView()
mandatory - This method is must be implemented. void usePlenaryDispatchView()
Dispatch returns 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.mandatory - This method is must be implemented. void useFederatedPublisherView()
mandatory - This method is must be implemented. void useIsolatedPublisherView()
mandatory - This method is must be implemented. void useActiveDispatchView()
mandatory - This method is must be implemented. void useAnyStatusDispatchView()
mandatory - This method is must be implemented. Dispatch getDispatch(Id dispatchId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Dispatch specified by its Id.
In plenary mode, the exact Id is found
or a NOT_FOUND results. Otherwise, the returned
Dispatch may have a different Id than
requested, such as the case where a duplicate Id was
assigned to a Dispatch and retained for compatibility.
In active mode, dispatches are returned that are currently active. In
any status mode, active and inactive dispatches are returned.dispatchId - Id of the Dispatch NotFoundException - dispatchId not foundNullArgumentException - dispatchId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method is must be implemented. DispatchList getDispatchesByIds(IdList dispatchIds) throws NotFoundException, OperationFailedException, PermissionDeniedException
DispatchList corresponding to the given
IdList.
In plenary mode, the returned list contains all of the
dispatches specified in the Id list, in the order of
the list, including duplicates, or an error results if an Id
in the supplied list is not found or inaccessible. Otherwise,
inaccessible Dispatches may be omitted from the list
and may present the elements in any order including returning a unique
set.
In active mode, dispatches are returned that are currently active. In
any status mode, active and inactive dispatches are returned.dispatchIds - the list of Ids to retrieve Dispatch listNotFoundException - an Id was not foundNullArgumentException - dispatchIds is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. DispatchList getDispatchesByGenusType(Type dispatchGenusType) throws OperationFailedException, PermissionDeniedException
DispatchList corresponding to the given dispatch
genus Type which does not include dispatches of genus
types derived from the specified Type.
In plenary mode, the returned list contains all known
dispatches or an error results. Otherwise, the returned list may
contain only those dispatches that are accessible through this
session.
In active mode, dispatches are returned that are currently active. In
any status mode, active and inactive dispatches are returned.dispatchGenusType - a dispatch genus type Dispatch listNullArgumentException - dispatchGenusType
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. DispatchList getDispatchesByParentGenusType(Type dispatchGenusType) throws OperationFailedException, PermissionDeniedException
DispatchList corresponding to the given dispatch
genus Type and include any additional dispatches with
genus types derived from the specified Type.
In plenary mode, the returned list contains all known
dispatches or an error results. Otherwise, the returned list may
contain only those dispatches that are accessible through this
session.
In active mode, dispatches are returned that are currently active. In
any status mode, active and inactive dispatches are returned.dispatchGenusType - a dispatch genus type Dispatch listNullArgumentException - dispatchGenusType
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. DispatchList getDispatchesByRecordType(Type dispatchRecordType) throws OperationFailedException, PermissionDeniedException
DispatchList containing the given dispatch
record Type.
In plenary mode, the returned list contains all known
dispatches or an error results. Otherwise, the returned list may
contain only those dispatches that are accessible through this
session.
In active mode, dispatches are returned that are currently active. In
any status mode, active and inactive dispatches are returned.dispatchRecordType - a dispatch record type Dispatch listNullArgumentException - dispatchRecordType
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. DispatchList getDispatchesByProvider(Id resourceId) throws OperationFailedException, PermissionDeniedException
DispatchList for the given provider.
In plenary mode, the returned list contains all known
dispatches or an error results. Otherwise, the returned list may
contain only those dispatches that are accessible through this
session.
In active mode, dispatches are returned that are currently active. In
any status mode, active and inactive dispatches are returned.resourceId - a resource Id Dispatch listNullArgumentException - resourceId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. DispatchList getDispatches() throws OperationFailedException, PermissionDeniedException
Dispatches.
In plenary mode, the returned list contains all known dispatches or an
error results. Otherwise, the returned list may contain only those
dispatches that are accessible through this session.
In active mode, dispatches are returned that are currently active. In
any status mode, active and inactive dispatches are returned. Dispatches OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.