public interface InstructionLookupSession extends OsidSession
This session defines methods for retrieving instructions.
This lookup session defines several views:
Instructions
with the InstructionAdminSession.
The methods useFederatedEngineView()
and
useIsolatedEngineView()
behave as a radio group and one should be
selected before invoking any lookup methods.
Instructions may have an additional records indicated by their
respective record types. The record may not be accessed through a cast of
the Instructions.
Modifier and Type | Method and Description |
---|---|
boolean |
canLookupInstructions()
Tests if this user can perform
Instruction lookups. |
Engine |
getEngine()
Gets the
Engine associated with this session. |
Id |
getEngineId()
Gets the
Engine Id associated with this
session. |
Instruction |
getInstruction(Id instructionId)
Gets the
Instruction specified by its Id. |
InstructionList |
getInstructions()
Gets all instructions.
|
InstructionList |
getInstructionsByGenusType(Type instructionGenusType)
Gets an
InstructionList corresponding to the given
instruction genus Type which does not include
instructions of types derived from the specified Type. |
InstructionList |
getInstructionsByIds(IdList instructionIds)
Gets an
InstructionList corresponding to the given
IdList. |
InstructionList |
getInstructionsByParentGenusType(Type instructionGenusType)
Gets an
InstructionList corresponding to the given
instruction genus Type and include any additional
instructions with genus types derived from the specified Type. |
InstructionList |
getInstructionsByRecordType(Type instructionRecordType)
Gets an
InstructionList containing the given
instruction record Type. |
InstructionList |
getInstructionsForAgenda(Id agendaId)
Gets an
InstructionList for the given agenda. |
InstructionList |
getInstructionsForAgendaAndCheck(Id agendaId,
Id checkId)
Gets an
InstructionList for the given agenda and check. |
InstructionList |
getInstructionsForAgendaAndCheckOnDate(Id agendaId,
Id checkId,
DateTime from,
DateTime to)
Gets an
InstructionList for the given agenda and check
and effective for the entire given date range inclusive but not
confined to the date range. |
InstructionList |
getInstructionsForAgendaOnDate(Id agendaId,
DateTime from,
DateTime to)
Gets an
InstructionList for the given agenda and
effective for the entire given date range inclusive but not confined
to the date range. |
InstructionList |
getInstructionsForCheck(Id checkId)
Gets an
InstructionList for the given check. |
InstructionList |
getInstructionsForCheckOnDate(Id checkId,
DateTime from,
DateTime to)
Gets an
InstructionList for the given check and
effective for the entire given date range inclusive but not confined
to the date range. |
InstructionList |
getInstructionsOnDate(DateTime from,
DateTime to)
Gets an
InstructionList effective for the entire given
date range inclusive but not confined to the date range. |
void |
useActiveInstructionView()
Only active instructions are returned by methods in this session.
|
void |
useAnyStatusInstructionView()
All active and inactive instructions of are returned by methods in
this session.
|
void |
useComparativeInstructionView()
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 |
useFederatedEngineView()
Federates the view for methods in this session.
|
void |
useIsolatedEngineView()
Isolates the view for methods in this session.
|
void |
usePlenaryInstructionView()
A complete view of the
Instruction returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getEngineId()
Engine
Id
associated with this
session. Engine Id
associated with this sessionmandatory
- This method must be implemented. Engine getEngine() throws OperationFailedException, PermissionDeniedException
Engine
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canLookupInstructions()
Instruction
lookups. A
return of true does not guarantee successful authorization. A return
of false indicates that it is known all methods in this session will
result in a PERMISSION_DENIED.
This is intended as a
hint to an application that may not offer lookup operations to
unauthorized users. false
if lookup methods are not authorized,
true
otherwisemandatory
- This method must be implemented. void useComparativeInstructionView()
mandatory
- This method is must be implemented. void usePlenaryInstructionView()
Instruction
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. void useFederatedEngineView()
mandatory
- This method is must be implemented. void useIsolatedEngineView()
mandatory
- This method is must be implemented. void useActiveInstructionView()
mandatory
- This method is must be implemented. void useAnyStatusInstructionView()
mandatory
- This method is must be implemented. Instruction getInstruction(Id instructionId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Instruction
specified by its Id.
In plenary mode, the exact Id
is found or a
NOT_FOUND
results. Otherwise, the returned
Instruction
may have a different Id
than
requested, such as the case where a duplicate Id
was
assigned to an Instruction
and retained for
compatibility.instructionId
- the Id
of the Instruction
to retrieve Instruction
NotFoundException
- no Instruction
found
with the given Id
NullArgumentException
- instructionId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. InstructionList getInstructionsByIds(IdList instructionIds) throws NotFoundException, OperationFailedException, PermissionDeniedException
InstructionList
corresponding to the given
IdList.
In plenary mode, the returned list contains all of the
instructions specified in the Id
list, in the order of
the list, including duplicates, or an error results if an Id
in the supplied list is not found or inaccessible. Otherwise,
inaccessible Instructions
may be omitted from the list
and may present the elements in any order including returning a unique
set.
In active mode, instructions are returned that are currently active.
In any status mode, active and inactive instructions are returned.instructionIds
- the list of Ids
to retrieve Instruction
listNotFoundException
- an Id was
not foundNullArgumentException
- instructionIds
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. InstructionList getInstructionsByGenusType(Type instructionGenusType) throws OperationFailedException, PermissionDeniedException
InstructionList
corresponding to the given
instruction genus Type
which does not include
instructions of types derived from the specified Type.
In plenary mode, the returned list contains all known
instructions or an error results. Otherwise, the returned list may
contain only those instructions that are accessible through this
session.
In active mode, instructions are returned that are currently active.
In any status mode, active and inactive instructions are returned.instructionGenusType
- an instruction genus type Instruction
listNullArgumentException
- instructionGenusType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. InstructionList getInstructionsByParentGenusType(Type instructionGenusType) throws OperationFailedException, PermissionDeniedException
InstructionList
corresponding to the given
instruction genus Type
and include any additional
instructions with genus types derived from the specified Type.
In plenary mode, the returned list contains all known
instructions or an error results. Otherwise, the returned list may
contain only those instructions that are accessible through this
session.
In active mode, instructions are returned that are currently active.
In any status mode, active and inactive instructions are returned.instructionGenusType
- an instruction genus type Instruction
listNullArgumentException
- instructionGenusType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. InstructionList getInstructionsByRecordType(Type instructionRecordType) throws OperationFailedException, PermissionDeniedException
InstructionList
containing the given
instruction record Type.
In plenary mode, the returned list contains all known instructions or
an error results. Otherwise, the returned list may contain only those
instructions that are accessible through this session.
In active mode, instructions are returned that are currently active.
In any status mode, active and inactive instructions are returned.instructionRecordType
- an instruction record type Instruction
listNullArgumentException
- instructionRecordType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. InstructionList getInstructionsOnDate(DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
InstructionList
effective for the entire given
date range inclusive but not confined to the date range.
In plenary mode, the returned list contains all known
instructions or an error results. Otherwise, the returned list may
contain only those instructions that are accessible through this
session.
In active mode, instructions are returned that are currently active.
In any status mode, active and inactive instructions are returned.from
- a start dateto
- an end date Instruction
listInvalidArgumentException
- from
is
greater than to
NullArgumentException
- from
or
to
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. InstructionList getInstructionsForAgenda(Id agendaId) throws OperationFailedException, PermissionDeniedException
InstructionList
for the given agenda.
In plenary mode, the returned list contains all known instructions or
an error results. Otherwise, the returned list may contain only those
instructions that are accessible through this session.
In active mode, instructions are returned that are currently active.
In any status mode, active and inactive instructions are returned.agendaId
- an agenda Id
Instruction
listNullArgumentException
- agendaId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. InstructionList getInstructionsForAgendaOnDate(Id agendaId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
InstructionList
for the given agenda and
effective for the entire given date range inclusive but not confined
to the date range.
In plenary mode, the returned list contains all known
instructions or an error results. Otherwise, the returned list may
contain only those instructions that are accessible through this
session.
In active mode, instructions are returned that are currently active.
In any status mode, active and inactive instructions are returned.agendaId
- an agenda Id
from
- a start dateto
- an end date Instruction
listInvalidArgumentException
- from
is
greater than to
NullArgumentException
- agendaId, from,
or to
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. InstructionList getInstructionsForCheck(Id checkId) throws OperationFailedException, PermissionDeniedException
InstructionList
for the given check.
In plenary mode, the returned list contains all known instructions or
an error results. Otherwise, the returned list may contain only those
instructions that are accessible through this session.
In active mode, instructions are returned that are currently active.
In any status mode, active and inactive instructions are returned.checkId
- a check Id
Instruction
listNullArgumentException
- checkId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. InstructionList getInstructionsForCheckOnDate(Id checkId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
InstructionList
for the given check and
effective for the entire given date range inclusive but not confined
to the date range.
In plenary mode, the returned list contains all known instructions or
an error results. Otherwise, the returned list may contain only those
instructions that are accessible through this session.
In active mode, instructions are returned that are currently active.
In any status mode, active and inactive instructions are returned.checkId
- a check Id
from
- a start dateto
- an end date Instruction
listInvalidArgumentException
- from
is
greater than to
NullArgumentException
- checkId, from,
or to
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. InstructionList getInstructionsForAgendaAndCheck(Id agendaId, Id checkId) throws OperationFailedException, PermissionDeniedException
InstructionList
for the given agenda and check.
In plenary mode, the returned list contains all known instructions or
an error results. Otherwise, the returned list may contain only those
instructions that are accessible through this session.
In active mode, instructions are returned that are currently active.
In any status mode, active and inactive instructions are returned.agendaId
- an agenda Id
checkId
- a check Id
Instruction
listNullArgumentException
- agendaId
or
checkId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. InstructionList getInstructionsForAgendaAndCheckOnDate(Id agendaId, Id checkId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException
InstructionList
for the given agenda and check
and effective for the entire given date range inclusive but not
confined to the date range.
In plenary mode, the returned list contains all known instructions or
an error results. Otherwise, the returned list may contain only those
instructions that are accessible through this session.
In active mode, instructions are returned that are currently active.
In any status mode, active and inactive instructions are returned.agendaId
- an agenda Id
checkId
- a check Id
from
- a start dateto
- an end date Instruction
listInvalidArgumentException
- from
is
greater than to
NullArgumentException
- agendaId, checkId, from,
or to
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. InstructionList getInstructions() throws OperationFailedException, PermissionDeniedException
In plenary mode, the returned list contains all of the
instructions, including duplicates, or an error results if an
Id
in the supplied list is not found or inaccessible.
Otherwise, inaccessible Instructions
may be omitted
from the list and may present the elements in any order including
returning a unique set.
In active mode, instructions are returned that are currently active.
In any status mode, active and inactive instructions are returned. Instruction
listOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.