Interface AuditProcessorRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply AuditProcessors to
Audits . Multiple AuditProcessors applied to an
Audit may be sequenced such that the first positive evaluation results in
the AuditProcessor used.
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignAuditProcessorToAudit(Id auditProcessorId, Id auditId) Adds an existingAuditProcessorto anAudit.booleanTests if this user can alter audit processor/audit mappings.booleanTests if this user can orderAuditProcessors.Gets theInquestassociated with this session.Gets theInquestIdassociated with this session.voidmoveAuditProcessorAhead(Id auditProcessorId, Id auditId, Id referenceId) Reorders audit processors for an audit by moving the specified audit processor in front of a reference audit processor.voidmoveAuditProcessorBehind(Id auditProcessorId, Id auditId, Id referenceId) Reorders audit processors for an audit by moving the specified audit processor behind a reference audit processor.voidorderAuditProcessors(Id[] auditProcessorIds, Id auditId) Reorders a set of audit processors for an audit.voidunassignAuditProcessorFromAudit(Id auditProcessorId, Id auditId) Removes an existingAuditProcessorfrom 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.
-
canAssignAuditProcessors
boolean canAssignAuditProcessors()Tests if this user can alter audit processor/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.
-
assignAuditProcessorToAudit
void assignAuditProcessorToAudit(Id auditProcessorId, Id auditId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingAuditProcessorto anAudit.- Parameters:
auditProcessorId- theIdof theAuditProcessorauditId- theIdof theAudit- Throws:
AlreadyExistsException-auditProcessorIdalready applied toauditIdNotFoundException-auditProcessorIdorauditIdnot foundNullArgumentException-auditProcessorIdorauditIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignAuditProcessorFromAudit
void unassignAuditProcessorFromAudit(Id auditProcessorId, Id auditId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes an existingAuditProcessorfrom anAudit.- Parameters:
auditProcessorId- theIdof theAuditProcessorauditId- theIdof theAudit- Throws:
NotFoundException-auditProcessorIdorauditIdnot found orauditProcessorIdalready applied toauditIdNullArgumentException-auditProcessorIdorauditIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceAuditProcessors
boolean canSequenceAuditProcessors()Tests if this user can orderAuditProcessors. 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:
falseifAuditProcessorordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveAuditProcessorAhead
void moveAuditProcessorAhead(Id auditProcessorId, Id auditId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders audit processors for an audit by moving the specified audit processor in front of a reference audit processor.- Parameters:
auditProcessorId- theIdof theAuditProcessorauditId- theIdof theAuditreferenceId- the reference audit processorId- Throws:
NotFoundException-auditProcessorId auditId, orreferenceIdnot found or,auditProcessorIdorreferenceIdnot related toauditIdNullArgumentException-auditProcessorId, auditId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveAuditProcessorBehind
void moveAuditProcessorBehind(Id auditProcessorId, Id auditId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders audit processors for an audit by moving the specified audit processor behind a reference audit processor.- Parameters:
auditProcessorId- theIdof theAuditProcessorauditId- theIdof theAuditreferenceId- the reference audit processorId- Throws:
NotFoundException-auditProcessorId, auditId, orreferenceIdnot found or,auditProcessorIdorreferenceIdnot related toauditIdNullArgumentException-auditProcessorId, auditId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderAuditProcessors
void orderAuditProcessors(Id[] auditProcessorIds, Id auditId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of audit processors for an audit.- Parameters:
auditProcessorIds- theIdsfor a set ofAuditProcessorsauditId- theIdof theAudit- Throws:
NotFoundException-auditIdnot found or, anauditProcessorIdnot related toauditIdNullArgumentException-auditProcessorIdsorauditIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-