OSID Logo
OSID Specifications
control rules package
Version 3.1.0
Interfaceosid.control.rules.InputEnablerRuleApplicationSession
Implementsosid.OsidSession
Used Byosid.control.rules.ControlRulesManager
osid.control.rules.ControlRulesProxyManager
Description

This session provides methods to apply InputEnablers to Inputs. An Input with multiple InputEnablers means any positive rule evaluation across the enablers result in an effective Input.

MethodgetSystemId
Description

Gets the System Id associated with this session.

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

Gets the System associated with this session.

Returnosid.control.System the system
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanAssignInputEnablers
Description

Tests if this user can alter input enabler/input mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.

Returnboolean false if mapping is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodassignInputEnablerToInput
Description

Adds an existing InputEnabler to an Input.

Parametersosid.id.IdinputEnablerId the Id of the InputEnabler
osid.id.IdinputId the Id of the Input
ErrorsALREADY_EXISTS inputEnablerId already applied to inputId
NOT_FOUND inputEnablerId or inputId not found
NULL_ARGUMENT inputEnablerId or inputId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodunassignInputEnablerFromInput
Description

Removes an InputEnabler from an Input.

Parametersosid.id.IdinputEnablerId the Id of the InputEnabler
osid.id.IdinputId the Id of the Input
ErrorsNOT_FOUND inputEnablerId or inputId not found or not mapped
NULL_ARGUMENT inputEnablerId or inputId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanSequenceInputEnablers
Description

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

Returnboolean false if InputEnabler ordering is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodmoveInputEnablerAhead
Description

Reorders input enablers for an input by moving the specified input enabler in front of a reference input enabler.

Parametersosid.id.IdinputEnablerId the Id of an InputEnabler
osid.id.IdinputId the Id of an Input
osid.id.IdreferenceId the reference input Id
ErrorsNOT_FOUND inputEnablerId, deviceProcesorId, or referenceId not found or, inputEnablerId or referenceId not related to inputId
NULL_ARGUMENT inputEnablerId, inputId, or referenceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodmoveInputEnablerBehind
Description

Reorders input enablers for an input by moving the specified input enabler behind a reference input enabler.

Parametersosid.id.IdinputEnablerId the Id of an InputEnabler
osid.id.IdinputId the Id of an Input
osid.id.IdreferenceId the reference input Id
ErrorsNOT_FOUND inputEnablerId, deviceProcesorId, or referenceId not found or, inputEnablerId or referenceId not related to inputId
NULL_ARGUMENT inputEnablerId, inputId, or referenceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodorderInputEnablers
Description

Reorders a set of input enablers for an input.

Parametersosid.id.Id[]inputEnablerIds the Ids for a set of InputEnablers
osid.id.IdinputId the Id of an Input
ErrorsNOT_FOUND inputId not found or, an inputEnablerId not related to inputId
NULL_ARGUMENT inputEnablerIds or inputId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.