org.kuali.kfs.module.ld.util
Class CorrectionDocumentUtils

java.lang.Object
  extended by org.kuali.kfs.module.ld.util.CorrectionDocumentUtils

public class CorrectionDocumentUtils
extends Object

This class provides utility methods for the Labor correction document


Constructor Summary
CorrectionDocumentUtils()
           
 
Method Summary
static boolean doesLaborEntryMatchAnyCriteriaGroups(OriginEntryFull entry, Collection<CorrectionChangeGroup> groups)
          Returns whether the labor entry matches any of the criteria groups
static boolean laborEntryMatchesCriteria(CorrectionCriteria cc, OriginEntryFull oe)
          Returns whether an origin entry matches the passed in criteria.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CorrectionDocumentUtils

public CorrectionDocumentUtils()
Method Detail

laborEntryMatchesCriteria

public static boolean laborEntryMatchesCriteria(CorrectionCriteria cc,
                                                OriginEntryFull oe)
Returns whether an origin entry matches the passed in criteria. If both the criteria and actual value are both String types and are empty, null, or whitespace only, then they will match.

Parameters:
cc - correction criteria to test against origin entry
oe - origin entry to test
Returns:
true if origin entry matches the passed in criteria

doesLaborEntryMatchAnyCriteriaGroups

public static boolean doesLaborEntryMatchAnyCriteriaGroups(OriginEntryFull entry,
                                                           Collection<CorrectionChangeGroup> groups)
Returns whether the labor entry matches any of the criteria groups

Parameters:
entry - labor origin entry
groups - collection of correction change group
Returns:
true if labor origin entry matches any of the criteria groups


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