OSID Logo
OSID Specifications
sequencing package
Version 3.1.0
Interfaceosid.sequencing.ElementAdminSession
Implementsosid.OsidSession
Used Byosid.sequencing.SequencingManager
osid.sequencing.SequencingProxyManager
Description

This session provides methods to add and remove elements from a chain.

MethodgetAntimatroidId
Description

Gets the Antimatroid Id associated with this session.

Returnosid.id.Id the Antimatroid Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetAntimatroid
Description

Gets the Antimatroid associated with this session.

Returnosid.sequencing.Antimatroid the antimatroid
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanManageElements
Description

Tests if this user can add and remove eleemnts to a chain. A return of true does not guarantee successful authorization. A return of false indicates that it is known performing any update will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer these operations to an unauthorized user.

Returnboolean false if managing elements is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodaddElement
Description

Adds an element to a chain,

Parametersosid.id.IdchainId the Id of the chain
osid.id.Idid the Id of the element to add
ErrorsALREADY_EXISTS id already in chainId
NOT_FOUND chainId or id not found
NULL_ARGUMENT chainId or id is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodaddElements
Description

Adds a list of ordered elements to a chain.

Parametersosid.id.IdchainId the Id of the chain
osid.id.IdListids the Ids of the elements to add
ErrorsALREADY_EXISTS an id already in chainId
NOT_FOUND chainId or an id not found
NULL_ARGUMENT chainIds or id is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodremoveElement
Description

Removes an element from a chain.

Parametersosid.id.IdchainId the Id of the chain
osid.id.Idid the Id of the element to remove
ErrorsNOT_FOUND chainId or id not found, or id is not in chainId
NULL_ARGUMENT chainId or id is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.