OSID Logo
OSID Specifications
configuration rules package
Version 3.1.0
Interfaceosid.configuration.rules.ParameterProcessorAdminSession
Implementsosid.OsidSession
Used Byosid.configuration.rules.ConfigurationRulesManager
osid.configuration.rules.ConfigurationRulesProxyManager
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.Id the Configuration Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetConfiguration
Description

Gets the Configuration associated with this session.

Returnosid.configuration.Configuration the configuration
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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
Compliancemandatory This 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[]parameterProcessorRecordTypes array of parameter processor record types
Returnboolean true if ParameterProcessor creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT parameterProcessorRecordTypes is null
Compliancemandatory This 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[]parameterProcessorRecordTypes array of parameter processor record types
Returnosid.configuration.rules.ParameterProcessorForm the parameter processor form
ErrorsNULL_ARGUMENT parameterProcessorRecordTypes 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.
MethodcreateParameterProcessor
Description

Creates a new ParameterProcessor.

Parametersosid.configuration.rules.ParameterProcessorFormparameterProcessorForm the form for this ParameterProcessor
Returnosid.configuration.rules.ParameterProcessor the new ParameterProcessor
ErrorsILLEGAL_STATE parameterProcessorForm already used in a create transaction
INVALID_ARGUMENT one or more of the form elements is invalid
NULL_ARGUMENT parameterProcessorForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED parameterProcessorForm did not originate from getParameterProcessorFormForCreate()
Compliancemandatory This 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
Compliancemandatory This 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.IdparameterProcessorId the Id of the ParameterProcessor
Returnosid.configuration.rules.ParameterProcessorForm the parameter processor form
ErrorsNOT_FOUND parameterProcessorId is not found
NULL_ARGUMENT parameterProcessorId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodupdateParameterProcessor
Description

Updates an existing parameter processor.

Parametersosid.configuration.rules.ParameterProcessorFormparameterProcessorForm the form containing the elements to be updated
ErrorsILLEGAL_STATE parameterProcessorForm already used in an update transaction
INVALID_ARGUMENT the form contains an invalid value
NULL_ARGUMENT parameterProcessorForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED parameterProcessorForm did not originate from getParameterProcessorFormForUpdate()
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethoddeleteParameterProcessor
Description

Deletes a ParameterProcessor.

Parametersosid.id.IdparameterProcessorId the Id of the ParameterProcessor to remove
ErrorsNOT_FOUND parameterProcessorId not found
NULL_ARGUMENT parameterProcessorId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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
Compliancemandatory This 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.IdparameterProcessorId the Id of a ParameterProcessor
osid.id.IdaliasId the alias Id
ErrorsALREADY_EXISTS aliasId is already assigned
NOT_FOUND parameterProcessorId not found
NULL_ARGUMENT parameterProcessorId or aliasId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.