Interface StateSequencingSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session manages state sequences.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddValidNextState(Id stateId, Id nextStateId) Adds a valid next state.booleanTests if this user can sequenceStates.Gets theProcessassociated with this session.Gets theProcessIdassociated with this session.voidremoveValidNextState(Id stateId, Id nextStateId) Removes a valid next state.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.
-
Method Details
-
getProcessId
Id getProcessId()Gets theProcessIdassociated with this session.- Returns:
- the
Process Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getProcess
Gets theProcessassociated with this session.- Returns:
- the
Processassociated with this session - Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceStates
boolean canSequenceStates()Tests if this user can sequenceStates. A return of true does not guarantee successful authorization. A return of false indicates that it is known these methodsPERMISSION_DENIED. This is intended as a hint to an application that may opts not to offer these operations to unauthorized users.- Returns:
falseifStatesequencing is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
addValidNextState
void addValidNextState(Id stateId, Id nextStateId) throws NotFoundException, OperationFailedException, PermissionDeniedException Adds a valid next state.- Parameters:
stateId- theIdof theStatenextStateId- theIdof the nextState- Throws:
NotFoundException-stateIdornextStateIdis not foundNullArgumentException-stateIdornextStateIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
removeValidNextState
void removeValidNextState(Id stateId, Id nextStateId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes a valid next state.- Parameters:
stateId- theIdof theStatenextStateId- theIdof the nextState- Throws:
NotFoundException-stateIdornextStateIdis not foundNullArgumentException-stateIdornextStateIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-