public interface WorkOfficeSession extends OsidSession
This session provides methods to retrieve Work to
Office workflows. A Work may appear in multiple
Office objects. Each office 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 |
canLookupWorkOfficeAvailabilities()
Tests if this user can perform lookups of work/office mappings.
|
IdList |
getOfficeIdsByWork(Id workId)
Gets the
Office Ids mapped to a
Work. |
OfficeList |
getOfficesByWork(Id workId)
Gets the
Offices mapped to a Work. |
IdList |
getWorkIdsByOffice(Id officeId)
Gets the list of
Work Ids associated with a
Office. |
IdList |
getWorkIdsByOffices(IdList officeIds)
Gets the list of
Work Ids corresponding to a list of
Offices. |
WorkList |
getWorksByOffice(Id officeId)
Gets the list of
Works associated with a Office. |
WorkList |
getWorksByOffices(IdList officeIds)
Gets the list of
Work corresponding to a list of
Offices. |
void |
useComparativeWorkOfficeView()
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 |
usePlenaryWorkOfficeView()
A complete view of the
Work and Office
returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean canLookupWorkOfficeAvailabilities()
PERMISSION_DENIED. This is intended as
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 useComparativeWorkOfficeView()
mandatory - This method is must be implemented. void usePlenaryWorkOfficeView()
Work and Office
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 getWorkIdsByOffice(Id officeId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Work Ids associated with a
Office. officeId - Id of the Office Ids NotFoundException - officeId is not
foundNullArgumentException - officeId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. WorkList getWorksByOffice(Id officeId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Works associated with a Office.
officeId - Id of the Office NotFoundException - officeId is not
foundNullArgumentException - officeId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. IdList getWorkIdsByOffices(IdList officeIds) throws OperationFailedException, PermissionDeniedException
Work Ids corresponding to a list of
Offices. officeIds - list of office Ids Ids NullArgumentException - officeIds is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. WorkList getWorksByOffices(IdList officeIds) throws OperationFailedException, PermissionDeniedException
Work corresponding to a list of
Offices. officeIds - list of office Ids NullArgumentException - officeIds is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. IdList getOfficeIdsByWork(Id workId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Office Ids mapped to a
Work. workId - Id of a Work NotFoundException - workId is not foundNullArgumentException - workId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. OfficeList getOfficesByWork(Id workId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Offices mapped to a Work. workId - Id of a Work NotFoundException - workId is not foundNullArgumentException - workId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.