OSID Logo
OSID Specifications
id package
Version 3.1.0
Interfaceosid.id.IdAdminSession
Implementsosid.OsidSession
Implemented Byosid.id.batch.IdBatchAdminSession
Used Byosid.id.IdManager
osid.id.IdProxyManager
Description

This session is used to manually create new Ids.

MethodcanCreateIds
Description

Tests if this user can create Ids. A return of true does not guarantee successful authorization. A return of false indicates that it is known create 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 create operations.

Returnboolean false if create methods are not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodgetIdFormForCreate
Description

Gets the Id form for creating new Ids. A new form should be requested for each create transaction.

Returnosid.id.IdForm the Id form
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcreateId
Description

Creates a new Id. A new IdForm should be requested for each create transaction.

Parametersosid.id.IdFormidForm the Id form
Returnosid.id.Id the created Id
ErrorsALREADY_EXISTS an Id for the authority, namespace, and identifier already exists
ILLEGAL_STATE idForm already used in a create transaction
INVALID_ARGUMENT one or more of the form elements is invalid
NULL_ARGUMENT idForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED idForm did not originate from getIdFormForCreate()
Compliancemandatory This method must be implemented.
MethodcanAliasIds
Description

Tests if this user can alias Ids. A return of true does not guarantee successful authorization. A return of false indicates that it is known add 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 alias operations.

Returnboolean false if alias methods are not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodaliasId
Description

Makes two Ids equivalent. The primary and alias Ids are already known to this service. If the alias Id is already mapped to another Id, it is changed to map to the given primary Id. Calls to IdLookupSession.getId(aliastId) return the id.

Parametersosid.id.Idid the primary Id
osid.id.IdaliasId the Id alias
ErrorsNOT_FOUND id or aliasId is not found
NULL_ARGUMENT id or aliasId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodremoveAlias
Description

Removes an alias.

Parametersosid.id.Idid the primary Id
osid.id.IdaliasId the alias Id
ErrorsNOT_FOUND id or aliasId is not found or aliasId not mapped to id
NULL_ARGUMENT id or aliasId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.