|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AccountService
This interface defines methods that an Account Service must provide
Method Summary | |
---|---|
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.bo.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. |
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.bo.Person kualiUser,
Account account)
Does the given user have responsibilities on the given account? |
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)
|
Method Detail |
---|
Account getByPrimaryId(String chartOfAccountsCode, String accountNumber)
chartOfAccountsCode
- - Chart of Accounts CodeaccountNumber
- - Account Number
Account getByPrimaryIdWithCaching(String chartOfAccountsCode, String accountNumber)
getByPrimaryId(java.lang.String, java.lang.String)
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 table
List 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 table
List getAccountsThatUserIsResponsibleFor(org.kuali.rice.kim.bo.Person kualiUser)
kualiUser
-
boolean hasResponsibilityOnAccount(org.kuali.rice.kim.bo.Person kualiUser, Account account)
kualiUser
- the universal user to check responsibilities foraccount
- the account to check responsibilities on
Iterator getAllAccounts()
Iterator<Account> getActiveAccountsForFiscalOfficer(String principalId)
principalId
- the principal id of the fiscal officer
Iterator<Account> getExpiredAccountsForFiscalOfficer(String principalId)
principalId
- the principal id of the fiscal officer
Iterator<Account> getActiveAccountsForAccountSupervisor(String principalId)
principalId
- the principal id of the account supervisor
Iterator<Account> getExpiredAccountsForAccountSupervisor(String principalId)
principalId
- the principal id of the account supervisor
boolean isPrincipalInAnyWayShapeOrFormFiscalOfficer(String principalId)
principalId
- the principal to check for the fiscal officer role
boolean isPrincipalInAnyWayShapeOrFormAccountSupervisor(String principalId)
principalId
- the principal to check for the account supervisor role
boolean isPrincipalInAnyWayShapeOrFormAccountManager(String principalId)
principalId
- the principal to check for the account manager role
Collection<Account> getAccountsForAccountNumber(String accountNumber)
accountNumber
- the account number
Account getUniqueAccountForAccountNumber(String accountNumber)
accountNumber
- the account number
boolean accountsCanCrossCharts()
void populateAccountingLineChartIfNeeded(AccountingLine line)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |