|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.kfs.module.ec.document.validation.impl.LedgerBalanceFieldValidator
public class LedgerBalanceFieldValidator
The validator provides a set of facilities to determine whether the given ledger balances meet the specified requirements. As a pattern, null would be returned if the requirements are met; otherwise, return an error message.
Constructor Summary | |
---|---|
LedgerBalanceFieldValidator()
|
Method Summary | |
---|---|
static SubFundGroup |
getSubFundGroup(LaborLedgerBalance ledgerBalance)
get the sub fund group associated with the given ledger balance |
static Message |
hasFederalFunds(Collection<LaborLedgerBalance> ledgerBalances,
List<String> federalAgencyTypeCodes)
determine whether there is at least one account of the given ledger balances that is funded by a federal grant. |
static Message |
hasGrantAccount(Collection<LaborLedgerBalance> ledgerBalances)
check if there is at least one account of the given ledger balances that has a fund group code or subfund group code that is in the specifed group codes. |
static Message |
hasValidAccount(LaborLedgerBalance ledgerBalance)
check if the given ledger balance has an account qualified for effort reporting |
static Message |
isFromSingleOrganization(Collection<LaborLedgerBalance> ledgerBalances)
determine if the given ledger balances have the accounts that belong to multiple organizations |
static Message |
isInFundGroups(LaborLedgerBalance ledgerBalance,
List<String> fundGroupCodes)
detetermine if the fund group code associated with the given ledger balance is in the given fund group codes |
static Message |
isInSubFundGroups(LaborLedgerBalance ledgerBalance,
List<String> subFundGroupCodes)
detetermine if the sub fund group code associated with the given ledger balance is in the given sub fund group codes |
static Message |
isNonZeroAmountBalanceWithinReportPeriod(LaborLedgerBalance ledgerBalance,
Map<Integer,Set<String>> reportPeriods)
determine if the total amount within the specified periods of the given ledger balance is ZERO |
static Message |
isTotalAmountPositive(Collection<LaborLedgerBalance> ledgerBalances,
Map<Integer,Set<String>> reportPeriods)
determine if the total amount within the specified periods of the given ledger balances is positive |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LedgerBalanceFieldValidator()
Method Detail |
---|
public static Message hasValidAccount(LaborLedgerBalance ledgerBalance)
ledgerBalance
- the given ledger balance
public static Message isInFundGroups(LaborLedgerBalance ledgerBalance, List<String> fundGroupCodes)
ledgerBalance
- the given ledger balancefundGroupCodes
- the given fund group codes
public static Message isInSubFundGroups(LaborLedgerBalance ledgerBalance, List<String> subFundGroupCodes)
ledgerBalance
- the given ledger balancesubFundGroupCodes
- the given sub fund group codes
public static Message isNonZeroAmountBalanceWithinReportPeriod(LaborLedgerBalance ledgerBalance, Map<Integer,Set<String>> reportPeriods)
ledgerBalance
- the given ledger balancereportPeriods
- the specified periods
public static Message isTotalAmountPositive(Collection<LaborLedgerBalance> ledgerBalances, Map<Integer,Set<String>> reportPeriods)
ledgerBalance
- the given ledger balancereportPeriods
- the specified periods
public static Message hasGrantAccount(Collection<LaborLedgerBalance> ledgerBalances)
ledgerBalances
- the given ledger balances
public static Message hasFederalFunds(Collection<LaborLedgerBalance> ledgerBalances, List<String> federalAgencyTypeCodes)
the
- given labor ledger balancesfederalAgencyTypeCodes
- the given federal agency type codes
public static Message isFromSingleOrganization(Collection<LaborLedgerBalance> ledgerBalances)
ledgerBalance
- the given ledger balance
public static SubFundGroup getSubFundGroup(LaborLedgerBalance ledgerBalance)
ledgerBalance
- the given ledger balance
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |