OSID Logo
OSID Specifications
provisioning package
Version 3.0.0
Release Candidate Preview
Interfaceosid.provisioning.PoolAdminSession
Implementsosid.OsidSession
Description

This session creates, updates, and deletes Pools. The data for create and update is provided by the consumer via the form object. OsidForms are requested for each create or update and may not be reused.

Create and update operations differ in their usage. To create a Pool, a PoolForm is requested using getPoolFormForCreate() specifying the desired broker and record Types or none if no record Types are needed. The returned PoolForm will indicate that it is to be used with a create operation and can be used to examine metdata or validate data prior to creation. Once the PoolForm is submiited to a create operation, it cannot be reused with another create operation unless the first operation was unsuccessful. Each PoolForm corresponds to an attempted transaction.

For updates, PoolForms are requested to the Pool Id that is to be updated using getPoolFormForUpdate(). Similarly, the PoolForm has metadata about the data that can be updated and it can perform validation before submitting the update. The PoolForm can only be used once for a successful update and cannot be reused.

The delete operations delete Pools. To unmap a Pool from the current Distributor, the PoolDistributorAssignmentSession should be used. These delete operations attempt to remove the Pool itself thus removing it from all known Distributor catalogs.

This session includes an Id aliasing mechanism to assign an external Id to an internally assigned Id.

MethodgetDistributorId
Description

Gets the Distributor Id associated with this session.

Returnosid.id.Idthe Distributor Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetDistributor
Description

Gets the Distributor associated with this session.

Returnosid.provisioning.Distributorthe distributor
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanCreatePools
Description

Tests if this user can create Pools. A return of true does not guarantee successful authorization. A return of false indicates that it is known creating a Pool will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer create operations to an unauthorized user.

Returnboolean false if Pool creation is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodcanCreatePoolWithRecordTypes
Description

Tests if this user can create a single Pool using the desired record types. While ProvisioningManager.getPoolRecordTypes() can be used to examine which records are supported, this method tests which record(s) are required for creating a specific Pool. Providing an empty array tests if a Pool can be created with no records.

Parametersosid.type.Type[]poolRecordTypesarray of pool record types
Returnboolean true if Pool creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT poolRecordTypes is null
CompliancemandatoryThis method must be implemented.
MethodgetPoolFormForCreate
Description

Gets the pool form for creating new pools. A new form should be requested for each create transaction.

Parametersosid.id.IdbrokerIda broker Id
osid.type.Type[]poolRecordTypesarray of pool record types
Returnosid.provisioning.PoolFormthe pool form
ErrorsNOT_FOUND brokerId is not found
NULL_ARGUMENT brokerId or poolRecordTypes is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDunable to get form for requested record types
CompliancemandatoryThis method must be implemented.
MethodcreatePool
Description

Creates a new Pool.

Parametersosid.provisioning.PoolFormpoolFormthe form for this Pool
Returnosid.provisioning.Poolthe new Pool
ErrorsILLEGAL_STATE poolForm already used in a create transaction
INVALID_ARGUMENTone or more of the form elements is invalid
NULL_ARGUMENT poolForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED poolForm did not originate from getPoolFormForCreate()
CompliancemandatoryThis method must be implemented.
MethodcanUpdatePools
Description

Tests if this user can update Pools. A return of true does not guarantee successful authorization. A return of false indicates that it is known updating a Pool will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer update operations to an unauthorized user.

Returnboolean false if Pool modification is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetPoolFormForUpdate
Description

Gets the pool form for updating an existing pool. A new pool form should be requested for each update transaction.

Parametersosid.id.IdpoolIdthe Id of the Pool
Returnosid.provisioning.PoolFormthe pool form
ErrorsNOT_FOUND poolId is not found
NULL_ARGUMENT poolId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodupdatePool
Description

Updates an existing pool.

Parametersosid.provisioning.PoolFormpoolFormthe form containing the elements to be updated
ErrorsILLEGAL_STATE poolForm already used in an update transaction
INVALID_ARGUMENTthe form contains an invalid value
NULL_ARGUMENT poolForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED poolForm did not originate from getPoolFormForUpdate()
CompliancemandatoryThis method must be implemented.
MethodcanDeletePools
Description

Tests if this user can delete Pools. A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting a Pool will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer delete operations to an unauthorized user.

Returnboolean false if Pool deletion is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoddeletePool
Description

Deletes a Pool.

Parametersosid.id.IdpoolIdthe Id of the Pool to remove
ErrorsNOT_FOUND poolId not found
NULL_ARGUMENT poolId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanManagePoolAliases
Description

Tests if this user can manage Id aliases for Pools. A return of true does not guarantee successful authorization. A return of false indicates that it is known changing an alias will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer alias operations to an unauthorized user.

Returnboolean false if Pool aliasing is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodaliasPool
Description

Adds an Id to a Pool for the purpose of creating compatibility. The primary Id of the Pool is determined by the provider. The new Id performs as an alias to the primary Id. If the alias is a pointer to another pool, it is reassigned to the given pool Id.

Parametersosid.id.IdpoolIdthe Id of a Pool
osid.id.IdaliasIdthe alias Id
ErrorsALREADY_EXISTS aliasId is already assigned
NOT_FOUND poolId not found
NULL_ARGUMENT poolId or aliasId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.