Interface AuditEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
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 .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignAuditEnablerToAudit(Id auditEnablerId, Id auditId) Adds an existingAuditEnablerto anAudit.booleanTests if this user can alter audit enabler/audit mappings.booleanTests if this user can orderAuditEnablers.Gets theInquestassociated with this session.Gets theInquestIdassociated with this session.voidmoveAuditEnablerAhead(Id auditEnablerId, Id auditId, Id referenceId) Reorders audit enablers for an audit by moving the specified audit enabler in front of a reference audit enabler.voidmoveAuditEnablerBehind(Id auditEnablerId, Id auditId, Id referenceId) Reorders audit enablers for an inquiry by moving the specified audit enabler behind a reference audit enabler.voidorderAuditEnablers(Id[] auditEnablerIds, Id auditId) Reorders a set of audit enablers for an audit.voidunassignAuditEnablerFromAudit(Id auditEnablerId, Id auditId) Removes anAuditEnablerfrom anAudit.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.
-
Method Details
-
getInquestId
Id getInquestId()Gets theInquestIdassociated with this session.- Returns:
- the
Inquest Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getInquest
Gets theInquestassociated with this session.- Returns:
- the inquest
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canAssignAuditEnablers
boolean canAssignAuditEnablers()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 aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.- Returns:
falseif mapping is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
assignAuditEnablerToAudit
void assignAuditEnablerToAudit(Id auditEnablerId, Id auditId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingAuditEnablerto anAudit.- Parameters:
auditEnablerId- theIdof theAuditEnablerauditId- theIdof theAudit- Throws:
AlreadyExistsException-auditEnablerIdalready applied toauditIdNotFoundException-auditEnablerIdorauditIdnot foundNullArgumentException-auditEnablerIdorauditIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignAuditEnablerFromAudit
void unassignAuditEnablerFromAudit(Id auditEnablerId, Id auditId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes anAuditEnablerfrom anAudit.- Parameters:
auditEnablerId- theIdof theAuditEnablerauditId- theIdof theAudit- Throws:
NotFoundException-auditEnablerIdorauditIdnot found orauditEnablerIdnot applied toauditIdNullArgumentException-auditEnablerIdorauditIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceAuditEnablers
boolean canSequenceAuditEnablers()Tests if this user can orderAuditEnablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known sequencing operations will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer sequencing operations to an unauthorized user.- Returns:
falseifAuditEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveAuditEnablerAhead
void moveAuditEnablerAhead(Id auditEnablerId, Id auditId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders audit enablers for an audit by moving the specified audit enabler in front of a reference audit enabler.- Parameters:
auditEnablerId- theIdof anAuditEnablerauditId- theIdof anAuditreferenceId- the reference audit enablerId- Throws:
NotFoundException-auditEnablerId, auditId, orreferenceIdnot found or,auditEnablerIdorreferenceIdnot related toauditIdNullArgumentException-auditEnablerId, auditId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveAuditEnablerBehind
void moveAuditEnablerBehind(Id auditEnablerId, Id auditId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders audit enablers for an inquiry by moving the specified audit enabler behind a reference audit enabler.- Parameters:
auditEnablerId- theIdof anAuditEnablerauditId- theIdof anAuditreferenceId- the reference audit enablerId- Throws:
NotFoundException-auditEnablerId, auditId, orreferenceIdnot found or,auditEnablerIdorreferenceIdnot related toauditIdNullArgumentException-auditEnablerId, auditId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderAuditEnablers
void orderAuditEnablers(Id[] auditEnablerIds, Id auditId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of audit enablers for an audit.- Parameters:
auditEnablerIds- theIdsfor a set ofAuditEnablersauditId- theIdof anAudit- Throws:
NotFoundException-inquiryConstraienrIdnot found or, anauditEnablerIdnot related toauditIdNullArgumentException-auditEnablerIdsorauditIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-