OSID Logo
OSID Specifications
mapping path rules package
Version 3.1.0
Interfaceosid.mapping.path.rules.SignalEnablerAdminSession
Implementsosid.OsidSession
Used Byosid.mapping.path.rules.MappingPathRulesManager
osid.mapping.path.rules.MappingPathRulesProxyManager
Description

This session creates and removes signal enablers. The data for create and update is provided via the SignalEnablerForm.

MethodgetMapId
Description

Gets the Map Id associated with this session.

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

Gets the Map associated with this session.

Returnosid.mapping.Map the map
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanCreateSignalEnabler
Description

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

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

Parametersosid.type.Type[]signalEnablerRecordTypes array of signal enabler record types
Returnboolean true if SignalEnabler creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT signalEnablerRecordTypes is null
Compliancemandatory This method must be implemented.
MethodgetSignalEnablerFormForCreate
Description

Gets the signal enabler form for creating new signal enablers. A new form should be requested for each create transaction.

Parametersosid.type.Type[]signalEnablerRecordTypes array of signal enabler record types
Returnosid.mapping.path.rules.SignalEnablerForm the signal enabler form
ErrorsNULL_ARGUMENT signalEnablerRecordTypes 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.
MethodcreateSignalEnabler
Description

Creates a new SignalEnabler.

Parametersosid.mapping.path.rules.SignalEnablerFormsignalEnablerForm the form for this SignalEnabler
Returnosid.mapping.path.rules.SignalEnabler the new SignalEnabler
ErrorsILLEGAL_STATE signalEnablerForm already used in a create transaction
INVALID_ARGUMENT one or more of the form elements is invalid
NULL_ARGUMENT signalEnablerForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED signalEnablerForm did not originate from getSignalEnablerFormForCreate()
Compliancemandatory This method must be implemented.
MethodcanUpdateSignalEnablers
Description

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

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

Parametersosid.id.IdsignalEnablerId the Id of the SignalEnabler
Returnosid.mapping.path.rules.SignalEnablerForm the signal enabler form
ErrorsNOT_FOUND signalEnablerId is not found
NULL_ARGUMENT signalEnablerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodupdateSignalEnabler
Description

Updates an existing signal enabler.

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

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

Deletes a SignalEnabler.

Parametersosid.id.IdsignalEnablerId the Id of the SignalEnabler to remove
ErrorsNOT_FOUND signalEnablerId not found
NULL_ARGUMENT signalEnablerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanManageSignalEnablerAliases
Description

Tests if this user can manage Id aliases for signal enablers. 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 SignalEnabler aliasing is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodaliasSignalEnabler
Description

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

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