Interface ObstacleEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply ObstacleEnablers to
Obstacles . An Obstacle with multiple
ObstacleEnablers means any positive rule evaluation across the enablers
result in an enabled Obstacle .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignObstacleEnablerToObstacle(Id obstacleEnablerId, Id obstacleId) Adds an existingObstacleEnablerto anObstacle.booleanTests if this user can alter obstacle enabler/obstacle mappings.booleanTests if this user can orderObstacleEnablers.getMap()Gets theMapassociated with this session.getMapId()Gets theMapIdassociated with this session.voidmoveObstacleEnablerAhead(Id obstacleEnablerId, Id obstacleId, Id referenceId) Reorders obstacle enablers for an obstacle by moving the specified obstacle enabler in front of a reference obstacle enabler.voidmoveObstacleEnablerBehind(Id obstacleEnablerId, Id obstacleId, Id referenceId) Reorders obstacle enablers for an obstacle by moving the specified obstacle enabler behind a reference obstacle enabler.voidorderObstacleEnablers(Id[] obstacleEnablerIds, Id obstacleId) Reorders a set of obstacle enablers for an obstacle.voidunassignObstacleEnablerFromObstacle(Id obstacleEnablerId, Id obstacleId) Removes anObstacleEnablerfrom anObstacle.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.
-
canAssignObstacleEnablers
boolean canAssignObstacleEnablers()Tests if this user can alter obstacle enabler/obstacle mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping methods in this session will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.- Returns:
falseif mapping is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
assignObstacleEnablerToObstacle
void assignObstacleEnablerToObstacle(Id obstacleEnablerId, Id obstacleId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingObstacleEnablerto anObstacle.- Parameters:
obstacleEnablerId- theIdof theObstacleEnablerobstacleId- theIdof theObstacle- Throws:
AlreadyExistsException-obstacleEnablerIdis already applied toobstacleIdNotFoundException-obstacleEnablerIdorobstacleIdnot foundNullArgumentException-obstacleEnablerIdorobstacleIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignObstacleEnablerFromObstacle
void unassignObstacleEnablerFromObstacle(Id obstacleEnablerId, Id obstacleId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes anObstacleEnablerfrom anObstacle.- Parameters:
obstacleEnablerId- theIdof theObstacleEnablerobstacleId- theIdof theObstacle- Throws:
NotFoundException-obstacleEnablerIdorobstacleIdnot found orobstacleEnablerIdnot applied toobstacleIdNullArgumentException-obstacleEnablerIdorobstacleIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceObstacleEnablers
boolean canSequenceObstacleEnablers()Tests if this user can orderObstacleEnablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known sequencing operations will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer sequencing operations to an unauthorized user.- Returns:
falseifObstacleEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveObstacleEnablerAhead
void moveObstacleEnablerAhead(Id obstacleEnablerId, Id obstacleId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders obstacle enablers for an obstacle by moving the specified obstacle enabler in front of a reference obstacle enabler.- Parameters:
obstacleEnablerId- theIdof anObstacleEnablerobstacleId- theIdof anObstaclereferenceId- the reference obstacle enablerId- Throws:
NotFoundException-obstacleEnablerId, obstacleId, orreferenceIdnot found or,obstacleEnablerIdorreferenceIdnot related toobstacleIdNullArgumentException-obstacleEnablerId, obstacleId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveObstacleEnablerBehind
void moveObstacleEnablerBehind(Id obstacleEnablerId, Id obstacleId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders obstacle enablers for an obstacle by moving the specified obstacle enabler behind a reference obstacle enabler.- Parameters:
obstacleEnablerId- theIdof anObstacleEnablerobstacleId- theIdof anObstaclereferenceId- the reference obstacle enablerId- Throws:
NotFoundException-obstacleEnablerId, obstacleId, orreferenceIdnot found or,obstacleEnablerIdorreferenceIdnot related toobstacleIdNullArgumentException-obstacleEnablerId, obstacleId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderObstacleEnablers
void orderObstacleEnablers(Id[] obstacleEnablerIds, Id obstacleId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of obstacle enablers for an obstacle.- Parameters:
obstacleEnablerIds- theIdsfor a set ofObstacleEnablersobstacleId- theIdof anObstacle- Throws:
NotFoundException-obstacleIdnot found or, anobstacleEnablerIdnot related toobstacleIdNullArgumentException-obstacleEnabelrIdsorobstacleIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-