OSID Logo
OSID Specifications
configuration rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.configuration.rules.ParameterProcessorAdminSession
Implementsosid.OsidSession
Description

This session creates and removes parameter processors. The data for create and update is provided via the ParameterProcessorForm.

MethodgetConfigurationId
Description

Gets the Configuration Id associated with this session.

Returnosid.id.Idthe Configuration Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetConfiguration
Description

Gets the Configuration associated with this session.

Returnosid.configuration.Configurationthe configuration
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanCreateParameterProcessor
Description

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

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

Parametersosid.type.Type[]parameterProcessorRecordTypesarray of parameter processor record types
Returnboolean true if ParameterProcessor creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT parameterProcessorRecordTypes is null
CompliancemandatoryThis method must be implemented.
MethodgetParameterProcessorFormForCreate
Description

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

Parametersosid.type.Type[]parameterProcessorRecordTypesarray of parameter processor record types
Returnosid.configuration.rules.ParameterProcessorFormthe parameter processor form
ErrorsNULL_ARGUMENT parameterProcessorRecordTypes is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDunable to get form for requested record types
CompliancemandatoryThis method must be implemented.
MethodcreateParameterProcessor
Description

Creates a new ParameterProcessor.

Parametersosid.configuration.rules.ParameterProcessorFormparameterProcessorFormthe form for this ParameterProcessor
Returnosid.configuration.rules.ParameterProcessorthe new ParameterProcessor
ErrorsILLEGAL_STATE parameterProcessorForm already used in a create transaction
INVALID_ARGUMENTone or more of the form elements is invalid
NULL_ARGUMENT parameterProcessorForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED parameterProcessorForm did not originate from getParameterProcessorFormForCreate()
CompliancemandatoryThis method must be implemented.
MethodcanUpdateParameterProcessors
Description

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

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

Parametersosid.id.IdparameterProcessorIdthe Id of the ParameterProcessor
Returnosid.configuration.rules.ParameterProcessorFormthe parameter processor form
ErrorsNOT_FOUND parameterProcessorId is not found
NULL_ARGUMENT parameterProcessorId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodupdateParameterProcessor
Description

Updates an existing parameter processor.

Parametersosid.configuration.rules.ParameterProcessorFormparameterProcessorFormthe form containing the elements to be updated
ErrorsILLEGAL_STATE parameterProcessorForm already used in an update transaction
INVALID_ARGUMENTthe form contains an invalid value
NULL_ARGUMENT parameterProcessorForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED parameterProcessorForm did not originate from getParameterProcessorFormForUpdate()
CompliancemandatoryThis method must be implemented.
MethodcanDeleteParameterProcessors
Description

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

Deletes a ParameterProcessor.

Parametersosid.id.IdparameterProcessorIdthe Id of the ParameterProcessor to remove
ErrorsNOT_FOUND parameterProcessorId not found
NULL_ARGUMENT parameterProcessorId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanManageParameterProcessorAliases
Description

Tests if this user can manage Id aliases for parameter 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 ParameterProcessor aliasing is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodaliasParameterProcessor
Description

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

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