public class DisbursementVoucherCampusSpecialHandlingValidation extends GenericValidation
Modifier and Type | Field and Description |
---|---|
protected DisbursementVoucherDocument |
disbursementVoucherDocumentForValidation |
static String |
DOCUMENT_EDITOR_ROLE_NAME |
protected org.kuali.rice.krad.service.DocumentService |
documentService |
Constructor and Description |
---|
DisbursementVoucherCampusSpecialHandlingValidation() |
Modifier and Type | Method and Description |
---|---|
DisbursementVoucherDocument |
getDisbursementVoucherDocumentForValidation()
Gets the disbursementVoucherDocumentForValidation attribute.
|
org.kuali.rice.krad.service.DocumentService |
getDocumentService() |
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
|
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.krad.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.krad.service.DocumentService documentService)
Sets the documentService attribute value.
|
boolean |
validate(AttributedDocumentEvent event)
Carries out the validation
|
setQuitOnFail, shouldQuitOnFail, stageValidation
getParameterProperties, populateParameterFromEvent, populateParametersFromEvent, setParameterProperties
protected DisbursementVoucherDocument disbursementVoucherDocumentForValidation
protected org.kuali.rice.krad.service.DocumentService documentService
public static final String DOCUMENT_EDITOR_ROLE_NAME
public DisbursementVoucherCampusSpecialHandlingValidation()
public boolean validate(AttributedDocumentEvent event)
Validation.validate(org.kuali.ole.sys.document.validation.event.AttributedDocumentEvent)
protected boolean isAtNodeToCheck()
protected DisbursementVoucherDocument getPersistedDisbursementVoucherDocument()
document
- the document to find the persisted version ofprotected boolean isSpecialHandlingChanged(DisbursementVoucherDocument persistedDocument)
persistedDocument
- the persisted version of the documentprotected boolean isNoteAdded()
persistedDocument
- the persisted version of the documentprotected boolean noteAddedByApproverForCurrentNode(org.kuali.rice.krad.bo.Note note)
note
- the note to see addedprotected int getNoteCount(DisbursementVoucherDocument dvDoc)
dvDoc
- a document to find the count of notes onpublic DisbursementVoucherDocument getDisbursementVoucherDocumentForValidation()
public void setDisbursementVoucherDocumentForValidation(DisbursementVoucherDocument disbursementVoucherDocumentForValidation)
disbursementVoucherDocumentForValidation
- The disbursementVoucherDocumentForValidation to set.public void setDocumentService(org.kuali.rice.krad.service.DocumentService documentService)
documentService
- The documentService to set.public org.kuali.rice.krad.service.DocumentService getDocumentService()
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.