Interface RelationshipEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply RelationshipEnablers to
Relationships . A Relationship with multiple
RelationshipEnablers means any positive rule evaluation across the
enablers result in an effective Relationship .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignRelationshipEnablerToRelationship(Id relationshipEnablerId, Id relationshipId) Adds an existingRelationshipEnablerto aRelationship.booleanTests if this user can alter relationship enabler/relationship mappings.booleanTests if this user can orderRelationshipEnablers.Gets theFamilyassociated with this session.Gets theFamilyIdassociated with this session.voidmoveRelationshipEnablerAhead(Id relationshipEnablerId, Id relationshipId, Id referenceId) Reorders relationship enablers for a relationship by moving the specified relationship enabler in front of a reference relationship enabler.voidmoveRelationshipEnablerBehind(Id relationshipEnablerId, Id relationshipId, Id referenceId) Reorders relationship enablers for a relationship by moving the specified relationship enabler behind a reference relationship enabler.voidorderRelationshipEnablers(Id[] relationshipEnablerIds, Id relationshipId) Reorders a set of relationship enablers for a relationship.voidunassignRelationshipEnablerFromRelationship(Id relationshipEnablerId, Id relationshipId) Removes aRelationshipEnablerfrom aRelationship.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
-
getFamilyId
Id getFamilyId()Gets theFamilyIdassociated with this session.- Returns:
- the
Family Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getFamily
Gets theFamilyassociated with this session.- Returns:
- the family
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canAssignRelationshipEnablers
boolean canAssignRelationshipEnablers()Tests if this user can alter relationship enabler/relationship 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.
-
assignRelationshipEnablerToRelationship
void assignRelationshipEnablerToRelationship(Id relationshipEnablerId, Id relationshipId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingRelationshipEnablerto aRelationship.- Parameters:
relationshipEnablerId- theIdof theRelationshipEnablerrelationshipId- theIdof theRelationship- Throws:
AlreadyExistsException-relationshipEnablerIdis already applied torelationshipIdNotFoundException-relationshipEnablerIdorrelationshipIdnot foundNullArgumentException-relationshipEnablerIdorrelationshipIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignRelationshipEnablerFromRelationship
void unassignRelationshipEnablerFromRelationship(Id relationshipEnablerId, Id relationshipId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aRelationshipEnablerfrom aRelationship.- Parameters:
relationshipEnablerId- theIdof theRelationshipEnablerrelationshipId- theIdof theRelationship- Throws:
NotFoundException-relationshipEnablerIdorrelationshipIdnot found orrelationshipEnablerIdnot applied torelationshipIdNullArgumentException-relationshipEnablerIdorrelationshipIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceRelationshipEnablers
boolean canSequenceRelationshipEnablers()Tests if this user can orderRelationshipEnablers. 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:
falseifRelationshipEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveRelationshipEnablerAhead
void moveRelationshipEnablerAhead(Id relationshipEnablerId, Id relationshipId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders relationship enablers for a relationship by moving the specified relationship enabler in front of a reference relationship enabler.- Parameters:
relationshipEnablerId- theIdof aRelationshipnEnablerrelationshipId- theIdof aRelationshipreferenceId- the reference relationship enablerId- Throws:
NotFoundException-relationshipEnablerId, relationshipId, orreferenceIdnot found or,relationshipnEnablerIdorreferenceIdnot related torelationshipIdNullArgumentException-relationshipEnablerId, relationshipId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveRelationshipEnablerBehind
void moveRelationshipEnablerBehind(Id relationshipEnablerId, Id relationshipId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders relationship enablers for a relationship by moving the specified relationship enabler behind a reference relationship enabler.- Parameters:
relationshipEnablerId- theIdof aRelationshipnEnablerrelationshipId- theIdof aRelationshipreferenceId- the reference relationship enablerId- Throws:
NotFoundException-relationshipEnablerId, relationshipId, orreferenceIdnot found or,relationshipnEnablerIdorreferenceIdnot related torelationshipIdNullArgumentException-relationshipEnablerId, relationshipId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderRelationshipEnablers
void orderRelationshipEnablers(Id[] relationshipEnablerIds, Id relationshipId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of relationship enablers for a relationship.- Parameters:
relationshipEnablerIds- theIdsfor a set ofRelationshipnEnablersrelationshipId- theIdof aRelationship- Throws:
NotFoundException-relationshipIdnot found or, anrelationshipEnablerIdnot related torelationshipIdNullArgumentException-relationshipEnablerIdsorrelationshipIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-