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

This session provides methods to re-assign Chains to Antimatroid mappings. A Chain may appear in multiple Antimatroid objects and removing the last reference to a Chain is the equivalent of deleting it. Each Antimatroid may have its own authorizations governing who is allowed to operate on it.

Adding a reference of a Chain to another Antimatroid is not a copy operation (eg: does not change its Id).

MethodcanAssignChains
Description

Tests if this user can alter chain/antimatroid mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping 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 assignment operations to unauthorized users.

Returnboolean false if chain is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodcanAssignChainsToAntimatroid
Description

Tests if this user can alter chain/antimatroid mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping 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 assignment operations to unauthorized users.

Parametersosid.id.IdantimatroidId the Id of the Antimatroid
Returnboolean false if mapping is not authorized, true otherwise
ErrorsNULL_ARGUMENT antimatroidId is null
Compliancemandatory This method must be implemented.
MethodgetAssignableAntimatroidIds
Description

Gets a list of antimatroids including and under the given antimatroid node in which any chain can be assigned.

Parametersosid.id.IdantimatroidId the Id of the Antimatroid
Returnosid.id.IdList list of assignable antimatroid Ids
ErrorsNULL_ARGUMENT antimatroidId is null
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetAssignableAntimatroidIdsForChain
Description

Gets a list of antimatroids including and under the given antimatroid node in which a specific chain can be assigned.

Parametersosid.id.IdantimatroidId the Id of the Antimatroid
osid.id.IdchainId the Id of the Chain
Returnosid.id.IdList list of assignable antimatroid Ids
ErrorsNULL_ARGUMENT antimatroidId or chainId is null
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodassignChainToAntimatroid
Description

Adds an existing Chain to a Antimatroid.

Parametersosid.id.IdchainId the Id of the Chain
osid.id.IdantimatroidId the Id of the Antimatroid
ErrorsALREADY_EXISTS chainId is already assigned to antimatroidId
NOT_FOUND chainId or antimatroidId not found
NULL_ARGUMENT chainId or antimatroidId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodunassignChainFromAntimatroid
Description

Removes a Chain from a Antimatroid.

Parametersosid.id.IdchainId the Id of the Chain
osid.id.IdantimatroidId the Id of the Antimatroid
ErrorsNOT_FOUND chainId or antimatroidId not found or chainId not assigned to antimatroidId
NULL_ARGUMENT chainId or antimatroidId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodreassignChainToAntimatroid
Description

Moves a Chain from one Antimatroid to another. Mappings to other Antimatroids are unaffected.

Parametersosid.id.IdchainId the Id of the Chain
osid.id.IdfromAntimatroidId the Id of the current Antimatroid
osid.id.IdtoAntimatroidId the Id of the destination Antimatroid
ErrorsALREADY_EXISTS chainId already assigned to toAntimatroidId
NOT_FOUND chainId, fromAntimatroidId, or toAntimatroidId not found or chainId not mapped to fromAntimatroidId
NULL_ARGUMENT chainId, fromAntimatroidId, or toAntimatroidId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.