Interface RelationshipEnablerRuleLookupSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to retrieve RelationshipEnabler
to Relationship mappings. A Relationship with multiple
RelationshipEnablers means any positive rule evaluation across the
enablers result in an enabled Relationship .
This lookup session defines several views:
- comparative view: elements may be silently omitted or re-ordered
- plenary view: provides a complete result set or is an error condition
- isolated family view: All methods in this session operate, retrieve and pertain relationship enablers defined explicitly in the current family.
- federated family view: All methods in this session operate, retrieve and pertain to all relationship enablers defined in this family and any other family enablers implicitly available in this family through family inheritence.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if this user can perform lookups of relationship enabler/relationship mappings.Gets theFamilyassociated with this session.Gets theFamilyIdassociated with this session.getRelationshipEnablerIdsForRelationship(Id relationshipId) Gets theRelationshipEnabler Idassociated with aRelationship.getRelationshipEnablersForRelationship(Id relationshipId) Gets theRelationshipEnablerassociated with aRelationship.getRelationshipIdsForRelationshipEnabler(Id relationshipEnablerId) Gets theRelationshipIdsmapped to aRelationshipEnabler.getRelationshipsForRelationshipEnabler(Id relationshipEnablerId) Gets theRelationshipsmapped to aRelationshipEnabler.voidThe returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error.voidFederates the view for methods in this session.voidIsolates the view for methods in this session.voidA complete view of theRelationshipEnablerandRelationshipreturns is desired.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.
-
canLookupRelationshipEnablerRules
boolean canLookupRelationshipEnablerRules()Tests if this user can perform lookups of relationship enabler/relationship mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known lookup 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 looking up mappings is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
useComparativeRelationshipEnablerRuleView
void useComparativeRelationshipEnablerRuleView()The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision.- Compliance:
mandatory- This method is must be implemented.
-
usePlenaryRelationshipEnablerRuleView
void usePlenaryRelationshipEnablerRuleView()A complete view of theRelationshipEnablerandRelationshipreturns is desired. Methods will return what is requested or result in an error. This view is used when greater precision is desired at the expense of interoperability.- Compliance:
mandatory- This method is must be implemented.
-
useFederatedFamilyView
void useFederatedFamilyView()Federates the view for methods in this session. A federated view will include relationship enablers in families which are children of this family in the family hierarchy.- Compliance:
mandatory- This method is must be implemented.
-
useIsolatedFamilyView
void useIsolatedFamilyView()Isolates the view for methods in this session. An isolated view restricts lookups to this family only.- Compliance:
mandatory- This method is must be implemented.
-
getRelationshipEnablerIdsForRelationship
IdList getRelationshipEnablerIdsForRelationship(Id relationshipId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets theRelationshipEnabler Idassociated with aRelationship.- Parameters:
relationshipId-Idof theRelationship- Returns:
- the relationship enabler
Ids - Throws:
NotFoundException-relationshipIdis not foundNullArgumentException-relationshipIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getRelationshipEnablersForRelationship
RelationshipEnablerList getRelationshipEnablersForRelationship(Id relationshipId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets theRelationshipEnablerassociated with aRelationship.- Parameters:
relationshipId-Idof theRelationship- Returns:
- the relationship enablers
- Throws:
NotFoundException-relationshipIdis not foundNullArgumentException-relationshipIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getRelationshipIdsForRelationshipEnabler
IdList getRelationshipIdsForRelationshipEnabler(Id relationshipEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets theRelationshipIdsmapped to aRelationshipEnabler.- Parameters:
relationshipEnablerId-Idof aRelationshipEnabler- Returns:
- list of relationship
Ids - Throws:
NotFoundException-relationshipEnablerIdis not foundNullArgumentException-relationshipEnablerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getRelationshipsForRelationshipEnabler
RelationshipList getRelationshipsForRelationshipEnabler(Id relationshipEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets theRelationshipsmapped to aRelationshipEnabler.- Parameters:
relationshipEnablerId-Idof aRelationshipEnabler- Returns:
- list of relationships
- Throws:
NotFoundException-relationshipEnablerIdis not foundNullArgumentException-relationshipEnablerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-