OSID Logo
OSID Specifications
mapping path rules package
Version 3.0.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.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.

Returnbooleanfalse 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
Returnbooleantrue if SignalEnabler creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENTsignalEnablerRecordTypes 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_ARGUMENTsignalEnablerRecordTypes 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_STATEsignalEnablerForm already used in a create transaction
INVALID_ARGUMENTone or more of the form elements is invalid
NULL_ARGUMENTsignalEnablerForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDsignalEnablerForm 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.

Returnbooleanfalse 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_FOUNDsignalEnablerId is not found
NULL_ARGUMENTsignalEnablerId 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_STATEsignalEnablerForm already used in an update transaction
INVALID_ARGUMENTthe form contains an invalid value
NULL_ARGUMENTsignalEnablerForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDsignalEnablerForm 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.

Returnbooleanfalse 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_FOUNDsignalEnablerId not found
NULL_ARGUMENTsignalEnablerId 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.

Returnbooleanfalse 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_EXISTSaliasId is already assigned
NOT_FOUNDsignalEnablerId not found
NULL_ARGUMENTsignalEnablerId or aliasId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.