org.kuali.kfs.module.purap.document.validation.impl
Class PurchaseOrderAmendmentProcessAccountValidation

java.lang.Object
  extended by org.kuali.kfs.sys.document.validation.ParameterizedValidation
      extended by org.kuali.kfs.sys.document.validation.BranchingValidation
          extended by org.kuali.kfs.module.purap.document.validation.impl.PurchaseOrderAmendmentProcessAccountValidation
All Implemented Interfaces:
Validation

public class PurchaseOrderAmendmentProcessAccountValidation
extends BranchingValidation


Field Summary
protected  PurApItem itemForValidation
           
protected  String PROCESS_ACCOUNT_VALIDATION
           
 
Fields inherited from class org.kuali.kfs.sys.document.validation.BranchingValidation
branchMap, parameterProperties, shouldQuitOnFail
 
Constructor Summary
PurchaseOrderAmendmentProcessAccountValidation()
           
 
Method Summary
protected  String determineBranch(AttributedDocumentEvent event)
          Overrides the method in PurchasingProcessAccountValidation to provide additional validation condition.
 PurApItem getItemForValidation()
           
 void setItemForValidation(PurApItem itemForValidation)
           
 
Methods inherited from class org.kuali.kfs.sys.document.validation.BranchingValidation
getBranchMap, getParameterProperties, setBranchMap, setParameterProperties, setShouldQuitOnFail, shouldQuitOnFail, stageValidation, validate
 
Methods inherited from class org.kuali.kfs.sys.document.validation.ParameterizedValidation
populateParameterFromEvent, populateParametersFromEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROCESS_ACCOUNT_VALIDATION

protected final String PROCESS_ACCOUNT_VALIDATION
See Also:
Constant Field Values

itemForValidation

protected PurApItem itemForValidation
Constructor Detail

PurchaseOrderAmendmentProcessAccountValidation

public PurchaseOrderAmendmentProcessAccountValidation()
Method Detail

determineBranch

protected String determineBranch(AttributedDocumentEvent event)
Overrides the method in PurchasingProcessAccountValidation to provide additional validation condition. If the accounts on the item are editable in the amendment document then we should continue doing the processAccountValidation in the superclass, otherwise we should just return true so that the account won't be validated, because if the items contain accounts that aren't editable, it doesn't make sense to give the user account validation errors.

Specified by:
determineBranch in class BranchingValidation
Parameters:
event - the event which triggered this validation
Returns:
the name of the branch to take, or a null or empty string to not take any branch and simply pass validation as true

getItemForValidation

public PurApItem getItemForValidation()

setItemForValidation

public void setItemForValidation(PurApItem itemForValidation)


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.