public interface StepProcessorLookupSession extends OsidSession
This session provides methods for retrieving StepProcessors.
This session defines views that offer differing behaviors when retrieving multiple objects.
StepProcessors
with the
StepProcessorAdminSession.
Generally, the comparative view should be used for most applications
as it permits operation even if there is data that cannot be accessed. The
methods useFederatedOfficeView()
and
useIsolatedOfficeView()
behave as a radio group and one should be
selected before invoking the methods in this session.
Modifier and Type | Method and Description |
---|---|
boolean |
canLookupStepProcessors()
Tests if this user can perform
StepProcessors lookups. |
Office |
getOffice()
Gets the
Office associated with this session. |
Id |
getOfficeId()
Gets the
Office Id associated with this
session. |
StepProcessor |
getStepProcessor(Id stepProcessorId)
Gets the
StepProcessor specified by its Id. |
StepProcessorList |
getStepProcessors()
Gets all
StepProcessors. |
StepProcessorList |
getStepProcessorsByGenusType(Type stepProcessorGenusType)
Gets a
StepProcessorList corresponding to the given
step processor genus Type which does not include step
processor of genus types derived from the specified Type. |
StepProcessorList |
getStepProcessorsByIds(IdList stepProcessorIds)
Gets a
StepProcessorList corresponding to the given
IdList. |
StepProcessorList |
getStepProcessorsByParentGenusType(Type stepProcessorGenusType)
Gets a
StepProcessorList corresponding to the given
step processor genus Type and include any additional
step processor with genus types derived from the specified
Type. |
StepProcessorList |
getStepProcessorsByRecordType(Type stepProcessorRecordType)
Gets a
StepProcessorList containing the given step
processor record Type. |
void |
useActiveStepProcessorView()
Only active step processors are returned by methods in this session.
|
void |
useAnyStatusStepProcessorView()
All active and inactive step processors enablers are returned by
methods in this session.
|
void |
useComparativeStepProcessorView()
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 |
useFederatedOfficeView()
Federates the view for methods in this session.
|
void |
useIsolatedOfficeView()
Isolates the view for methods in this session.
|
void |
usePlenaryStepProcessorView()
A complete view of the
StepProcessor returns is
desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getOfficeId()
Office
Id
associated with this
session. Office Id
associated with this sessionmandatory
- This method must be implemented. Office getOffice() throws OperationFailedException, PermissionDeniedException
Office
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canLookupStepProcessors()
StepProcessors
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 opt not to offer lookup operations to
unauthorized users. false
if lookup methods are not authorized,
true
otherwisemandatory
- This method must be implemented. void useComparativeStepProcessorView()
mandatory
- This method is must be implemented. void usePlenaryStepProcessorView()
StepProcessor
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 useFederatedOfficeView()
mandatory
- This method is must be implemented. void useIsolatedOfficeView()
mandatory
- This method is must be implemented. void useActiveStepProcessorView()
mandatory
- This method is must be implemented. void useAnyStatusStepProcessorView()
mandatory
- This method is must be implemented. StepProcessor getStepProcessor(Id stepProcessorId) throws NotFoundException, OperationFailedException, PermissionDeniedException
StepProcessor
specified by its Id.
In plenary mode, the exact Id
is found
or a NOT_FOUND
results. Otherwise, the returned
StepProcessor
may have a different Id
than
requested, such as the case where a duplicate Id
was
assigned to a StepProcessor
and retained for
compatibility.
In active mode, step processors are returned that are currently
active. In any status mode, active and inactive step processors are
returned.stepProcessorId
- Id
of the StepProcessor
NotFoundException
- stepProcessorId
not
foundNullArgumentException
- stepProcessorId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method is must be implemented. StepProcessorList getStepProcessorsByIds(IdList stepProcessorIds) throws NotFoundException, OperationFailedException, PermissionDeniedException
StepProcessorList
corresponding to the given
IdList.
In plenary mode, the returned list contains all of the
step processor specified in the Id
list, in the order
of the list, including duplicates, or an error results if a Id
in the supplied list is not found or inaccessible. Otherwise,
inaccessible StepProcessors
may be omitted from the
list and may present the elements in any order including returning a
unique set.
In active mode, step processors are returned that are currently
active. In any status mode, active and inactive step processors are
returned.stepProcessorIds
- the list of Ids
to retrieve StepProcessor
listNotFoundException
- a Id
was not foundNullArgumentException
- stepProcessorIds
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. StepProcessorList getStepProcessorsByGenusType(Type stepProcessorGenusType) throws OperationFailedException, PermissionDeniedException
StepProcessorList
corresponding to the given
step processor genus Type
which does not include step
processor of genus types derived from the specified Type.
In plenary mode, the returned list contains all known
step processor or an error results. Otherwise, the returned list may
contain only those step processor that are accessible through this
session.
In active mode, step processors are returned that are currently
active. In any status mode, active and inactive step processors are
returned.stepProcessorGenusType
- a step processor genus type StepProcessor
listNullArgumentException
- stepProcessorGenusType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. StepProcessorList getStepProcessorsByParentGenusType(Type stepProcessorGenusType) throws OperationFailedException, PermissionDeniedException
StepProcessorList
corresponding to the given
step processor genus Type
and include any additional
step processor with genus types derived from the specified
Type.
In plenary mode, the returned list contains all known
step processor or an error results. Otherwise, the returned list may
contain only those step processor that are accessible through this
session.
In active mode, step processors are returned that are currently
active. In any status mode, active and inactive step processors are
returned.stepProcessorGenusType
- a step processor genus type StepProcessor
listNullArgumentException
- stepProcessorGenusType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. StepProcessorList getStepProcessorsByRecordType(Type stepProcessorRecordType) throws OperationFailedException, PermissionDeniedException
StepProcessorList
containing the given step
processor record Type.
In plenary mode, the returned list contains all known
step processor or an error results. Otherwise, the returned list may
contain only those step processor that are accessible through this
session.
In active mode, step processors are returned that are currently
active. In any status mode, active and inactive step processors are
returned.stepProcessorRecordType
- a step processor record type StepProcessor
listNullArgumentException
- stepProcessorRecordType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. StepProcessorList getStepProcessors() throws OperationFailedException, PermissionDeniedException
StepProcessors.
In plenary mode, the returned list contains all known step processor
or an error results. Otherwise, the returned list may contain only
those step processor that are accessible through this session.
In active mode, step processors are returned that are currently
active. In any status mode, active and inactive step processors are
returned. StepProcessor
listOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.