OSID Logo
OSID Specifications
id package
Version 3.0.0
Release Candidate Preview
Interfaceosid.id.IdAdminSession
Implementsosid.OsidSession
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
CompliancemandatoryThis 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.IdFormthe Id form
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcreateId
Description

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

Parametersosid.id.IdFormidFormthe Id form
Returnosid.id.Idthe created Id
ErrorsALREADY_EXISTSan Id for the authority, namespace, and identifier already exists
ILLEGAL_STATE idForm already used in a create transaction
INVALID_ARGUMENTone or more of the form elements is invalid
NULL_ARGUMENT idForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED idForm did not originate from getIdFormForCreate()
CompliancemandatoryThis 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
CompliancemandatoryThis method must be implemented.
MethodaliasId
Description

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

Parametersosid.id.IdprimaryIdthe primary Id
osid.id.IdequivalentIdan Id to be made equivalent
ErrorsNOT_FOUND primaryId or equivalentId is not found
NULL_ARGUMENT primaryId or equivalentId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodremoveAlias
Description

Removes equivalence from two Ids.

Parametersosid.id.IdprimaryIdthe primary Id
osid.id.IdequivalentIdthe equivalent Id
ErrorsNOT_FOUND primaryId or equivalentId is not found or equivalentId not mapped to primaryId
NULL_ARGUMENT primaryId or equivalentId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.