public interface DispatchPublisherSession extends OsidSession
This session provides methods to retrieve Dispatch to
Publisher mappings. A Dispatch may appear in
multiple Publishers. Each Publisher may have
its own authorizations governing who is allowed to look at it.
This lookup session defines several views:
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLookupDispatchPublisherMappings()
Tests if this user can perform lookups of dispatch/publisher mappings.
|
DispatchList |
getDispatchesByPublisher(Id publisherId)
Gets the list of
Dispatches associated with a
Publisher. |
DispatchList |
getDispatchesByPublishers(IdList publisherIds)
Gets the list of
Dispatches corresponding to a list of
Publishers. |
IdList |
getDispatchIdsByPublisher(Id publisherId)
Gets the list of
Dispatch Ids associated
with a Publisher. |
IdList |
getDispatchIdsByPublishers(IdList publisherIds)
Gets the list of
Dispatch Ids corresponding to a list
of Publisher objects. |
IdList |
getPublisherIdsByDispatch(Id dispatchId)
Gets the list of
Publisher Ids mapped to
a Dispatch. |
PublisherList |
getPublishersByDispatch(Id dispatchId)
Gets the list of
Publisher objects mapped to a
Dispatch. |
void |
useComparativePublisherView()
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 |
usePlenaryPublisherView()
A complete view of the
Dispatch and Publisher
returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean canLookupDispatchPublisherMappings()
PERMISSION_DENIED. This is intendedas
a hint to an application that may opt not to offer lookup operations
to unauthorized users. false if looking up mappings is not authorized,
true otherwisemandatory - This method must be implemented. void useComparativePublisherView()
mandatory - This method is must be implemented. void usePlenaryPublisherView()
Dispatch and Publisher
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. IdList getDispatchIdsByPublisher(Id publisherId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Dispatch Ids associated
with a Publisher. publisherId - Id of a Publisher Ids NotFoundException - publisherId is not
foundNullArgumentException - publisherId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. DispatchList getDispatchesByPublisher(Id publisherId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Dispatches associated with a
Publisher. publisherId - Id of a Publisher NotFoundException - publisherId is not
foundNullArgumentException - publisherId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. IdList getDispatchIdsByPublishers(IdList publisherIds) throws OperationFailedException, PermissionDeniedException
Dispatch Ids corresponding to a list
of Publisher objects.publisherIds - list of publisher Ids Ids NullArgumentException - publisherIds is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. DispatchList getDispatchesByPublishers(IdList publisherIds) throws OperationFailedException, PermissionDeniedException
Dispatches corresponding to a list of
Publishers. publisherIds - list of publisher Ids NullArgumentException - publisherIds is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. IdList getPublisherIdsByDispatch(Id dispatchId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Publisher Ids mapped to
a Dispatch. dispatchId - Id of a Dispatch Ids NotFoundException - dispatchId is not
foundNullArgumentException - dispatchId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. PublisherList getPublishersByDispatch(Id dispatchId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Publisher objects mapped to a
Dispatch. dispatchId - Id of a Dispatch NotFoundException - dispatchId is not
foundNullArgumentException - dispatchId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.