OSID Logo
OSID Specifications
offering rules package
Version 3.1.0
Interfaceosid.offering.rules.CanonicalUnitProcessorAdminSession
Implementsosid.OsidSession
Used Byosid.offering.rules.OfferingRulesManager
osid.offering.rules.OfferingRulesProxyManager
Description

This session creates and removes canonical unit processors. The data for create and update is provided via the CanonicalUnitProcessorForm.

MethodgetCatalogueId
Description

Gets the Catalogue Id associated with this session.

Returnosid.id.Id the Catalogue Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetCatalogue
Description

Gets the Catalogue associated with this session.

Returnosid.offering.Catalogue the catalogue
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanCreateCanonicalUnitProcessor
Description

Tests if this user can create canonical unit processors. A return of true does not guarantee successful authorization. A return of false indicates that it is known creating a CanonicalUnitProcessor 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 CanonicalUnitProcessor creation is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodcanCreateCanonicalUnitProcessorWithRecordTypes
Description

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

Parametersosid.type.Type[]canonicalUnitProcessorRecordTypes array of canonical unit processor record types
Returnboolean true if CanonicalUnitProcessor creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT canonicalUnitProcessorRecordTypes is null
Compliancemandatory This method must be implemented.
MethodgetCanonicalUnitProcessorFormForCreate
Description

Gets the canonical unit processor form for creating new canonical unit processors. A new form should be requested for each create transaction.

Parametersosid.type.Type[]canonicalUnitProcessorRecordTypes array of canonical unit processor record types
Returnosid.offering.rules.CanonicalUnitProcessorForm the canonical unit processor form
ErrorsNULL_ARGUMENT canonicalUnitProcessorRecordTypes is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED unable to get form for requested record types
Compliancemandatory This method must be implemented.
MethodcreateCanonicalUnitProcessor
Description

Creates a new CanonicalUnitProcessor.

Parametersosid.offering.rules.CanonicalUnitProcessorFormcanonicalUnitProcessorForm the form for this CanonicalUnitProcessor
Returnosid.offering.rules.CanonicalUnitProcessor the new CanonicalUnitProcessor
ErrorsILLEGAL_STATE canonicalUnitProcessorForm already used in a create transaction
INVALID_ARGUMENT one or more of the form elements is invalid
NULL_ARGUMENT canonicalUnitProcessorForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED canonicalUnitProcessorForm did not originate from getCanonicalUnitProcessorFormForCreate()
Compliancemandatory This method must be implemented.
MethodcanUpdateCanonicalUnitProcessors
Description

Tests if this user can update canonical unit processors. A return of true does not guarantee successful authorization. A return of false indicates that it is known updating a CanonicalUnitProcessor 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 CanonicalUnitProcessor modification is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodgetCanonicalUnitProcessorFormForUpdate
Description

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

Parametersosid.id.IdcanonicalUnitProcessorId the Id of the CanonicalUnitProcessor
Returnosid.offering.rules.CanonicalUnitProcessorForm the canonical unit processor form
ErrorsNOT_FOUND canonicalUnitProcessorId is not found
NULL_ARGUMENT canonicalUnitProcessorId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodupdateCanonicalUnitProcessor
Description

Updates an existing canonical unit processor.

Parametersosid.offering.rules.CanonicalUnitProcessorFormcanonicalUnitProcessorForm the form containing the elements to be updated
ErrorsILLEGAL_STATE canonicalUnitProcessorForm already used in an update transaction
INVALID_ARGUMENT the form contains an invalid value
NULL_ARGUMENT canonicalUnitProcessorForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED canonicalUnitProcessorForm did not originate from getCanonicalUnitProcessorFormForUpdate()
Compliancemandatory This method must be implemented.
MethodcanDeleteCanonicalUnitProcessors
Description

Tests if this user can delete canonical unit processors. A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting a CanonicalUnitProcessor 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 CanonicalUnitProcessor deletion is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethoddeleteCanonicalUnitProcessor
Description

Deletes a CanonicalUnitProcessor.

Parametersosid.id.IdcanonicalUnitProcessorId the Id of the CanonicalUnitProcessor to remove
ErrorsNOT_FOUND canonicalUnitProcessorId not found
NULL_ARGUMENT canonicalUnitProcessorId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanManageCanonicalUnitProcessorAliases
Description

Tests if this user can manage Id aliases for canonical unit processors. 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 CanonicalUnitProcessor aliasing is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodaliasCanonicalUnitProcessor
Description

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

Parametersosid.id.IdcanonicalUnitProcessorId the Id of a CanonicalUnitProcessor
osid.id.IdaliasId the alias Id
ErrorsALREADY_EXISTS aliasId is already assigned
NOT_FOUND canonicalUnitProcessorId not found
NULL_ARGUMENT canonicalUnitProcessorId or aliasId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.