OSID Logo
OSID Specifications
ontology rules package
Version 3.1.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.Id the Ontology Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetOntology
Description

Gets the Ontology associated with this session.

Returnosid.ontology.Ontology the ontology
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodassignRelevancyEnablerToRelevancy
Description

Adds an existing RelevancyEnabler to a Relevancy.

Parametersosid.id.IdrelevancyEnablerId the Id of the RelevancyEnabler
osid.id.IdrelevancyId the 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_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodunassignRelevancyEnablerFromRelevancy
Description

Removes a RelevancyEnabler from a Relevancy.

Parametersosid.id.IdrelevancyEnablerId the Id of the RelevancyEnabler
osid.id.IdrelevancyId the 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_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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
Compliancemandatory This 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.IdrelevancyEnablerId the Id of a RelevancyEnabler
osid.id.IdrelevancyId the Id of a Relevancy
osid.id.IdreferenceId the 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_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdrelevancyEnablerId the Id of a RelevancyEnabler
osid.id.IdrelevancyId the Id of a Relevancy
osid.id.IdreferenceId the 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_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodorderRelevancyEnablers
Description

Reorders a set of relevancy enablers for a relevancy.

Parametersosid.id.Id[]relevancyEnablerIds the Ids for a set of RelevancyEnablers
osid.id.IdrelevancyId the Id of a Relevancy
ErrorsNOT_FOUND relevancyId not found or, a relevancyEnablerId not related to relevancyId
NULL_ARGUMENT relevancyEnablerIds or relevancyId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.