Interface | osid.process.StateLookupSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session defines methods for retrieving states. A
This lookup session defines several views:
The methods States may have an additional records indicated by their
respective record types. The record may not be accessed
through a cast of the | ||
Method | getProcessId | ||
Description |
Gets the | ||
Return | osid.id.Id | the Process Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getProcess | ||
Description |
Gets the | ||
Return | osid.process.Process | the Process associated with this session | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canLookupStates | ||
Description |
Tests if this user can perform | ||
Return | boolean | false if lookup methods are not authorized, true
otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | useComparativeStateView | ||
Description |
The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | usePlenaryStateView | ||
Description |
A complete view of the | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useFederatedProcessView | ||
Description |
Federates the view for methods in this session. A federated view will include states in processes which are children of this process in the process hierarchy. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useIsolatedProcessView | ||
Description |
Isolates the view for methods in this session. An isolated view restricts lookups to this process only. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getState | ||
Description |
Gets the | ||
Parameters | osid.id.Id | stateId | the Id of the State to retrieve |
Return | osid.process.State | the returned State | |
Errors | NOT_FOUND | no State found with the given Id | |
NULL_ARGUMENT | stateId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getStatesByIds | ||
Description |
Gets a | ||
Parameters | osid.id.IdList | stateIds | the list of Ids to retrieve |
Return | osid.process.StateList | the returned State list | |
Errors | NOT_FOUND | an Id was not found | |
NULL_ARGUMENT | stateIdLs is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getStatesByGenusType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | stateGenusType | a state genus type |
Return | osid.process.StateList | the returned State list | |
Errors | NULL_ARGUMENT | stateGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getStatesByParentGenusType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | stateGenusType | a state genus type |
Return | osid.process.StateList | the returned State list | |
Errors | NULL_ARGUMENT | stateGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getStatesByRecordType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | stateRecordType | a state record type |
Return | osid.process.StateList | the returned State list | |
Errors | NULL_ARGUMENT | stateRecordType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getStates | ||
Description |
Gets all | ||
Return | osid.process.StateList | a list of States | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getValidNextStates | ||
Description |
Gets the next valid states for the given state. | ||
Parameters | osid.id.Id | stateId | a state Id |
Return | osid.process.StateList | the valid next States | |
Errors | NOT_FOUND | stateId is not found | |
NULL_ARGUMENT | stateId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |