OSID Logo
OSID Specifications
process package
Version 3.0.0
Release Candidate Preview
Interfaceosid.process.StateSession
Implementsosid.OsidSession
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
CompliancemandatoryThis 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.

CompliancemandatoryThis 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.

CompliancemandatoryThis method is must be implemented.
MethodgetProcessIdsByReference
Description

Gets the processes to which the reference Id belongs.

Parametersosid.id.IdreferenceIda reference Id
Returnosid.id.IdListthe processes to which the agent belongs
ErrorsNOT_FOUND referenceId is not found
NULL_ARGUMENT referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetProcessesByReference
Description

Gets the processes to which the reference Id belongs.

Parametersosid.id.IdreferenceIda reference Id
Returnosid.process.ProcessListthe processes to which the agent belongs
ErrorsNOT_FOUND referenceId is not found
NULL_ARGUMENT referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetStateIdsByReference
Description

Gets the State Id associated with the given reference Id.

Parametersosid.id.IdreferenceIda reference Id
Returnosid.id.IdListassociated states
ErrorsNOT_FOUND referenceId is not found
NULL_ARGUMENT referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetStatesByReference
Description

Gets the State associated with the given Id.

Parametersosid.id.IdreferenceIda reference Id
Returnosid.process.StateListassociated states
ErrorsNOT_FOUND referenceId is not found
NULL_ARGUMENT referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetStateIdByReferenceAndProcess
Description

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

Parametersosid.id.IdreferenceIda reference Id
osid.id.IdprocessId Id of a Process
Returnosid.id.Idassociated state
ErrorsNOT_FOUND referenceId is not found in process
NULL_ARGUMENT referenceId or processId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdListreferenceIdsa reference Id
osid.id.IdprocessId Id of a Process
Returnosid.id.IdListassociated states
ErrorsNOT_FOUND referenceId is not found in process
NULL_ARGUMENT referenceIds or processId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetStateByReferenceAndProcess
Description

Gets the State associated with the given reference and process.

Parametersosid.id.IdreferenceIda reference Id
osid.id.IdprocessId Id of a Process
Returnosid.process.Stateassociated state
ErrorsNOT_FOUNDa referenceId is not found in process
NULL_ARGUMENT referenceId or processId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdListreferenceIdsa reference Ids
osid.id.IdprocessId Id of a Process
Returnosid.process.StateListassociated state
ErrorsNOT_FOUNDa referenceId is not found in process
NULL_ARGUMENT referenceIds or processId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdListlist of reference Ids
ErrorsNOT_FOUND stateId is not found
NULL_ARGUMENT stateId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.