|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.kfs.sys.document.validation.ParameterizedValidation
org.kuali.kfs.sys.document.validation.GenericValidation
org.kuali.kfs.fp.document.validation.impl.DisbursementVoucherCampusSpecialHandlingValidation
public class DisbursementVoucherCampusSpecialHandlingValidation
Validates that if a disbursement voucher had special handling turned off at the campus node, an extra note explaining that change has been added.
Field Summary | |
---|---|
static String |
DOCUMENT_EDITOR_ROLE_NAME
|
Constructor Summary | |
---|---|
DisbursementVoucherCampusSpecialHandlingValidation()
|
Method Summary | |
---|---|
DisbursementVoucherDocument |
getDisbursementVoucherDocumentForValidation()
Gets the disbursementVoucherDocumentForValidation attribute. |
org.kuali.rice.kns.service.DocumentService |
getDocumentService()
Gets the documentService attribute. |
protected int |
getNoteCount(DisbursementVoucherDocument dvDoc)
Determines the count of notes on the given document |
protected DisbursementVoucherDocument |
getPersistedDisbursementVoucherDocument()
Retrieves from the persistence store the persisted version of the given document |
org.kuali.rice.kew.service.WorkflowInfo |
getWorkflowInfo()
Gets the workflowInfo attribute. |
protected boolean |
isAtNodeToCheck()
Determines if the DisbursementVoucherDocumentForValidation is at the Campus route node |
protected boolean |
isNoteAdded()
Determines if another note was added from the time the DisbursementVoucherDocumentForValidation was persisted |
protected boolean |
isSpecialHandlingChanged(DisbursementVoucherDocument persistedDocument)
Determines if special handling was turned off from the DisbursementVoucherDocumentForValidation |
protected boolean |
noteAddedByApproverForCurrentNode(org.kuali.rice.kns.bo.Note note)
Determines if the given note was added by the current approver |
void |
setDisbursementVoucherDocumentForValidation(DisbursementVoucherDocument disbursementVoucherDocumentForValidation)
Sets the disbursementVoucherDocumentForValidation attribute value. |
void |
setDocumentService(org.kuali.rice.kns.service.DocumentService documentService)
Sets the documentService attribute value. |
void |
setWorkflowInfo(org.kuali.rice.kew.service.WorkflowInfo workflowInfo)
Sets the workflowInfo attribute value. |
boolean |
validate(AttributedDocumentEvent event)
Carries out the validation |
Methods inherited from class org.kuali.kfs.sys.document.validation.GenericValidation |
---|
setQuitOnFail, shouldQuitOnFail, stageValidation |
Methods inherited from class org.kuali.kfs.sys.document.validation.ParameterizedValidation |
---|
getParameterProperties, populateParameterFromEvent, populateParametersFromEvent, setParameterProperties |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DOCUMENT_EDITOR_ROLE_NAME
Constructor Detail |
---|
public DisbursementVoucherCampusSpecialHandlingValidation()
Method Detail |
---|
public boolean validate(AttributedDocumentEvent event)
Validation.validate(org.kuali.kfs.sys.document.validation.event.AttributedDocumentEvent)
protected boolean isAtNodeToCheck()
protected DisbursementVoucherDocument getPersistedDisbursementVoucherDocument()
document
- the document to find the persisted version of
protected boolean isSpecialHandlingChanged(DisbursementVoucherDocument persistedDocument)
persistedDocument
- the persisted version of the document
protected boolean isNoteAdded()
persistedDocument
- the persisted version of the document
protected boolean noteAddedByApproverForCurrentNode(org.kuali.rice.kns.bo.Note note)
note
- the note to see added
protected int getNoteCount(DisbursementVoucherDocument dvDoc)
dvDoc
- a document to find the count of notes on
public DisbursementVoucherDocument getDisbursementVoucherDocumentForValidation()
public void setDisbursementVoucherDocumentForValidation(DisbursementVoucherDocument disbursementVoucherDocumentForValidation)
disbursementVoucherDocumentForValidation
- The disbursementVoucherDocumentForValidation to set.public org.kuali.rice.kew.service.WorkflowInfo getWorkflowInfo()
public void setWorkflowInfo(org.kuali.rice.kew.service.WorkflowInfo workflowInfo)
workflowInfo
- The workflowInfo to set.public org.kuali.rice.kns.service.DocumentService getDocumentService()
public void setDocumentService(org.kuali.rice.kns.service.DocumentService documentService)
documentService
- The documentService to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |