OSID Logo
OSID Specifications
ontology rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.ontology.rules.RelevancyEnablerAdminSession
Implementsosid.OsidSession
Description

This session creates and removes relevancy enablers. The data for create and update is provided via the RelevancyEnablerForm.

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.
MethodcanCreateRelevancyEnabler
Description

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

Returnboolean false if RelevancyEnabler creation is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodcanCreateRelevancyEnablerWithRecordTypes
Description

Tests if this user can create a single RelevancyEnabler using the desired record types. While OntologyRulesManager.getRelevancyEnablerRecordTypes() can be used to examine which records are supported, this method tests which record(s) are required for creating a specific RelevancyEnabler. Providing an empty array tests if a RelevancyEnabler can be created with no records.

Parametersosid.type.Type[]relevancyEnablerRecordTypesarray of relevancy enabler record types
Returnboolean true if RelevancyEnabler creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT relevancyEnablerRecordTypes is null
CompliancemandatoryThis method must be implemented.
MethodgetRelevancyEnablerFormForCreate
Description

Gets the relevancy enabler form for creating new relevancy enablers. A new form should be requested for each create transaction.

Parametersosid.type.Type[]relevancyEnablerRecordTypesarray of relevancy enabler record types
Returnosid.ontology.rules.RelevancyEnablerFormthe relevancy enabler form
ErrorsNULL_ARGUMENT relevancyEnablerRecordTypes is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDunable to get form for requested record types
CompliancemandatoryThis method must be implemented.
MethodcreateRelevancyEnabler
Description

Creates a new RelevancyEnabler.

Parametersosid.ontology.rules.RelevancyEnablerFormrelevancyEnablerFormthe form for this RelevancyEnabler
Returnosid.ontology.rules.RelevancyEnablerthe new RelevancyEnabler
ErrorsILLEGAL_STATE relevancyEnablerForm already used in a create transaction
INVALID_ARGUMENTone or more of the form elements is invalid
NULL_ARGUMENT relevancyEnablerForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED relevancyEnablerForm did not originate from getRelevancyEnablerFormForCreate()
CompliancemandatoryThis method must be implemented.
MethodcanUpdateRelevancyEnablers
Description

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

Returnboolean false if RelevancyEnabler modification is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetRelevancyEnablerFormForUpdate
Description

Gets the relevancy enabler form for updating an existing relevancy enabler. A new relevancy enabler form should be requested for each update transaction.

Parametersosid.id.IdrelevancyEnablerIdthe Id of the RelevancyEnabler
Returnosid.ontology.rules.RelevancyEnablerFormthe relevancy enabler form
ErrorsNOT_FOUND relevancyEnablerId is not found
NULL_ARGUMENT relevancyEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodupdateRelevancyEnabler
Description

Updates an existing relevancy enabler.

Parametersosid.ontology.rules.RelevancyEnablerFormrelevancyEnablerFormthe form containing the elements to be updated
ErrorsILLEGAL_STATE relevancyEnablerForm already used in an update transaction
INVALID_ARGUMENTthe form contains an invalid value
NULL_ARGUMENT relevancyEnablerForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED relevancyEnablerForm did not originate from getRelevancyEnablerFormForUpdate()
CompliancemandatoryThis method must be implemented.
MethodcanDeleteRelevancyEnablers
Description

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

Returnboolean false if RelevancyEnabler deletion is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoddeleteRelevancyEnabler
Description

Deletes a RelevancyEnabler.

Parametersosid.id.IdrelevancyEnablerIdthe Id of the RelevancyEnabler to remove
ErrorsNOT_FOUND relevancyEnablerId not found
NULL_ARGUMENT relevancyEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanManageRelevancyEnablerAliases
Description

Tests if this user can manage Id aliases for relevancy enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known changing an alias will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer alias operations to an unauthorized user.

Returnboolean false if RelevancyEnabler aliasing is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodaliasRelevancyEnabler
Description

Adds an Id to a RelevancyEnabler for the purpose of creating compatibility. The primary Id of the RelevancyEnabler is determined by the provider. The new Id performs as an alias to the primary Id . If the alias is a pointer to another relevancy enabler. it is reassigned to the given relevancy enabler Id.

Parametersosid.id.IdrelevancyEnablerIdthe Id of a RelevancyEnabler
osid.id.IdaliasIdthe alias Id
ErrorsALREADY_EXISTS aliasId is already assigned
NOT_FOUND relevancyEnablerId not found
NULL_ARGUMENT relevancyEnablerId or aliasId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.