public interface StateSequencingSession extends OsidSession
This session manages state sequences.
Modifier and Type | Method and Description |
---|---|
void |
addValidNextState(Id stateId,
Id nextStateId)
Adds a valid next state.
|
boolean |
canSequenceStates()
Tests if this user can sequence
States. |
Process |
getProcess()
Gets the
Process associated with this session. |
Id |
getProcessId()
Gets the
Process Id associated with this
session. |
void |
removeValidNextState(Id stateId,
Id nextStateId)
Removes a valid next state.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getProcessId()
Process
Id
associated with this
session. Process Id
associated with this sessionmandatory
- This method must be implemented. Process getProcess() throws OperationFailedException, PermissionDeniedException
Process
associated with this session. Process
associated with this sessionOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canSequenceStates()
States.
A return of
true does not guarantee successful authorization. A return of false
indicates that it is known these methods PERMISSION_DENIED.
This is intended as a hint to an application that may opts not
to offer these operations to unauthorized users. false
if State
sequencing is not
authorized, true
otherwisemandatory
- This method must be implemented. void addValidNextState(Id stateId, Id nextStateId) throws NotFoundException, OperationFailedException, PermissionDeniedException
stateId
- the Id
of the State
nextStateId
- the Id
of the next State
NotFoundException
- stateId
or
nextStateId
is not foundNullArgumentException
- stateId
or
nextStateId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void removeValidNextState(Id stateId, Id nextStateId) throws NotFoundException, OperationFailedException, PermissionDeniedException
stateId
- the Id
of the State
nextStateId
- the Id
of the next State
NotFoundException
- stateId
or
nextStateId
is not foundNullArgumentException
- stateId
or
nextStateId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.