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

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.RequisitionRequiresAccountValidationBranchingValidation
All Implemented Interfaces:
Validation

public class RequisitionRequiresAccountValidationBranchingValidation
extends BranchingValidation


Field Summary
static String NEEDS_ACCOUNT_VALIDATION
           
 
Fields inherited from class org.kuali.kfs.sys.document.validation.BranchingValidation
branchMap, parameterProperties, shouldQuitOnFail
 
Constructor Summary
RequisitionRequiresAccountValidationBranchingValidation()
           
 
Method Summary
protected  String determineBranch(AttributedDocumentEvent event)
          Requisition should only force complete accounting strings under the following cases: any accounts have been entered, document is in "hasAccountingLines" route level, or if document is in "account review" route level.
 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

NEEDS_ACCOUNT_VALIDATION

public static final String NEEDS_ACCOUNT_VALIDATION
See Also:
Constant Field Values
Constructor Detail

RequisitionRequiresAccountValidationBranchingValidation

public RequisitionRequiresAccountValidationBranchingValidation()
Method Detail

determineBranch

protected String determineBranch(AttributedDocumentEvent event)
Requisition should only force complete accounting strings under the following cases: any accounts have been entered, document is in "hasAccountingLines" route level, or if document is in "account review" route level.

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
See Also:
BranchingValidation.determineBranch(org.kuali.kfs.sys.document.validation.event.AttributedDocumentEvent)

getItemForValidation

public PurApItem getItemForValidation()

setItemForValidation

public void setItemForValidation(PurApItem itemForValidation)


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