OSID Logo
OSID Specifications
mapping path rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.mapping.path.rules.SignalEnablerAdminSession
Implementsosid.OsidSession
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.Idthe Map Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetMap
Description

Gets the Map associated with this session.

Returnosid.mapping.Mapthe map
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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
CompliancemandatoryThis 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[]signalEnablerRecordTypesarray of signal enabler record types
Returnboolean true if SignalEnabler creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT signalEnablerRecordTypes is null
CompliancemandatoryThis 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[]signalEnablerRecordTypesarray of signal enabler record types
Returnosid.mapping.path.rules.SignalEnablerFormthe signal enabler form
ErrorsNULL_ARGUMENT signalEnablerRecordTypes is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDunable to get form for requested record types
CompliancemandatoryThis method must be implemented.
MethodcreateSignalEnabler
Description

Creates a new SignalEnabler.

Parametersosid.mapping.path.rules.SignalEnablerFormsignalEnablerFormthe form for this SignalEnabler
Returnosid.mapping.path.rules.SignalEnablerthe new SignalEnabler
ErrorsILLEGAL_STATE signalEnablerForm already used in a create transaction
INVALID_ARGUMENTone or more of the form elements is invalid
NULL_ARGUMENT signalEnablerForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED signalEnablerForm did not originate from getSignalEnablerFormForCreate()
CompliancemandatoryThis 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
CompliancemandatoryThis 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.IdsignalEnablerIdthe Id of the SignalEnabler
Returnosid.mapping.path.rules.SignalEnablerFormthe signal enabler form
ErrorsNOT_FOUND signalEnablerId is not found
NULL_ARGUMENT signalEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodupdateSignalEnabler
Description

Updates an existing signal enabler.

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

Deletes a SignalEnabler.

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