Interface ObstacleEnablerAdminSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session creates and removes obstacle enablers. The data for create
and update is provided via the ObstacleEnablerForm .
-
Method Summary
Modifier and TypeMethodDescriptionvoidaliasObstacleEnabler(Id obstacleEnablerId, Id aliasId) Adds anIdto anObstacleEnablerfor the purpose of creating compatibility.booleanTests if this user can create obstacle enablers.booleancanCreateObstacleEnablerWithRecordTypes(Type[] obstacleEnablerRecordTypes) Tests if this user can create a singleObstacleEnablerusing the desired record types.booleanTests if this user can delete obstacle enablers.booleanTests if this user can manageIdaliases for obstacle enablers.booleanTests if this user can update obstacle enablers.createObstacleEnabler(ObstacleEnablerForm obstacleEnablerForm) Creates a newObstacleEnabler.voiddeleteObstacleEnabler(Id obstacleEnablerId) Deletes anObstacleEnabler.getMap()Gets theMapassociated with this session.getMapId()Gets theMapIdassociated with this session.getObstacleEnablerFormForCreate(Type[] obstacleEnablerRecordTypes) Gets the obstacle enabler form for creating new obstacle enablers.getObstacleEnablerFormForUpdate(Id obstacleEnablerId) Gets the obstacle enabler form for updating an existing obstacle enabler.voidupdateObstacleEnabler(ObstacleEnablerForm obstacleEnablerForm) Updates an existing obstacle enabler.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.
-
Method Details
-
getMapId
Id getMapId()Gets theMapIdassociated with this session.- Returns:
- the
Map Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getMap
Gets theMapassociated with this session.- Returns:
- the map
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canCreateObstacleEnabler
boolean canCreateObstacleEnabler()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 anObstacleEnablerwill result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer create operations to an unauthorized user.- Returns:
falseifObstacleEnablercreation is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
canCreateObstacleEnablerWithRecordTypes
Tests if this user can create a singleObstacleEnablerusing the desired record types. WhileMappingPathRulesManager.getObstacleEnablerRecordTypes()can be used to examine which records are supported, this method tests which record(s) are required for creating a specificObstacleEnabler. Providing an empty array tests if anObstacleEnablercan be created with no records.- Parameters:
obstacleEnablerRecordTypes- array of obstacle enabler record types- Returns:
trueifObstacleEnablercreation using the specified recordTypesis supported,falseotherwise- Throws:
NullArgumentException-obstacleEnablerRecordTypesisnull- Compliance:
mandatory- This method must be implemented.
-
getObstacleEnablerFormForCreate
ObstacleEnablerForm getObstacleEnablerFormForCreate(Type[] obstacleEnablerRecordTypes) throws OperationFailedException, PermissionDeniedException Gets the obstacle enabler form for creating new obstacle enablers. A new form should be requested for each create transaction.- Parameters:
obstacleEnablerRecordTypes- array of obstacle enabler record types- Returns:
- the obstacle enabler form
- Throws:
NullArgumentException-obstacleEnablerRecordTypesisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException- unable to get form for requested record types- Compliance:
mandatory- This method must be implemented.
-
createObstacleEnabler
ObstacleEnabler createObstacleEnabler(ObstacleEnablerForm obstacleEnablerForm) throws OperationFailedException, PermissionDeniedException Creates a newObstacleEnabler.- Parameters:
obstacleEnablerForm- the form for thisObstacleEnabler- Returns:
- the new
ObstacleEnabler - Throws:
IllegalStateException-obstacleEnablerFormalready used in a create transactionInvalidArgumentException- one or more of the form elements is invalidNullArgumentException-obstacleEnablerFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-obstacleEnablerFormdid not originate fromgetObstacleEnablerFormForCreate()- Compliance:
mandatory- This method must be implemented.
-
canUpdateObstacleEnablers
boolean canUpdateObstacleEnablers()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 anObstacleEnablerwill result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer update operations to an unauthorized user.- Returns:
falseifObstacleEnablermodification is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
getObstacleEnablerFormForUpdate
ObstacleEnablerForm getObstacleEnablerFormForUpdate(Id obstacleEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets the obstacle enabler form for updating an existing obstacle enabler. A new obstacle enabler form should be requested for each update transaction.- Parameters:
obstacleEnablerId- theIdof theObstacleEnabler- Returns:
- the obstacle enabler form
- Throws:
NotFoundException-obstacleEnablerIdis not foundNullArgumentException-obstacleEnablerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
updateObstacleEnabler
void updateObstacleEnabler(ObstacleEnablerForm obstacleEnablerForm) throws OperationFailedException, PermissionDeniedException Updates an existing obstacle enabler.- Parameters:
obstacleEnablerForm- the form containing the elements to be updated- Throws:
IllegalStateException-obstacleEnablerFormalready used in an update transactionInvalidArgumentException- the form contains an invalid valueNullArgumentException-obstacleEnablerFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-obstacleEnablerFormdid not originate fromgetObstacleEnablerFormForUpdate()- Compliance:
mandatory- This method must be implemented.
-
canDeleteObstacleEnablers
boolean canDeleteObstacleEnablers()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 anObstacleEnablerwill result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer delete operations to an unauthorized user.- Returns:
falseifObstacleEnablerdeletion is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
deleteObstacleEnabler
void deleteObstacleEnabler(Id obstacleEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Deletes anObstacleEnabler.- Parameters:
obstacleEnablerId- theIdof theObstacleEnablerto remove- Throws:
NotFoundException-obstacleEnablerIdnot foundNullArgumentException-obstacleEnablerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canManageObstacleEnablerAliases
boolean canManageObstacleEnablerAliases()Tests if this user can manageIdaliases 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 aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer alias operations to an unauthorized user.- Returns:
falseifObstacleEnableraliasing is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
aliasObstacleEnabler
void aliasObstacleEnabler(Id obstacleEnablerId, Id aliasId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds anIdto anObstacleEnablerfor the purpose of creating compatibility. The primaryIdof theObstacleEnableris determined by the provider. The newIdperforms as an alias to the primaryId. If the alias is a pointer to another obstacle enabler. it is reassigned to the given obstacle enablerId.- Parameters:
obstacleEnablerId- theIdof anObstacleEnableraliasId- the aliasId- Throws:
AlreadyExistsException-aliasIdis already assignedNotFoundException-obstacleEnablerIdnot foundNullArgumentException-obstacleEnablerIdoraliasIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-