OSID Logo
OSID Specifications
sequencing package
Version 3.0.0
Release Candidate Preview
Interfaceosid.sequencing.ChainLookupSession
Implementsosid.OsidSession
Description

This session defines methods for retrieving chains.

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
  • isolated antimatroid view: All chain methods in this session operate, retrieve and pertain to chains defined explicitly in the current antimatroid. Using an isolated view is useful for managing Chains with the ChainAdminSession.
  • federated antimatroid view: All chain lookup methods in this session operate, retrieve and pertain to all chains defined in this antimatroid and any other chains implicitly available in this antimatroid through antimatroid inheritence.

The methods useFederatedAntimatroidView() and useIsolatedAntimatroidView() behave as a radio group and one should be selected before invoking any lookup methods.

Chains may have an additional records indicated by their respective record types. The record may not be accessed through a cast of the chains.

MethodgetAntimatroidId
Description

Gets the Antimatroid Id associated with this session.

Returnosid.id.Idthe Antimatroid Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetAntimatroid
Description

Gets the Antimatroid associated with this session.

Returnosid.sequencing.Antimatroidthe antimatroid
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanLookupChains
Description

Tests if this user can perform Chain lookups. A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may not offer lookup operations to unauthorized users.

Returnboolean false if lookup methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoduseComparativeChainView
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.
MethodusePlenaryChainView
Description

A complete view of the Chain 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.
MethoduseFederatedAntimatroidView
Description

Federates the view for methods in this session. A federated view will include chains in antimatroids which are children of this antimatroid in the antimatroid hierarchy.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedAntimatroidView
Description

Isolates the view for methods in this session. An isolated view restricts retrievals to this antimatroid only.

CompliancemandatoryThis method is must be implemented.
MethodgetChain
Description

Gets the Chain specified by its Id.

In plenary mode, the exact Id is found or a NOT_FOUND results. Otherwise, the returned Chain may have a different Id than requested, such as the case where a duplicate Id was assigned to a Chain and retained for compatibility.

Parametersosid.id.IdchainIdthe Id of the Chain to retrieve
Returnosid.sequencing.Chainthe returned Chain
ErrorsNOT_FOUNDno Chain found with the given Id
NULL_ARGUMENT chainId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetChainsByIds
Description

Gets a ChainList corresponding to the given IdList.

In plenary mode, the returned list contains all of the chains specified in the Id list, in the order of the list, including duplicates, or an error results if an Id in the supplied list is not found or inaccessible. Otherwise, inaccessible Chains may be omitted from the list and may present the elements in any order including returning a unique set.

Parametersosid.id.IdListchainIdsthe list of Ids to retrieve
Returnosid.sequencing.ChainListthe returned Chain list
ErrorsNOT_FOUNDan Id was not found
NULL_ARGUMENT chainIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetChainsByGenusType
Description

Gets a ChainList corresponding to the given chain genus Type which does not include chains of types derived from the specified Type.

In plenary mode, the returned list contains all known chains or an error results. Otherwise, the returned list may contain only those chains that are accessible through this session.

Parametersosid.type.TypechainGenusTypea chain genus type
Returnosid.sequencing.ChainListthe returned Chain list
ErrorsNULL_ARGUMENT chainGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetChainsByParentGenusType
Description

Gets a ChainList corresponding to the given chain genus Type and include any additional chains with genus types derived from the specified Type.

In plenary mode, the returned list contains all known chains or an error results. Otherwise, the returned list may contain only those chains that are accessible through this session.

Parametersosid.type.TypechainGenusTypea chain genus type
Returnosid.sequencing.ChainListthe returned Chain list
ErrorsNULL_ARGUMENT chainGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetChainsByRecordType
Description

Gets a ChainList containing the given chain record Type.

In plenary mode, the returned list contains all known chains or an error results. Otherwise, the returned list may contain only those chains that are accessible through this session.

Parametersosid.type.TypechainRecordTypea chain record type
Returnosid.sequencing.ChainListthe returned Chain list
ErrorsNULL_ARGUMENT chainRecordType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetChains
Description

Gets all chains.

In plenary mode, the returned list contains all of the chains including duplicates, or an error results if an Id in the supplied list is not found or inaccessible. Otherwise, inaccessible Chains may be omitted from the list and may present the elements in any order including returning a unique set.

Returnosid.sequencing.ChainListthe returned Chain list
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.