public interface ProcessOfficeSession extends OsidSession
This session provides methods to retrieve Process
to
Office
workflows. A Process
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 |
canLookupProcessOfficeMappings()
Tests if this user can perform lookups of process/office mappings.
|
IdList |
getOfficeIdsByProcess(Id processId)
Gets the
Office Ids mapped to a
Process. |
OfficeList |
getOfficesByProcess(Id processId)
Gets the
Offices mapped to a Process. |
ProcessList |
getProcessesByOffice(Id officeId)
Gets the list of
Processes associated with a
Office. |
ProcessList |
getProcessesByOffices(IdList officeIds)
Gets the list of
Processes corresponding to a list of
Offices. |
IdList |
getProcessIdsByOffice(Id officeId)
Gets the list of
Process Ids associated with a
Office. |
IdList |
getProcessIdsByOffices(IdList officeIds)
Gets the list of
Process Ids corresponding to a list of
Offices. |
void |
useComparativeProcessOfficeView()
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 |
usePlenaryProcessOfficeView()
A complete view of the
Process and Office
returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canLookupProcessOfficeMappings()
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 useComparativeProcessOfficeView()
mandatory
- This method is must be implemented. void usePlenaryProcessOfficeView()
Process
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 getProcessIdsByOffice(Id officeId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Process 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. ProcessList getProcessesByOffice(Id officeId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Processes
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 getProcessIdsByOffices(IdList officeIds) throws OperationFailedException, PermissionDeniedException
Process 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. ProcessList getProcessesByOffices(IdList officeIds) throws OperationFailedException, PermissionDeniedException
Processes
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 getOfficeIdsByProcess(Id processId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Office
Ids
mapped to a
Process.
processId
- Id
of a Process
NotFoundException
- processId
is not
foundNullArgumentException
- processId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. OfficeList getOfficesByProcess(Id processId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Offices
mapped to a Process.
processId
- Id
of a Process
NotFoundException
- processId
is not
foundNullArgumentException
- processId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.