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

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

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

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

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

Parametersosid.type.Type[]obstacleEnablerRecordTypesarray of obstacle enabler record types
Returnboolean true if ObstacleEnabler creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT obstacleEnablerRecordTypes is null
CompliancemandatoryThis method must be implemented.
MethodgetObstacleEnablerFormForCreate
Description

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

Parametersosid.type.Type[]obstacleEnablerRecordTypesarray of obstacle enabler record types
Returnosid.mapping.path.rules.ObstacleEnablerFormthe obstacle enabler form
ErrorsNULL_ARGUMENT obstacleEnablerRecordTypes is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDunable to get form for requested record types
CompliancemandatoryThis method must be implemented.
MethodcreateObstacleEnabler
Description

Creates a new ObstacleEnabler.

Parametersosid.mapping.path.rules.ObstacleEnablerFormobstacleEnablerFormthe form for this ObstacleEnabler
Returnosid.mapping.path.rules.ObstacleEnablerthe new ObstacleEnabler
ErrorsILLEGAL_STATE obstacleEnablerForm already used in a create transaction
INVALID_ARGUMENTone or more of the form elements is invalid
NULL_ARGUMENT obstacleEnablerForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED obstacleEnablerForm did not originate from getObstacleEnablerFormForCreate()
CompliancemandatoryThis method must be implemented.
MethodcanUpdateObstacleEnablers
Description

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

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

Parametersosid.id.IdobstacleEnablerIdthe Id of the ObstacleEnabler
Returnosid.mapping.path.rules.ObstacleEnablerFormthe obstacle enabler form
ErrorsNOT_FOUND obstacleEnablerId is not found
NULL_ARGUMENT obstacleEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodupdateObstacleEnabler
Description

Updates an existing obstacle enabler.

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

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

Deletes an ObstacleEnabler.

Parametersosid.id.IdobstacleEnablerIdthe Id of the ObstacleEnabler to remove
ErrorsNOT_FOUND obstacleEnablerId not found
NULL_ARGUMENT obstacleEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanManageObstacleEnablerAliases
Description

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

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

Parametersosid.id.IdobstacleEnablerIdthe Id of an ObstacleEnabler
osid.id.IdaliasIdthe alias Id
ErrorsALREADY_EXISTS aliasId is already assigned
NOT_FOUND obstacleEnablerId not found
NULL_ARGUMENT obstacleEnablerId or aliasId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.