OSID Logo
OSID Specifications
mapping path rules package
Version 3.1.0
Interfaceosid.mapping.path.rules.ObstacleEnablerAdminSession
Implementsosid.OsidSession
Used Byosid.mapping.path.rules.MappingPathRulesManager
osid.mapping.path.rules.MappingPathRulesProxyManager
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.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.
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
Compliancemandatory This 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[]obstacleEnablerRecordTypes array of obstacle enabler record types
Returnboolean true if ObstacleEnabler creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT obstacleEnablerRecordTypes is null
Compliancemandatory This 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[]obstacleEnablerRecordTypes array of obstacle enabler record types
Returnosid.mapping.path.rules.ObstacleEnablerForm the obstacle enabler form
ErrorsNULL_ARGUMENT obstacleEnablerRecordTypes 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.
MethodcreateObstacleEnabler
Description

Creates a new ObstacleEnabler.

Parametersosid.mapping.path.rules.ObstacleEnablerFormobstacleEnablerForm the form for this ObstacleEnabler
Returnosid.mapping.path.rules.ObstacleEnabler the new ObstacleEnabler
ErrorsILLEGAL_STATE obstacleEnablerForm already used in a create transaction
INVALID_ARGUMENT one or more of the form elements is invalid
NULL_ARGUMENT obstacleEnablerForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED obstacleEnablerForm did not originate from getObstacleEnablerFormForCreate()
Compliancemandatory This 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
Compliancemandatory This 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.IdobstacleEnablerId the Id of the ObstacleEnabler
Returnosid.mapping.path.rules.ObstacleEnablerForm the obstacle enabler form
ErrorsNOT_FOUND obstacleEnablerId is not found
NULL_ARGUMENT obstacleEnablerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodupdateObstacleEnabler
Description

Updates an existing obstacle enabler.

Parametersosid.mapping.path.rules.ObstacleEnablerFormobstacleEnablerForm the form containing the elements to be updated
ErrorsILLEGAL_STATE obstacleEnablerForm already used in an update transaction
INVALID_ARGUMENT the form contains an invalid value
NULL_ARGUMENT obstacleEnablerForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED obstacleEnablerForm did not originate from getObstacleEnablerFormForUpdate()
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethoddeleteObstacleEnabler
Description

Deletes an ObstacleEnabler.

Parametersosid.id.IdobstacleEnablerId the Id of the ObstacleEnabler to remove
ErrorsNOT_FOUND obstacleEnablerId not found
NULL_ARGUMENT obstacleEnablerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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
Compliancemandatory This 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.IdobstacleEnablerId the Id of an ObstacleEnabler
osid.id.IdaliasId the alias Id
ErrorsALREADY_EXISTS aliasId is already assigned
NOT_FOUND obstacleEnablerId not found
NULL_ARGUMENT obstacleEnablerId or aliasId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.