public interface AgendaEngineSession extends OsidSession
This session provides methods to retrieve Agenda to
Engine checks. An Agenda may appear in
multiple Engine objects. Each engine 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 |
canLookupAgendaEngineMappings()
Tests if this user can perform lookups of agenda/engine checks.
|
IdList |
getAgendaIdsByEngine(Id engineId)
Gets the list of
Agenda Ids associated with a
Engine. |
IdList |
getAgendaIdsByEngines(IdList engineIds)
Gets the list of
Agenda Ids corresponding to a list of
Engines. |
AgendaList |
getAgendasByEngine(Id engineId)
Gets the list of
Agendas associated with a
Engine. |
AgendaList |
getAgendasByEngines(IdList engineIds)
Gets the list of
Agenda corresponding to a list of
Engines. |
IdList |
getEngineIdsByAgenda(Id agendaId)
Gets the
Engine Ids mapped to an
Agenda. |
EngineList |
getEnginesByAgenda(Id agendaId)
Gets the
Engines mapped to an Agenda. |
void |
useComparativeAgendaEngineView()
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 |
usePlenaryAgendaEngineView()
A complete view of the
Agenda and Engine
returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean canLookupAgendaEngineMappings()
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 useComparativeAgendaEngineView()
mandatory - This method is must be implemented. void usePlenaryAgendaEngineView()
Agenda and Engine
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 getAgendaIdsByEngine(Id engineId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Agenda Ids associated with a
Engine. engineId - Id of the Engine Ids NotFoundException - engineId is not
foundNullArgumentException - engineId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. AgendaList getAgendasByEngine(Id engineId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Agendas associated with a
Engine. engineId - Id of the Engine NotFoundException - engineId is not
foundNullArgumentException - engineId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. IdList getAgendaIdsByEngines(IdList engineIds) throws OperationFailedException, PermissionDeniedException
Agenda Ids corresponding to a list of
Engines. engineIds - list of engine Ids Ids NullArgumentException - engineIds is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. AgendaList getAgendasByEngines(IdList engineIds) throws OperationFailedException, PermissionDeniedException
Agenda corresponding to a list of
Engines. engineIds - list of engine Ids NullArgumentException - engineIds is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. IdList getEngineIdsByAgenda(Id agendaId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Engine Ids mapped to an
Agenda. agendaId - Id of an Agenda NotFoundException - agendaId is not
foundNullArgumentException - agendaId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. EngineList getEnginesByAgenda(Id agendaId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Engines mapped to an Agenda. agendaId - Id of an Agenda NotFoundException - agendaId is not
foundNullArgumentException - agendaId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.