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

This session provides methods to re-assign Agendas to Engine mappings. An Agenda may appear in multiple Engine objects and removing the last reference to an Agenda is the equivalent of deleting it. Each Engine may have its own authorizations governing who is allowed to operate on it.

Adding a reference of an Agenda to another Engine is not a copy operation (eg: does not change its Id).

MethodcanAssignAgendas
Description

Tests if this user can alter agenda/engine 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 check is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodcanAssignAgendasToEngine
Description

Tests if this user can alter agenda/engine 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.

Parametersosid.id.IdengineId the Id of the Engine
Returnboolean false if mapping is not authorized, true otherwise
ErrorsNULL_ARGUMENT engineId is null
Compliancemandatory This method must be implemented.
MethodgetAssignableEngineIds
Description

Gets a list of engines including and under the given engine node in which any agenda can be assigned.

Parametersosid.id.IdengineId the Id of the Engine
Returnosid.id.IdList list of assignable engine Ids
ErrorsNULL_ARGUMENT engineId is null
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetAssignableEngineIdsForAgenda
Description

Gets a list of engines including and under the given engine node in which a specific agenda can be assigned.

Parametersosid.id.IdengineId the Id of the Engine
osid.id.IdagendaId the Id of the Agenda
Returnosid.id.IdList list of assignable engine Ids
ErrorsNULL_ARGUMENT engineId or agendaId is null
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodassignAgendaToEngine
Description

Adds an existing Agenda to a Engine.

Parametersosid.id.IdagendaId the Id of the Agenda
osid.id.IdengineId the Id of the Engine
ErrorsALREADY_EXISTS agendaId is already assigned to engineId
NOT_FOUND agendaId or engineId not found
NULL_ARGUMENT agendaId or engineId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodunassignAgendaFromEngine
Description

Removes an Agenda from a Engine.

Parametersosid.id.IdagendaId the Id of the Agenda
osid.id.IdengineId the Id of the Engine
ErrorsNOT_FOUND agendaId or engineId not found or agendaId not assigned to engineId
NULL_ARGUMENT agendaId or engineId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodreassignAgendaToEngine
Description

Moves an Agenda from one Engine to another. Mappings to other Engines are unaffected.

Parametersosid.id.IdagendaId the Id of the Agenda
osid.id.IdfromEngineId the Id of the current Engine
osid.id.IdtoEngineId the Id of the destination Engine
ErrorsALREADY_EXISTS agendaId already assigned to toEngineId
NOT_FOUND agendaId, fromEngineId, or toEngineId not found or agendaId not mapped to fromEngineId
NULL_ARGUMENT agendaId, fromEngineId, or toEngineId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.