OSID Logo
OSID Specifications
rules check package
Version 3.1.0
Interfaceosid.rules.check.AgendaSession
Implementsosid.OsidSession
Used Byosid.rules.check.RulesCheckManager
osid.rules.check.RulesCheckProxyManager
Description

This session provides methods to process Agendas.

Agendas are OsidRules that may require additional input in the form of an AgendaCondition to be evaluated.

An AgendaCondition is acquired using getAgendaCondition(). The AgendaConditionRecords in the AgendaCondition must be supplied for a successful evaluation. Knowledge of a specific agenda Id is also an agreement to the understanding of the required AgendaConditionRecords as well as what is expected as a result. These record Types may be inspected in the AgendaConditionRecord and CheckResultRecord respectively.

MethodgetEngineId
Description

Gets the Engine Id associated with this session.

Returnosid.id.Id the Engine Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetEngine
Description

Gets the Engine associated with this session.

Returnosid.rules.Engine the engine
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanEvaluateAgendas
Description

Tests if this user can evaluate agendas. A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may not offer lookup operations to unauthorized users.

Returnboolean false if agenda evaluation is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodgetAgendaCondition
Description

Gets an AgendaCondition for the given Agenda. The record Types in the AgendaCondition are required for a successful evaluation.

Parametersosid.id.IdagendaId the Id of an Agenda
Returnosid.rules.check.AgendaCondition an agenda condition
ErrorsNOT_FOUND agendaId is not found
NULL_ARGUMENT agendaId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure making request
Compliancemandatory This method must be implemented.
MethodevaluateAgendaOnCondition
Description

Evaluates an agenda based on an input condition. The status of each Check evaluation is returned in a CheckResult.

Parametersosid.id.IdagendaId the Id of an Agenda
osid.rules.ConditionagendaCondition an agenda condition
Returnboolean true if the evaluation is successful, false if not successful
ErrorsNOT_FOUND agendaId is not found
NULL_ARGUMENT agendaId or agendaCondition is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED agendaCondition did not otiginate from getAgendaCondition() or is missing information required to evaluate agendaId
Compliancemandatory This method must be implemented.