Interface AuditConstrainerEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply AuditConstrainerEnablers
to AuditConstrainers . Multiple AuditConstrainerEnablers
applied to an AuditConstrainer may be sequenced such that the
first positive evaluation results in the AuditConstrainerEnabler
used.
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignAuditConstrainerEnablerToAuditConstrainer(Id auditConstrainerEnablerId, Id auditConstrainerId) Adds an existingAuditConstrainerEnablerto anAuditConstrainer.booleanTests if this user can alter audit constrainer enabler/audit constrainer mappings.booleanTests if this user can orderAuditConstrainerEnablers.Gets theInquestassociated with this session.Gets theInquestIdassociated with this session.voidmoveAuditConstrainerEnablerAhead(Id auditConstrainerEnablerId, Id auditConstrainerId, Id referenceId) Reorders audit constrainer enablers for an audit constrainer by moving the specified audit constrainer enabler in front of a reference audit constrainer enabler.voidmoveAuditConstrainerEnablerBehind(Id auditConstrainerEnablerId, Id auditConstrainerId, Id referenceId) Reorders audit constrainer enablers for an audit constrainer by moving the specified audit constrainer enabler behind a reference audit constrainer enabler.voidorderAuditConstrainerEnablers(Id[] auditConstrainerEnablerIds, Id auditConstrainerId) Reorders a set of audit constrainer enablers for an audit constrainer.voidunassignAuditConstrainerEnablerFromAuditConstrainer(Id auditConstrainerEnablerId, Id auditConstrainerId) Removes an existingAuditConstrainerEnablerfrom anAuditConstrainer.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.
-
canAssignAuditConstrainerEnablers
boolean canAssignAuditConstrainerEnablers()Tests if this user can alter audit constrainer enabler/audit constrainer 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.
-
assignAuditConstrainerEnablerToAuditConstrainer
void assignAuditConstrainerEnablerToAuditConstrainer(Id auditConstrainerEnablerId, Id auditConstrainerId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingAuditConstrainerEnablerto anAuditConstrainer.- Parameters:
auditConstrainerEnablerId- theIdof theAuditConstrainerEnablerauditConstrainerId- theIdof theAuditConstrainer- Throws:
AlreadyExistsException-auditConstrainerEnablerIdalready applied toauditConstrainerIdNotFoundException-auditConstrainerEnablerIdorauditConstrainerIdnot foundNullArgumentException-auditConstrainerEnablerIdorauditConstrainerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignAuditConstrainerEnablerFromAuditConstrainer
void unassignAuditConstrainerEnablerFromAuditConstrainer(Id auditConstrainerEnablerId, Id auditConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes an existingAuditConstrainerEnablerfrom anAuditConstrainer.- Parameters:
auditConstrainerEnablerId- theIdof theAuditConstrainerEnablerauditConstrainerId- theIdof theAuditConstrainer- Throws:
NotFoundException-auditConstrainerEnablerIdorauditConstrainerIdnot found orauditConstrainerEnablerIdalready applied toauditConstrainerIdNullArgumentException-auditConstrainerEnablerIdorauditConstrainerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceAuditConstrainerEnablers
boolean canSequenceAuditConstrainerEnablers()Tests if this user can orderAuditConstrainerEnablers. 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:
falseifAuditConstrainerEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveAuditConstrainerEnablerAhead
void moveAuditConstrainerEnablerAhead(Id auditConstrainerEnablerId, Id auditConstrainerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders audit constrainer enablers for an audit constrainer by moving the specified audit constrainer enabler in front of a reference audit constrainer enabler.- Parameters:
auditConstrainerEnablerId- theIdof theAuditConstrainerEnablerauditConstrainerId- theIdof theAuditConstrainerreferenceId- the reference audit constrainer enablerId- Throws:
NotFoundException-auditConstrainerEnablerId auditConstrainerId, orreferenceIdnot found or,auditConstrainerEnablerIdorreferenceIdnot related toauditConstrainerIdNullArgumentException-auditConstrainerEnablerId, auditConstrainerId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveAuditConstrainerEnablerBehind
void moveAuditConstrainerEnablerBehind(Id auditConstrainerEnablerId, Id auditConstrainerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders audit constrainer enablers for an audit constrainer by moving the specified audit constrainer enabler behind a reference audit constrainer enabler.- Parameters:
auditConstrainerEnablerId- theIdof theAuditConstrainerEnablerauditConstrainerId- theIdof theAuditConstrainerreferenceId- the reference audit constrainerId- Throws:
NotFoundException-auditConstrainerEnablerId auditConstrainerId, orreferenceIdnot found or,auditConstrainerEnablerIdorreferenceIdnot related toauditConstrainerIdNullArgumentException-auditConstrainerEnablerId, auditConstrainerId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderAuditConstrainerEnablers
void orderAuditConstrainerEnablers(Id[] auditConstrainerEnablerIds, Id auditConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of audit constrainer enablers for an audit constrainer.- Parameters:
auditConstrainerEnablerIds- theIdsfor a set ofAuditConstrainerEnablersauditConstrainerId- theIdof theAuditConstrainer- Throws:
NotFoundException-auditConstrainerIdnot found or, anauditConstrainerEnablerIdnot related toauditConstrainerIdNullArgumentException-auditConstrainerEnablerIdsorauditConstrainerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-