public interface InstructionEngineSession extends OsidSession
This session provides methods to retrieve Instruction to
Engine instructions. An Instruction 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 |
canLookupInstructionEngineInstructions()
Tests if this user can perform lookups of instruction/engine mappings.
|
IdList |
getEngineIdsByInstruction(Id instructionId)
Gets the
Engine Ids mapped to an
Instruction. |
EngineList |
getEnginesByInstruction(Id instructionId)
Gets the
Engines mapped to an Instruction. |
IdList |
getInstructionIdsByEngine(Id engineId)
Gets the list of
Instruction Ids associated with a
Engine. |
IdList |
getInstructionIdsByEngines(IdList engineIds)
Gets the list of
Instruction Ids corresponding to a
list of Engines. |
InstructionList |
getInstructionsByEngine(Id engineId)
Gets the list of
Instructions associated with a
Engine. |
InstructionList |
getInstructionsByEngines(IdList engineIds)
Gets the list of
Instructions corresponding to a list
of Engines. |
void |
useComparativeInstructionEngineView()
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 |
usePlenaryInstructionEngineView()
A complete view of the
Instruction and Engine
returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean canLookupInstructionEngineInstructions()
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 instructions is not
authorized, true otherwisemandatory - This method must be implemented. void useComparativeInstructionEngineView()
mandatory - This method is must be implemented. void usePlenaryInstructionEngineView()
Instruction 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 getInstructionIdsByEngine(Id engineId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Instruction 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. InstructionList getInstructionsByEngine(Id engineId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Instructions 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 getInstructionIdsByEngines(IdList engineIds) throws OperationFailedException, PermissionDeniedException
Instruction 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. InstructionList getInstructionsByEngines(IdList engineIds) throws OperationFailedException, PermissionDeniedException
Instructions 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 getEngineIdsByInstruction(Id instructionId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Engine Ids mapped to an
Instruction. instructionId - Id of an Instruction
Ids NotFoundException - instructionId is not
foundNullArgumentException - instructionId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. EngineList getEnginesByInstruction(Id instructionId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Engines mapped to an Instruction.
instructionId - Id of an Instruction
NotFoundException - instructionId is not
foundNullArgumentException - instructionId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.