public interface RelevancyEnablerRuleLookupSession extends OsidSession
This session provides methods to retrieve RelevancyEnabler
to Relevancy
mappings. A Relevancy
with multiple RelevancyEnablers
means any positive rule
evaluation across the enablers result in an effective Relevancy.
This lookup session defines several views:
Modifier and Type | Method and Description |
---|---|
boolean |
canLookupRelevancyEnablerRule()
Tests if this user can perform lookups of relevancy enabler/relevancy
mappings.
|
Ontology |
getOntology()
Gets the
Ontology associated with this session. |
Id |
getOntologyId()
Gets the
Ontology Id associated with
this session. |
RelevancyList |
getRelevanciesForRelevancyEnabler(Id relevancyEnablerId)
Gets the
Relevancies mapped to a
RelevancyEnabler. |
IdList |
getRelevancyEnablerIdsForRelevancy(Id relevancyId)
Gets the
RelevancyEnabler Id associated with a
Relevancy. |
RelevancyEnablerList |
getRelevancyEnablersForRelevancy(Id relevancyId)
Gets the
RelevancyEnabler associated with a
Relevancy. |
IdList |
getRelevancyIdsForRelevancyEnabler(Id relevancyEnablerId)
Gets the
Relevancy Ids mapped to a
RelevancyEnabler. |
void |
useComparativeRelevancyEnablerRuleView()
The returns from the lookup methods may omit or translate elements
based on this session, such as authorization, and not result in an
error.
|
void |
useFederatedOntologyView()
Federates the view for methods in this session.
|
void |
useIsolatedOntologyView()
Isolates the view for methods in this session.
|
void |
usePlenaryRelevancyEnablerRuleView()
A complete view of the
RelevancyEnabler and
Relevancy returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getOntologyId()
Ontology
Id
associated with
this session. Ontology Id
associated with this sessionmandatory
- This method must be implemented. Ontology getOntology() throws OperationFailedException, PermissionDeniedException
Ontology
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canLookupRelevancyEnablerRule()
PERMISSION_DENIED.
This is intended as a hint to an application that may opt not
to offer lookup operations to unauthorized users. false
if looking up mappings is not authorized,
true
otherwisemandatory
- This method must be implemented. void useComparativeRelevancyEnablerRuleView()
mandatory
- This method is must be implemented. void usePlenaryRelevancyEnablerRuleView()
RelevancyEnabler
and
Relevancy
returns 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.mandatory
- This method is must be implemented. void useFederatedOntologyView()
mandatory
- This method is must be implemented. void useIsolatedOntologyView()
mandatory
- This method is must be implemented. IdList getRelevancyEnablerIdsForRelevancy(Id relevancyId) throws NotFoundException, OperationFailedException, PermissionDeniedException
RelevancyEnabler Id
associated with a
Relevancy.
relevancyId
- Id
of the Relevancy
Ids
NotFoundException
- relevancyId
is not
foundNullArgumentException
- relevancyId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. RelevancyEnablerList getRelevancyEnablersForRelevancy(Id relevancyId) throws NotFoundException, OperationFailedException, PermissionDeniedException
RelevancyEnabler
associated with a
Relevancy.
relevancyId
- Id
of the Relevancy
NotFoundException
- relevancyId
is not
foundNullArgumentException
- relevancyId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. IdList getRelevancyIdsForRelevancyEnabler(Id relevancyEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Relevancy
Ids
mapped to a
RelevancyEnabler.
relevancyEnablerId
- Id
of a
RelevancyEnabler
Ids
NotFoundException
- relevancyEnablerId
is not foundNullArgumentException
- relevancyEnablerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. RelevancyList getRelevanciesForRelevancyEnabler(Id relevancyEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Relevancies
mapped to a
RelevancyEnabler.
relevancyEnablerId
- Id
of a
RelevancyEnabler
NotFoundException
- relevancyEnablerId
is not foundNullArgumentException
- relevancyEnablerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.