OSID Logo
OSID Specifications
inquiry rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.inquiry.rules.AuditEnablerRuleApplicationSession
Implementsosid.OsidSession
Description

This session provides methods to apply AuditEnablers to Audits. An Audit with multiple AuditEnablers means any positive rule evaluation across the enablers result in an effective Audit.

MethodgetInquestId
Description

Gets the Inquest Id associated with this session.

Returnosid.id.Idthe Inquest Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetInquest
Description

Gets the Inquest associated with this session.

Returnosid.inquiry.Inquestthe inquest
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanAssignAuditEnablers
Description

Tests if this user can alter audit enabler/audit 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.
MethodassignAuditEnablerToAudit
Description

Adds an existing AuditEnabler to an Audit.

Parametersosid.id.IdauditEnablerIdthe Id of the AuditEnabler
osid.id.IdauditIdthe Id of the Audit
ErrorsALREADY_EXISTS auditEnablerId already applied to auditId
NOT_FOUND auditEnablerId or auditId not found
NULL_ARGUMENT auditEnablerId or auditId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodunassignAuditEnablerFromAudit
Description

Removes an AuditEnabler from an Audit.

Parametersosid.id.IdauditEnablerIdthe Id of the AuditEnabler
osid.id.IdauditIdthe Id of the Audit
ErrorsNOT_FOUND auditEnablerId or auditId not found or auditEnablerId not applied to auditId
NULL_ARGUMENT auditEnablerId or auditId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanSequenceAuditEnablers
Description

Tests if this user can order AuditEnablers. 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 AuditEnabler ordering is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodmoveAuditEnablerAhead
Description

Reorders audit enablers for an audit by moving the specified audit enabler in front of a reference audit enabler.

Parametersosid.id.IdauditEnablerIdthe Id of an AuditEnabler
osid.id.IdauditIdthe Id of an Audit
osid.id.IdreferenceIdthe reference audit enabler Id
ErrorsNOT_FOUND auditEnablerId, auditId, or referenceId not found or, auditEnablerId or referenceId not related to auditId
NULL_ARGUMENT auditEnablerId, auditId, or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodmoveAuditEnablerBehind
Description

Reorders audit enablers for an inquiry by moving the specified audit enabler behind a reference audit enabler.

Parametersosid.id.IdauditEnablerIdthe Id of an AuditEnabler
osid.id.IdauditIdthe Id of an Audit
osid.id.IdreferenceIdthe reference audit enabler Id
ErrorsNOT_FOUND auditEnablerId, auditId, or referenceId not found or, auditEnablerId or referenceId not related to auditId
NULL_ARGUMENT auditEnablerId, auditId, or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodorderAuditEnablers
Description

Reorders a set of audit enablers for an audit.

Parametersosid.id.Id[]auditEnablerIdsthe Ids for a set of AuditEnablers
osid.id.IdauditIdthe Id of an Audit
ErrorsNOT_FOUND inquiryConstraienrId not found or, an auditEnablerId not related to auditId
NULL_ARGUMENT auditEnablerIds or auditId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.