OSID Logo
OSID Specifications
ontology rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.ontology.rules.RelevancyEnablerRuleApplicationSession
Implementsosid.OsidSession
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.

Returnboolean false 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_EXISTS relevancyEnablerId is already applied to relevancyId
NOT_FOUND relevancyEnablerId or relevancyId not found
NULL_ARGUMENT relevancyEnablerId 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_FOUND relevancyEnablerId or relevancyId not found or relevancyEnablerId not applied to relevancyId
NULL_ARGUMENT relevancyEnablerId 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.

Returnboolean false 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_FOUND relevancyEnablerId, relevancyId, or referenceId not found or, relevancyEnablerId or referenceId not related to relevancyId
NULL_ARGUMENT relevancyEnablerId, 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_FOUND relevancyEnablerId, relevancyId, or referenceId not found or, relevancyEnablerId or referenceId not related to relevancyId
NULL_ARGUMENT relevancyEnablerId, 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_FOUND relevancyId not found or, a relevancyEnablerId not related to relevancyId
NULL_ARGUMENT relevancyEnablerIds or relevancyId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.