OSID Logo
OSID Specifications
id package
Version 3.0.0
Release Candidate Preview
Interfaceosid.id.IdLookupSession
Implementsosid.OsidSession
Description

This session is for retrieving Id objects. getIds() retrieves all known Ids. The existence of a single identifier can be confirmed through the getId() method, or it can be used as a means of Id translation.

MethodcanLookupIds
Description

Tests if this user can perform Id 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 opt not to offer lookup operations.

Returnboolean false if lookup methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetId
Description

Gets an Id. This method serves to get the principal Id if the given Id Is an alias.

Parametersosid.id.Ididan Id
Returnosid.id.Idthe Id
ErrorsNOT_FOUND id is not found
NULL_ARGUMENT id is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetIdsByIds
Description

Gets a list of Ids. This method serves to get the principal Ids if different from the given Ids.

Parametersosid.id.IdListidsa list of Ids
Returnosid.id.IdLista list of Ids
ErrorsNOT_FOUNDan id is not found
NULL_ARGUMENT ids is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetIdsByAuthority
Description

Gets Ids by the given authority.

Parametersstringauthorityan authority
Returnosid.id.IdLista list of Ids
ErrorsNULL_ARGUMENT authority is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetIdsByAuthorityAndNamespace
Description

Gets Ids by the given authority and namespace.

Parametersstringauthorityan authority
stringnamespacea namespace
Returnosid.id.IdLista list of Ids
ErrorsNULL_ARGUMENT authority or namespace is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetIds
Description

Gets all Ids.

Returnosid.id.IdListthe list of all Ids
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodisEquivalent
Description

Tests if the two Ids are equivalent. Two Ids are equivalent if they identify the same object. If one of the Ids is not known, they are not equivalent.

Parametersosid.id.Ididan Id
osid.id.IdequivalentIdan Id
Returnboolean true if the Ids are equivalent, false otherwise
ErrorsNULL_ARGUMENT null argument provided
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetIdAliases
Description

Gets a list of Id aliases of an Id.

Parametersosid.id.Ididan Id
Returnosid.id.IdLista list of alias Ids
ErrorsNULL_ARGUMENT id is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetIdAliasesByAuthority
Description

Gets a list of Id aliases in a authority for an Id.

Parametersosid.id.Ididan Id
stringauthorityan authority
Returnosid.id.IdLista list of alias Ids
ErrorsNULL_ARGUMENT id or authority is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetIdAliasesByAuthorityAndNamespace
Description

Gets a list of Id aliases in a namespace for an Id.

Parametersosid.id.Ididan Id
stringauthorityan authority
stringnamespacea namespace
Returnosid.id.IdLista list of alias Ids
ErrorsNULL_ARGUMENT id, authority, or namespace is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.