OSID Logo
OSID Specifications
ontology rules package
Version 3.0.0
Interfaceosid.ontology.rules.RelevancyEnablerRuleApplicationSession
Implementsosid.OsidSession
Used Byosid.ontology.rules.OntologyRulesManager
osid.ontology.rules.OntologyRulesProxyManager
Description

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 .

MethodgetOntologyId
Description

Gets the Ontology Id associated with this session.

Returnosid.id.Idthe Ontology Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetOntology
Description

Gets the Ontology associated with this session.

Returnosid.ontology.Ontologythe ontology
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanAssignRelevancyEnablers
Description

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 a PERMISSION_DENIED . This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.

Returnbooleanfalse if mapping is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodassignRelevancyEnablerToRelevancy
Description

Adds an existing RelevancyEnabler to a Relevancy .

Parametersosid.id.IdrelevancyEnablerIdthe Id of the RelevancyEnabler
osid.id.IdrelevancyIdthe Id of the Relevancy
ErrorsALREADY_EXISTSrelevancyEnablerId is already applied to relevancyId
NOT_FOUNDrelevancyEnablerId or relevancyId not found
NULL_ARGUMENTrelevancyEnablerId or relevancyId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodunassignRelevancyEnablerFromRelevancy
Description

Removes a RelevancyEnabler from a Relevancy .

Parametersosid.id.IdrelevancyEnablerIdthe Id of the RelevancyEnabler
osid.id.IdrelevancyIdthe Id of the Relevancy
ErrorsNOT_FOUNDrelevancyEnablerId or relevancyId not found or relevancyEnablerId not applied to relevancyId
NULL_ARGUMENTrelevancyEnablerId or relevancyId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanSequenceRelevancyEnablers
Description

Tests if this user can order RelevancyEnablers . A return of true does not guarantee successful authorization. A return of false indicates that it is known sequencing operations will result in a PERMISSION_DENIED . This is intended as a hint to an application that may opt not to offer sequencing operations to an unauthorized user.

Returnbooleanfalse if RelevancyEnabler ordering is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodmoveRelevancyEnablerAhead
Description

Reorders relevancy enablers for a relevancy by moving the specified relevancy enabler in front of a reference relevancy enabler.

Parametersosid.id.IdrelevancyEnablerIdthe Id of a RelevancyEnabler
osid.id.IdrelevancyIdthe Id of a Relevancy
osid.id.IdreferenceIdthe reference relevancy enabler Id
ErrorsNOT_FOUNDrelevancyEnablerId, relevancyId , or referenceId not found or, relevancyEnablerId or referenceId not related to relevancyId
NULL_ARGUMENTrelevancyEnablerId, relevancyId , or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodmoveRelevancyEnablerBehind
Description

Reorders relevancy enablers for a relevancy by moving the specified relevancy enabler behind a reference relevancy enabler.

Parametersosid.id.IdrelevancyEnablerIdthe Id of a RelevancyEnabler
osid.id.IdrelevancyIdthe Id of a Relevancy
osid.id.IdreferenceIdthe reference relevancy enabler Id
ErrorsNOT_FOUNDrelevancyEnablerId, relevancyId , or referenceId not found or, relevancyEnablerId or referenceId not related to relevancyId
NULL_ARGUMENTrelevancyEnablerId, relevancyId , or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodorderRelevancyEnablers
Description

Reorders a set of relevancy enablers for a relevancy.

Parametersosid.id.Id[]relevancyEnablerIdsthe Ids for a set of RelevancyEnablers
osid.id.IdrelevancyIdthe Id of a Relevancy
ErrorsNOT_FOUNDrelevancyId not found or, a relevancyEnablerId not related to relevancyId
NULL_ARGUMENTrelevancyEnablerIds or relevancyId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.