public final class AuditActionHelper extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AuditActionHelper.ValidationState |
| Constructor and Description |
|---|
AuditActionHelper()
ctor that sets the used services.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase & Auditable> |
auditConditionally(T form)
This method will apply audit rules if audit mode is enabled.
|
boolean |
auditUnconditionally(org.kuali.rice.krad.document.Document document)
This method will always apply audit rules on a document.
|
<T extends org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase & Auditable> |
auditUnconditionally(T form)
This method will apply audit rules disregarding whether audit is enabled.
|
<T extends org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase & Auditable> |
isValidSubmission(T form,
boolean unconditionally)
Runs validation conditionally or otherwise depending on the unconditionally param
and then if the validation returns false, checks the audit clusters for any error
clusters.
|
<T extends org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase & Auditable> |
setAuditMode(org.apache.struts.action.ActionMapping mapping,
T form,
boolean audit)
This method sets the audit mode on the passed in
KualiDocumentFormBase
and then returns the correct ActionForward |
public <T extends org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase & Auditable> org.apache.struts.action.ActionForward setAuditMode(org.apache.struts.action.ActionMapping mapping, T form, boolean audit)
KualiDocumentFormBase
and then returns the correct ActionForwardT - the action form typemapping - the action mappingform - the action formaudit - what to set the audit mode toNullPointerException - if the mapping or form is nullpublic <T extends org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase & Auditable> boolean auditConditionally(T form)
T - the action form typeform - the action formNullPointerException - if the form is nullpublic <T extends org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase & Auditable> boolean auditUnconditionally(T form)
T - the action form typeform - the action formNullPointerException - if the form is nullpublic boolean auditUnconditionally(org.kuali.rice.krad.document.Document document)
document - the documentNullPointerException - if the document is nullpublic <T extends org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase & Auditable> AuditActionHelper.ValidationState isValidSubmission(T form, boolean unconditionally)
T - form - unconditionally - Copyright © 2013 The Kuali Foundation. All Rights Reserved.