Interface EdgeEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply EdgeEnablers to
Edges . An Edge with multiple EdgeEnablers means any
positive rule evaluation across the enablers result in an effective
Edge .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignEdgeEnablerToEdge(Id edgeEnablerId, Id edgeId) Adds an existingEdgeEnablerto anEdge.booleanTests if this user can alter edge enabler/edge mappings.booleanTests if this user can orderEdgeEnablers.getGraph()Gets theGraphassociated with this session.Gets theGraphIdassociated with this session.voidmoveEdgeEnablerAhead(Id edgeEnablerId, Id edgeId, Id referenceId) Reorders edge enablers for an edge by moving the specified edge enabler in front of a reference edge enabler.voidmoveEdgeEnablerBehind(Id edgeEnablerId, Id edgeId, Id referenceId) Reorders edge enablers for an edge by moving the specified edge enabler behind a reference edge enabler.voidorderEdgeEnablers(Id[] edgeEnablerIds, Id edgeId) Reorders a set of edge enablers for an edge.voidunassignEdgeEnablerFromEdge(Id edgeEnablerId, Id edgeId) Removes anEdgeEnablerfrom anEdge.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
-
getGraphId
Id getGraphId()Gets theGraphIdassociated with this session.- Returns:
- the
Graph Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getGraph
Gets theGraphassociated with this session.- Returns:
- the graph
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canAssignEdgeEnablers
boolean canAssignEdgeEnablers()Tests if this user can alter edge enabler/edge 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.
-
assignEdgeEnablerToEdge
void assignEdgeEnablerToEdge(Id edgeEnablerId, Id edgeId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingEdgeEnablerto anEdge.- Parameters:
edgeEnablerId- theIdof theEdgeEnableredgeId- theIdof theEdge- Throws:
AlreadyExistsException-edgeEnablerIdis already applied toedgeIdNotFoundException-edgeEnablerIdoredgeIdnot foundNullArgumentException-edgeEnablerIdoredgeIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignEdgeEnablerFromEdge
void unassignEdgeEnablerFromEdge(Id edgeEnablerId, Id edgeId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes anEdgeEnablerfrom anEdge.- Parameters:
edgeEnablerId- theIdof theEdgeEnableredgeId- theIdof theEdge- Throws:
NotFoundException-edgeEnablerIdoredgeIdnot found oredgeEnablerIdis not applied toedgeIdNullArgumentException-edgeEnablerIdoredgeIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceEdgeEnablers
boolean canSequenceEdgeEnablers()Tests if this user can orderEdgeEnablers. 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:
falseifEdgeEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveEdgeEnablerAhead
void moveEdgeEnablerAhead(Id edgeEnablerId, Id edgeId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders edge enablers for an edge by moving the specified edge enabler in front of a reference edge enabler.- Parameters:
edgeEnablerId- theIdof anEdgeEnableredgeId- theIdof anEdgereferenceId- the reference edge enablerId- Throws:
NotFoundException-edgeEnablerId, edgeId, orreferenceIdnot found or,edgeEnablerIdorreferenceIdnot related toedgeIdNullArgumentException-edgeEnablerId, edgeId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveEdgeEnablerBehind
void moveEdgeEnablerBehind(Id edgeEnablerId, Id edgeId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders edge enablers for an edge by moving the specified edge enabler behind a reference edge enabler.- Parameters:
edgeEnablerId- theIdof anEdgeEnableredgeId- theIdof anEdgereferenceId- the reference edge enablerId- Throws:
NotFoundException-edgeEnablerId, edgeId, orreferenceIdnot found or,edgeEnablerIdorreferenceIdnot related toedgeIdNullArgumentException-edgeEnablerId, edgeId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderEdgeEnablers
void orderEdgeEnablers(Id[] edgeEnablerIds, Id edgeId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of edge enablers for an edge.- Parameters:
edgeEnablerIds- theIdsfor a set ofEdgeEnablersedgeId- theIdof anEdge- Throws:
NotFoundException-edgeIdnot found or, anedgeEnablerIdnot related toedgeIdNullArgumentException-edgeEnablerIdsoredgeIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-