Interface RelevancyEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply RelevancyEnablers to
Relevancies . A Relevancy with multiple
RelevancyEnablers means any positive rule evaluation across the enablers
result in an effective Relevancy .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignRelevancyEnablerToRelevancy(Id relevancyEnablerId, Id relevancyId) Adds an existingRelevancyEnablerto aRelevancy.booleanTests if this user can alter relevancy enabler/relevancy mappings.booleanTests if this user can orderRelevancyEnablers.Gets theOntologyassociated with this session.Gets theOntologyIdassociated with this session.voidmoveRelevancyEnablerAhead(Id relevancyEnablerId, Id relevancyId, Id referenceId) Reorders relevancy enablers for a relevancy by moving the specified relevancy enabler in front of a reference relevancy enabler.voidmoveRelevancyEnablerBehind(Id relevancyEnablerId, Id relevancyId, Id referenceId) Reorders relevancy enablers for a relevancy by moving the specified relevancy enabler behind a reference relevancy enabler.voidorderRelevancyEnablers(Id[] relevancyEnablerIds, Id relevancyId) Reorders a set of relevancy enablers for a relevancy.voidunassignRelevancyEnablerFromRelevancy(Id relevancyEnablerId, Id relevancyId) Removes aRelevancyEnablerfrom aRelevancy.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
-
getOntologyId
Id getOntologyId()Gets theOntologyIdassociated with this session.- Returns:
- the
Ontology Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getOntology
Gets theOntologyassociated with this session.- Returns:
- the ontology
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canAssignRelevancyEnablers
boolean canAssignRelevancyEnablers()Tests if this user can alter relevancy enabler/relevancy 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.
-
assignRelevancyEnablerToRelevancy
void assignRelevancyEnablerToRelevancy(Id relevancyEnablerId, Id relevancyId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingRelevancyEnablerto aRelevancy.- Parameters:
relevancyEnablerId- theIdof theRelevancyEnablerrelevancyId- theIdof theRelevancy- Throws:
AlreadyExistsException-relevancyEnablerIdis already applied torelevancyIdNotFoundException-relevancyEnablerIdorrelevancyIdnot foundNullArgumentException-relevancyEnablerIdorrelevancyIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignRelevancyEnablerFromRelevancy
void unassignRelevancyEnablerFromRelevancy(Id relevancyEnablerId, Id relevancyId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aRelevancyEnablerfrom aRelevancy.- Parameters:
relevancyEnablerId- theIdof theRelevancyEnablerrelevancyId- theIdof theRelevancy- Throws:
NotFoundException-relevancyEnablerIdorrelevancyIdnot found orrelevancyEnablerIdnot applied torelevancyIdNullArgumentException-relevancyEnablerIdorrelevancyIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceRelevancyEnablers
boolean canSequenceRelevancyEnablers()Tests if this user can orderRelevancyEnablers. 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:
falseifRelevancyEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveRelevancyEnablerAhead
void moveRelevancyEnablerAhead(Id relevancyEnablerId, Id relevancyId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders relevancy enablers for a relevancy by moving the specified relevancy enabler in front of a reference relevancy enabler.- Parameters:
relevancyEnablerId- theIdof aRelevancyEnablerrelevancyId- theIdof aRelevancyreferenceId- the reference relevancy enablerId- Throws:
NotFoundException-relevancyEnablerId, relevancyId, orreferenceIdnot found or,relevancyEnablerIdorreferenceIdnot related torelevancyIdNullArgumentException-relevancyEnablerId, relevancyId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveRelevancyEnablerBehind
void moveRelevancyEnablerBehind(Id relevancyEnablerId, Id relevancyId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders relevancy enablers for a relevancy by moving the specified relevancy enabler behind a reference relevancy enabler.- Parameters:
relevancyEnablerId- theIdof aRelevancyEnablerrelevancyId- theIdof aRelevancyreferenceId- the reference relevancy enablerId- Throws:
NotFoundException-relevancyEnablerId, relevancyId, orreferenceIdnot found or,relevancyEnablerIdorreferenceIdnot related torelevancyIdNullArgumentException-relevancyEnablerId, relevancyId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderRelevancyEnablers
void orderRelevancyEnablers(Id[] relevancyEnablerIds, Id relevancyId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of relevancy enablers for a relevancy.- Parameters:
relevancyEnablerIds- theIdsfor a set ofRelevancyEnablersrelevancyId- theIdof aRelevancy- Throws:
NotFoundException-relevancyIdnot found or, arelevancyEnablerIdnot related torelevancyIdNullArgumentException-relevancyEnablerIdsorrelevancyIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-