OSID Logo
OSID Specifications
mapping path rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.mapping.path.rules.SpeedZoneEnablerAdminSession
Implementsosid.OsidSession
Description

This session creates and removes speed zone enablers. The data for create and update is provided via the SpeedZoneEnablerForm.

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.
MethodcanCreateSpeedZoneEnabler
Description

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

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

Parametersosid.type.Type[]speedZoneEnablerRecordTypesarray of speed zone enabler record types
Returnboolean true if SpeedZoneEnabler creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT speedZoneEnablerRecordTypes is null
CompliancemandatoryThis method must be implemented.
MethodgetSpeedZoneEnablerFormForCreate
Description

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

Parametersosid.type.Type[]speedZoneEnablerRecordTypesarray of speed zone enabler record types
Returnosid.mapping.path.rules.SpeedZoneEnablerFormthe speed zone enabler form
ErrorsNULL_ARGUMENT speedZoneEnablerRecordTypes is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDunable to get form for requested record types
CompliancemandatoryThis method must be implemented.
MethodcreateSpeedZoneEnabler
Description

Creates a new SpeedZoneEnabler.

Parametersosid.mapping.path.rules.SpeedZoneEnablerFormspeedZoneEnablerFormthe form for this SpeedZoneEnabler
Returnosid.mapping.path.rules.SpeedZoneEnablerthe new SpeedZoneEnabler
ErrorsILLEGAL_STATE speedZoneEnablerForm already used in a create transaction
INVALID_ARGUMENTone or more of the form elements is invalid
NULL_ARGUMENT speedZoneEnablerForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED speedZoneEnablerForm did not originate from getSpeedZoneEnablerFormForCreate()
CompliancemandatoryThis method must be implemented.
MethodcanUpdateSpeedZoneEnablers
Description

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

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

Parametersosid.id.IdspeedZoneEnablerIdthe Id of the SpeedZoneEnabler
Returnosid.mapping.path.rules.SpeedZoneEnablerFormthe speed zone enabler form
ErrorsNOT_FOUND speedZoneEnablerId is not found
NULL_ARGUMENT speedZoneEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodupdateSpeedZoneEnabler
Description

Updates an existing speed zone enabler.

Parametersosid.mapping.path.rules.SpeedZoneEnablerFormspeedZoneEnablerFormthe form containing the elements to be updated
ErrorsILLEGAL_STATE speedZoneEnablerForm already used in an update transaction
INVALID_ARGUMENTthe form contains an invalid value
NULL_ARGUMENT speedZoneEnablerForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED speedZoneEnablerForm did not originate from getSpeedZoneEnablerFormForUpdate()
CompliancemandatoryThis method must be implemented.
MethodcanDeleteSpeedZoneEnablers
Description

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

Deletes a SpeedZoneEnabler.

Parametersosid.id.IdspeedZoneEnablerIdthe Id of the SpeedZoneEnabler to remove
ErrorsNOT_FOUND speedZoneEnablerId not found
NULL_ARGUMENT speedZoneEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanManageSpeedZoneEnablerAliases
Description

Tests if this user can manage Id aliases for speed zone 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 SpeedZoneEnabler aliasing is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodaliasSpeedZoneEnabler
Description

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

Parametersosid.id.IdspeedZoneEnablerIdthe Id of a SpeedZoneEnabler
osid.id.IdaliasIdthe alias Id
ErrorsALREADY_EXISTS aliasId is already assigned
NOT_FOUND speedZoneEnablerId not found
NULL_ARGUMENT speedZoneEnablerId or aliasId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.