OSID Logo
OSID Specifications
process package
Version 3.1.0
Interfaceosid.process.StateSession
Implementsosid.OsidSession
Used Byosid.process.ProcessManager
osid.process.ProcessProxyManager
Description

This session provides methods to retrieve State to reference Id mappings. A reference Id may map to only one State while a State may map to multiple reference Ids.

This lookup session defines several views

  • comparative view: elements may be silently omitted or re-ordered
  • plenary view: provides a complete result set or is an error condition
MethodcanLookupStateMappings
Description

Tests if this user can perform lookups of state/Id mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known lookup 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.

Returnboolean false if looking up mappings is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethoduseComparativeStateView
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.

Compliancemandatory This method is must be implemented.
MethodusePlenaryStateView
Description

A complete view of the State 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.

Compliancemandatory This method is must be implemented.
MethodgetProcessIdsByReference
Description

Gets the processes to which the reference Id belongs.

Parametersosid.id.IdreferenceId a reference Id
Returnosid.id.IdList the processes to which the agent belongs
ErrorsNOT_FOUND referenceId is not found
NULL_ARGUMENT referenceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetProcessesByReference
Description

Gets the processes to which the reference Id belongs.

Parametersosid.id.IdreferenceId a reference Id
Returnosid.process.ProcessList the processes to which the agent belongs
ErrorsNOT_FOUND referenceId is not found
NULL_ARGUMENT referenceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetStateIdsByReference
Description

Gets the State Id associated with the given reference Id.

Parametersosid.id.IdreferenceId a reference Id
Returnosid.id.IdList associated states
ErrorsNOT_FOUND referenceId is not found
NULL_ARGUMENT referenceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetStatesByReference
Description

Gets the State associated with the given Id.

Parametersosid.id.IdreferenceId a reference Id
Returnosid.process.StateList associated states
ErrorsNOT_FOUND referenceId is not found
NULL_ARGUMENT referenceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetStateIdByReferenceAndProcess
Description

Gets the State Id associated with the given reference Id and process.

Parametersosid.id.IdreferenceId a reference Id
osid.id.IdprocessId Id of a Process
Returnosid.id.Id associated state
ErrorsNOT_FOUND referenceId is not found in process
NULL_ARGUMENT referenceId or processId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetStateIdsByReferencesAndProcess
Description

Gets the State Ids associated with the given reference Id list and process. The returned state Ids are in the order they are supplied.

Parametersosid.id.IdListreferenceIds a reference Id
osid.id.IdprocessId Id of a Process
Returnosid.id.IdList associated states
ErrorsNOT_FOUND referenceId is not found in process
NULL_ARGUMENT referenceIds or processId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetStateByReferenceAndProcess
Description

Gets the State associated with the given reference and process.

Parametersosid.id.IdreferenceId a reference Id
osid.id.IdprocessId Id of a Process
Returnosid.process.State associated state
ErrorsNOT_FOUND a referenceId is not found in process
NULL_ARGUMENT referenceId or processId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetStatesByReferencesAndProcess
Description

Gets the States associated with the given references and process. The returned states are in the order they are supplied.

Parametersosid.id.IdListreferenceIds a reference Ids
osid.id.IdprocessId Id of a Process
Returnosid.process.StateList associated state
ErrorsNOT_FOUND a referenceId is not found in process
NULL_ARGUMENT referenceIds or processId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetReferencesByState
Description

Gets the list of reference Ids mapped to a State.

Parametersosid.id.IdstateId Id of a State
Returnosid.id.IdList list of reference Ids
ErrorsNOT_FOUND stateId is not found
NULL_ARGUMENT stateId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.