OSID Logo
OSID Specifications
offering rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.offering.rules.CanonicalUnitProcessorAdminSession
Implementsosid.OsidSession
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.Idthe Catalogue Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetCatalogue
Description

Gets the Catalogue associated with this session.

Returnosid.offering.Cataloguethe catalogue
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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
CompliancemandatoryThis 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[]canonicalUnitProcessorRecordTypesarray 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
CompliancemandatoryThis 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[]canonicalUnitProcessorRecordTypesarray of canonical unit processor record types
Returnosid.offering.rules.CanonicalUnitProcessorFormthe canonical unit processor form
ErrorsNULL_ARGUMENT canonicalUnitProcessorRecordTypes is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDunable to get form for requested record types
CompliancemandatoryThis method must be implemented.
MethodcreateCanonicalUnitProcessor
Description

Creates a new CanonicalUnitProcessor.

Parametersosid.offering.rules.CanonicalUnitProcessorFormcanonicalUnitProcessorFormthe form for this CanonicalUnitProcessor
Returnosid.offering.rules.CanonicalUnitProcessorthe new CanonicalUnitProcessor
ErrorsILLEGAL_STATE canonicalUnitProcessorForm already used in a create transaction
INVALID_ARGUMENTone or more of the form elements is invalid
NULL_ARGUMENT canonicalUnitProcessorForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED canonicalUnitProcessorForm did not originate from getCanonicalUnitProcessorFormForCreate()
CompliancemandatoryThis 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
CompliancemandatoryThis 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.IdcanonicalUnitProcessorIdthe Id of the CanonicalUnitProcessor
Returnosid.offering.rules.CanonicalUnitProcessorFormthe canonical unit processor form
ErrorsNOT_FOUND canonicalUnitProcessorId is not found
NULL_ARGUMENT canonicalUnitProcessorId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodupdateCanonicalUnitProcessor
Description

Updates an existing canonical unit processor.

Parametersosid.offering.rules.CanonicalUnitProcessorFormcanonicalUnitProcessorFormthe form containing the elements to be updated
ErrorsILLEGAL_STATE canonicalUnitProcessorForm already used in an update transaction
INVALID_ARGUMENTthe form contains an invalid value
NULL_ARGUMENT canonicalUnitProcessorForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED canonicalUnitProcessorForm did not originate from getCanonicalUnitProcessorFormForUpdate()
CompliancemandatoryThis 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
CompliancemandatoryThis method must be implemented.
MethoddeleteCanonicalUnitProcessor
Description

Deletes a CanonicalUnitProcessor.

Parametersosid.id.IdcanonicalUnitProcessorIdthe Id of the CanonicalUnitProcessor to remove
ErrorsNOT_FOUND canonicalUnitProcessorId not found
NULL_ARGUMENT canonicalUnitProcessorId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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
CompliancemandatoryThis 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.IdcanonicalUnitProcessorIdthe Id of a CanonicalUnitProcessor
osid.id.IdaliasIdthe alias Id
ErrorsALREADY_EXISTS aliasId is already assigned
NOT_FOUND canonicalUnitProcessorId not found
NULL_ARGUMENT canonicalUnitProcessorId or aliasId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.