public interface AccountService
Modifier and Type | Method and Description |
---|---|
boolean |
accountsCanCrossCharts()
Returns true if parameter ACCOUNTS_CAN_CROSS_CHARTS_IND is set to "Y"; otherwise false.
|
Collection<Account> |
getAccountsForAccountNumber(String accountNumber)
Returns the accounts associated with a given account number
|
List |
getAccountsThatUserIsResponsibleFor(org.kuali.rice.kim.api.identity.Person kualiUser)
Fetches the accounts that the user is either the fiscal officer or fiscal officer delegate for.
|
Iterator<Account> |
getActiveAccountsForAccountSupervisor(String principalId)
Retrieves all active accounts from the database where the given principal is the account supervisor
|
Iterator<Account> |
getActiveAccountsForFiscalOfficer(String principalId)
Retrieves all active accounts from the database where the given principal is the fiscal officer
|
Iterator |
getAllAccounts()
get all accounts in the system.
|
Account |
getByPrimaryId(String chartOfAccountsCode,
String accountNumber)
Retrieves an Account object based on primary key.
|
Account |
getByPrimaryIdWithCaching(String chartOfAccountsCode,
String accountNumber)
Method is used by KualiAccountAttribute to enable caching of orgs for routing.
|
String |
getDefaultLaborBenefitRateCategoryCodeForAccountType(String accountTypeCode)
Retrieves the default labor benefit rate category code based on account type code.
|
Iterator<Account> |
getExpiredAccountsForAccountSupervisor(String principalId)
Retrieves all active accounts from the database where the given principal is the account supervisor
|
Iterator<Account> |
getExpiredAccountsForFiscalOfficer(String principalId)
Retrieves all expired accounts from the database where the given principal is the fiscal officer
|
AccountDelegate |
getPrimaryDelegationByExample(AccountDelegate delegateExample,
String totalDollarAmount)
This method retrieves the fiscal officers primary delegate based on the chart, account, and document type specified on the
example, along with the total dollar amount
|
List |
getSecondaryDelegationsByExample(AccountDelegate delegateExample,
String totalDollarAmount)
This method retrieves the fiscal officers secondary delegates based on the chart, account, and document type specified on the
example, along with the total dollar amount
|
Account |
getUniqueAccountForAccountNumber(String accountNumber)
Returns the unique account associated with a given account number.
|
boolean |
hasResponsibilityOnAccount(org.kuali.rice.kim.api.identity.Person kualiUser,
Account account)
Does the given user have responsibilities on the given account?
|
Boolean |
isFridgeBenefitCalculationEnable()
Retrieve the from the parameter if ENABLE_FRINGE_BENEFIT_CALC_BY_BENEFIT_RATE_CATEGORY_IND
is enabled
Default to Boolean.FALSE if it cannot be evaluated or parameter is not defined
|
boolean |
isPrincipalInAnyWayShapeOrFormAccountManager(String principalId)
Determines if the given principal is the account manager of any non-closed account
|
boolean |
isPrincipalInAnyWayShapeOrFormAccountSupervisor(String principalId)
Determines if the given principal is the account supervisor of any non-closed account
|
boolean |
isPrincipalInAnyWayShapeOrFormFiscalOfficer(String principalId)
Determines if the given principal is the fiscal officer of any non-closed account
|
void |
populateAccountingLineChartIfNeeded(AccountingLine line) |
Account getByPrimaryId(String chartOfAccountsCode, String accountNumber)
chartOfAccountsCode
- - Chart of Accounts CodeaccountNumber
- - Account NumberAccount getByPrimaryIdWithCaching(String chartOfAccountsCode, String accountNumber)
AccountDelegate getPrimaryDelegationByExample(AccountDelegate delegateExample, String totalDollarAmount)
delegateExample
- The object that contains the chart, account, and document type that should be used to query the
account delegate tabletotalDollarAmount
- The amount that should be compared to the from and to amount on the account delegate tableList getSecondaryDelegationsByExample(AccountDelegate delegateExample, String totalDollarAmount)
delegateExample
- The object that contains the chart, account, and document type that should be used to query the
account delegate tabletotalDollarAmount
- The amount that should be compared to the from and to amount on the account delegate tableList getAccountsThatUserIsResponsibleFor(org.kuali.rice.kim.api.identity.Person kualiUser)
kualiUser
- boolean hasResponsibilityOnAccount(org.kuali.rice.kim.api.identity.Person kualiUser, Account account)
kualiUser
- the universal user to check responsibilities foraccount
- the account to check responsibilities onIterator getAllAccounts()
Iterator<Account> getActiveAccountsForFiscalOfficer(String principalId)
principalId
- the principal id of the fiscal officerIterator<Account> getExpiredAccountsForFiscalOfficer(String principalId)
principalId
- the principal id of the fiscal officerIterator<Account> getActiveAccountsForAccountSupervisor(String principalId)
principalId
- the principal id of the account supervisorIterator<Account> getExpiredAccountsForAccountSupervisor(String principalId)
principalId
- the principal id of the account supervisorboolean isPrincipalInAnyWayShapeOrFormFiscalOfficer(String principalId)
principalId
- the principal to check for the fiscal officer roleboolean isPrincipalInAnyWayShapeOrFormAccountSupervisor(String principalId)
principalId
- the principal to check for the account supervisor roleboolean isPrincipalInAnyWayShapeOrFormAccountManager(String principalId)
principalId
- the principal to check for the account manager roleCollection<Account> getAccountsForAccountNumber(String accountNumber)
accountNumber
- the account numberString getDefaultLaborBenefitRateCategoryCodeForAccountType(String accountTypeCode)
accountTypeCode
- - The Account Type Code to find the default value forBoolean isFridgeBenefitCalculationEnable()
Account getUniqueAccountForAccountNumber(String accountNumber)
accountNumber
- the account numberboolean accountsCanCrossCharts()
void populateAccountingLineChartIfNeeded(AccountingLine line)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.