Interface AuditConstrainerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply AuditConstrainers to
Audits . Multiple AuditConstrainers applied to an
Audit may be sequenced such that the first positive evaluation results in
the AuditConstrainer used.
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignAuditConstrainerToAudit(Id auditConstrainerId, Id auditId) Adds an existingAuditConstrainerto anAudit.booleanTests if this user can alter audit constrainer/audit mappings.booleanTests if this user can orderAuditConstrainers.Gets theInquestassociated with this session.Gets theInquestIdassociated with this session.voidmoveAuditConstrainerAhead(Id auditConstrainerId, Id auditId, Id referenceId) Reorders audit constrainers for an audit by moving the specified audit constrainer in front of a reference audit constrainer.voidmoveAuditConstrainerBehind(Id auditConstrainerId, Id auditId, Id referenceId) Reorders audit constrainers for an audit by moving the specified audit constrainer behind a reference audit constrainer.voidorderAuditConstrainers(Id[] auditConstrainerIds, Id auditId) Reorders a set of audit constrainers for an audit.voidunassignAuditConstrainerFromAudit(Id auditConstrainerId, Id auditId) Removes an existingAuditConstrainerfrom 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.
-
canAssignAuditConstrainers
boolean canAssignAuditConstrainers()Tests if this user can alter audit constrainer/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.
-
assignAuditConstrainerToAudit
void assignAuditConstrainerToAudit(Id auditConstrainerId, Id auditId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingAuditConstrainerto anAudit.- Parameters:
auditConstrainerId- theIdof theAuditConstrainerauditId- theIdof theAudit- Throws:
AlreadyExistsException-auditConstrainerIdalready applied toauditIdNotFoundException-auditConstrainerIdorauditIdnot foundNullArgumentException-auditConstrainerIdorauditIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignAuditConstrainerFromAudit
void unassignAuditConstrainerFromAudit(Id auditConstrainerId, Id auditId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes an existingAuditConstrainerfrom anAudit.- Parameters:
auditConstrainerId- theIdof theAuditConstrainerauditId- theIdof theAudit- Throws:
NotFoundException-auditConstrainerIdorauditIdnot found orauditConstrainerIdalready applied toauditIdNullArgumentException-auditConstrainerIdorauditIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceAuditConstrainers
boolean canSequenceAuditConstrainers()Tests if this user can orderAuditConstrainers. 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:
falseifAuditConstrainerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveAuditConstrainerAhead
void moveAuditConstrainerAhead(Id auditConstrainerId, Id auditId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders audit constrainers for an audit by moving the specified audit constrainer in front of a reference audit constrainer.- Parameters:
auditConstrainerId- theIdof theAuditConstrainerauditId- theIdof theAuditreferenceId- the reference audit constrainerId- Throws:
NotFoundException-auditConstrainerId, auditId, orreferenceIdnot found or,auditConstrainerIdorreferenceIdnot related toauditIdNullArgumentException-auditConstrainerId, auditId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveAuditConstrainerBehind
void moveAuditConstrainerBehind(Id auditConstrainerId, Id auditId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders audit constrainers for an audit by moving the specified audit constrainer behind a reference audit constrainer.- Parameters:
auditConstrainerId- theIdof theAuditConstrainerauditId- theIdof theAuditreferenceId- the reference audit constrainerId- Throws:
NotFoundException-auditConstrainerId, auditId, orreferenceIdnot found or,auditConstrainerIdorreferenceIdnot related toauditIdNullArgumentException-auditConstrainerId, auditId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderAuditConstrainers
void orderAuditConstrainers(Id[] auditConstrainerIds, Id auditId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of audit constrainers for an audit.- Parameters:
auditConstrainerIds- theIdsfor a set ofAuditConstrainersauditId- theIdof theAudit- Throws:
NotFoundException-auditIdnot found or, anauditConstrainerIdnot related toauditIdNullArgumentException-auditConstrainerIdsorauditIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-