public interface StepLookupSession extends OsidSession
This session provides methods for retrieving Step
objects. The Step
represents a fixed connection between two
Availabilities.
This session defines views that offer differing behaviors when retrieving multiple objects.
Steps
with the StepAdminSession.
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 any lookup methods.
Modifier and Type | Method and Description |
---|---|
boolean |
canLookupSteps()
Tests if this user can perform
Step lookups. |
Office |
getOffice()
Gets the
Office associated with this session. |
Id |
getOfficeId()
Gets the
Office Id associated with this
session. |
Step |
getStep(Id stepId)
Gets the
Step specified by its Id. |
StepList |
getSteps()
Gets all
Steps. |
StepList |
getStepsByGenusType(Type stepGenusType)
Gets a
StepList corresponding to the given step genus
Type which does not include steps of genus types
derived from the specified Type. |
StepList |
getStepsByIds(IdList stepIds)
Gets a
StepList corresponding to the given
IdList. |
StepList |
getStepsByParentGenusType(Type stepGenusType)
Gets a
StepList corresponding to the given step genus
Type and include any additional steps with genus types
derived from the specified Type. |
StepList |
getStepsByProvider(Id resourceId)
Gets a
StepList from the given provider. |
StepList |
getStepsByRecordType(Type stepRecordType)
Gets a
StepList containing the given step record
Type. |
StepList |
getStepsByState(Id stateId)
Gets a list of steps for which the given state is valid.
|
StepList |
getStepsForProcess(Id processId)
Gets a list of steps by process.
|
void |
useActiveStepView()
Only active steps are returned from methods in this session.
|
void |
useAnyStatusStepView()
Borth active and inactive steps are returned from methods in this
session.
|
void |
useComparativeStepView()
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 |
usePlenaryStepView()
A complete view of the
Step 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 canLookupSteps()
Step
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 useComparativeStepView()
mandatory
- This method is must be implemented. void usePlenaryStepView()
Step
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 useActiveStepView()
mandatory
- This method is must be implemented. void useAnyStatusStepView()
mandatory
- This method is must be implemented. Step getStep(Id stepId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Step
specified by its Id.
In plenary mode, the exact Id
is found
or a NOT_FOUND
results. Otherwise, the returned
Step
may have a different Id
than requested,
such as the case where a duplicate Id
was assigned to a
Step
and retained for compatibility.
In active mode, steps are returned that are currently active. In any
status mode, active and inactive steps are returned.stepId
- Id
of the Step
NotFoundException
- stepId
not foundNullArgumentException
- stepId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method is must be implemented. StepList getStepsByIds(IdList stepIds) throws NotFoundException, OperationFailedException, PermissionDeniedException
StepList
corresponding to the given
IdList.
In plenary mode, the returned list contains all of the
steps 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 Steps
may be omitted from the list and may
present the elements in any order including returning a unique set.
In active mode, steps are returned that are currently active. In any
status mode, active and inactive steps are returned.stepIds
- the list of Ids
to retrieve Step
listNotFoundException
- an Id was
not foundNullArgumentException
- stepIds
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. StepList getStepsByGenusType(Type stepGenusType) throws OperationFailedException, PermissionDeniedException
StepList
corresponding to the given step genus
Type
which does not include steps of genus types
derived from the specified Type.
In plenary mode, the returned list contains all known
steps or an error results. Otherwise, the returned list may contain
only those steps that are accessible through this session.
In active mode, steps are returned that are currently active. In any
status mode, active and inactive steps are returned.stepGenusType
- a step genus type Step
listNullArgumentException
- stepGenusType
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. StepList getStepsByParentGenusType(Type stepGenusType) throws OperationFailedException, PermissionDeniedException
StepList
corresponding to the given step genus
Type
and include any additional steps with genus types
derived from the specified Type.
In plenary mode, the returned list contains all known
steps or an error results. Otherwise, the returned list may contain
only those steps that are accessible through this session.
In active mode, steps are returned that are currently active. In any
status mode, active and inactive steps are returned.stepGenusType
- a step genus type Step
listNullArgumentException
- stepGenusType
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. StepList getStepsByRecordType(Type stepRecordType) throws OperationFailedException, PermissionDeniedException
StepList
containing the given step record
Type.
In plenary mode, the returned list contains all known
steps or an error results. Otherwise, the returned list may contain
only those steps that are accessible through this session.
In active mode, steps are returned that are currently active. In any
status mode, active and inactive steps are returned.stepRecordType
- a step record type Step
listNullArgumentException
- stepRecordType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. StepList getStepsByProvider(Id resourceId) throws OperationFailedException, PermissionDeniedException
StepList
from the given provider.
In plenary mode, the returned list contains all known
steps or an error results. Otherwise, the returned list may contain
only those steps that are accessible through this session.
In active mode, steps are returned that are currently active. In any
status mode, active and inactive steps are returned.resourceId
- a resource Id
Step
listNullArgumentException
- resourceId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. StepList getStepsForProcess(Id processId) throws OperationFailedException, PermissionDeniedException
In plenary mode, the returned list contains all known
steps or an error results. Otherwise, the returned list may contain
only those steps that are accessible through this session.
In active mode, steps are returned that are currently active. In any
status mode, active and inactive steps are returned.processId
- a process Id
Step
listNullArgumentException
- processId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. StepList getStepsByState(Id stateId) throws OperationFailedException, PermissionDeniedException
In plenary mode, the returned list contains all known
steps or an error results. Otherwise, the returned list may contain
only those steps that are accessible through this session.
In active mode, steps are returned that are currently active. In any
status mode, active and inactive steps are returned.stateId
- a stateId Id
Step
listNullArgumentException
- stateId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. StepList getSteps() throws OperationFailedException, PermissionDeniedException
Steps.
In plenary mode, the returned list contains all known steps or an
error results. Otherwise, the returned list may contain only those
steps that are accessible through this session.
In active mode, steps are returned that are currently active. In any
status mode, active and inactive steps are returned. Steps
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.