OSID Logo
OSID Specifications
id package
Version 3.1.0
Interfaceosid.id.IdLookupSession
Implementsosid.OsidSession
Used Byosid.id.IdManager
osid.id.IdProxyManager
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
Compliancemandatory This method must be implemented.
MethodgetId
Description

Gets an Id. This method serves to get the primary Id if the given Id Is an alias. Otherwise, the same Id is returned.

Parametersosid.id.Idid an Id
Returnosid.id.Id the Id
ErrorsNOT_FOUND id is not found
NULL_ARGUMENT id is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetIdsByIds
Description

Gets a list of Ids. This method serves to get the primary Ids if different from the given Ids. Otherwise, the same Ids are returned.

Parametersosid.id.IdListids a list of Ids
Returnosid.id.IdList a list of Ids
ErrorsNOT_FOUND an id is not found
NULL_ARGUMENT ids is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetIdsByAuthority
Description

Gets Ids by the given authority.

Parametersstringauthority an authority
Returnosid.id.IdList a list of Ids
ErrorsNULL_ARGUMENT authority is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetIdsByAuthorityAndNamespace
Description

Gets Ids by the given authority and namespace.

Parametersstringauthority an authority
stringnamespace a namespace
Returnosid.id.IdList a list of Ids
ErrorsNULL_ARGUMENT authority or namespace is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetIds
Description

Gets all Ids.

Returnosid.id.IdList the list of all Ids
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodisEquivalent
Description

Tests if the two Ids are equivalent. Two Ids are equivalent if they identify the same object such as one is an alias of the other.

Parametersosid.id.Idid an Id
osid.id.IdequivalentId an Id
Returnboolean true if the Ids are equivalent, false otherwise
ErrorsNULL_ARGUMENT null argument provided
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetIdAliases
Description

Gets a list of Id aliases of an Id.

Parametersosid.id.Idid an Id
Returnosid.id.IdList a list of alias Ids
ErrorsNULL_ARGUMENT id is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetIdAliasesByAuthority
Description

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

Parametersosid.id.Idid an Id
stringauthority an authority
Returnosid.id.IdList a list of alias Ids
ErrorsNULL_ARGUMENT id or authority is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetIdAliasesByAuthorityAndNamespace
Description

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

Parametersosid.id.Idid an Id
stringauthority an authority
stringnamespace a namespace
Returnosid.id.IdList a list of alias Ids
ErrorsNULL_ARGUMENT id, authority, or namespace is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.