org.kuali.kfs.fp.document.validation.impl
Class DisbursementVoucherAccountingLineAccessibleValidation
java.lang.Object
org.kuali.kfs.sys.document.validation.ParameterizedValidation
org.kuali.kfs.sys.document.validation.GenericValidation
org.kuali.kfs.sys.document.validation.impl.AccountingLineAccessibleValidation
org.kuali.kfs.fp.document.validation.impl.DisbursementVoucherAccountingLineAccessibleValidation
- All Implemented Interfaces:
- Validation
public class DisbursementVoucherAccountingLineAccessibleValidation
- extends AccountingLineAccessibleValidation
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
protected static org.apache.log4j.Logger LOG
oldAccountingLineForValidation
protected AccountingLine oldAccountingLineForValidation
DisbursementVoucherAccountingLineAccessibleValidation
public DisbursementVoucherAccountingLineAccessibleValidation()
validate
public boolean validate(AttributedDocumentEvent event)
- Validates that the given accounting line is accessible for editing by the current user. This method expects a
document as the first parameter and an accounting line as the second
- Specified by:
validate
in interface Validation
- Overrides:
validate
in class AccountingLineAccessibleValidation
- Returns:
- true if validation should continue, false otherwise
- See Also:
AccountingLineAccessibleValidation.validate(org.kuali.kfs.sys.document.validation.event.AttributedDocumentEvent)
hasRequiredEditMode
protected boolean hasRequiredEditMode(AccountingDocument accountingDocument,
org.kuali.rice.kim.bo.Person financialSystemUser,
List<String> candidateEditModes)
- determine whether the give user has permission to any edit mode defined in the given candidate edit modes
- Parameters:
accountingDocument
- the given accounting documentfinancialSystemUser
- the given usercandidateEditEditModes
- the given candidate edit modes
- Returns:
- true if the give user has permission to any edit mode defined in the given candidate edit modes; otherwise, false
getCandidateEditModes
protected List<String> getCandidateEditModes()
- define the possibly desired edit modes
- Returns:
- the possibly desired edit modes
accountUnchanged
protected boolean accountUnchanged(AccountingLine pollux,
AccountingLine castor)
- Determines if the two given accounting lines have not have their account changed
- Parameters:
pollux
- the first accounting line to checkcastor
- the second accounting line to check
- Returns:
- true if the account is the same for the two, false otherwise
setOldAccountingLineForValidation
public void setOldAccountingLineForValidation(AccountingLine oldAccountingLineForValidation)
- Sets the oldAccountingLineForValidation attribute value.
- Parameters:
oldAccountingLineForValidation
- The oldAccountingLineForValidation to set.
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.