org.kuali.kfs.coa.dataaccess
Interface AccountDao

All Known Implementing Classes:
AccountDaoOjb

public interface AccountDao

This interface defines what methods of data retrieval should be allowed for Account, and AccountDelegate. It also defines a method for checking if a given User is responsible for an Account


Method Summary
 boolean determineUserResponsibilityOnAccount(org.kuali.rice.kim.bo.Person person, Account account)
          This method should determine if the given user has any responsibilities on the given account
 Collection<Account> getAccountsForAccountNumber(String accountNumber)
           
 List getAccountsThatUserIsResponsibleFor(org.kuali.rice.kim.bo.Person kualiUser)
          fetch the AccountResponsibility objects that the user has associated with them
 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)
           
 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
 List getPrimaryDelegationByExample(AccountDelegate delegateExample, String totalDollarAmount)
           
 List getSecondaryDelegationsByExample(AccountDelegate delegateExample, String totalDollarAmount)
           
 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
 

Method Detail

getByPrimaryId

Account getByPrimaryId(String chartOfAccountsCode,
                       String accountNumber)
Parameters:
chartOfAccountsCode - - part of composite key
accountNumber - - part of composite key
Returns:
Account Retrieves an Account object based on primary key.

getPrimaryDelegationByExample

List getPrimaryDelegationByExample(AccountDelegate delegateExample,
                                   String totalDollarAmount)
See Also:
AccountService.getPrimaryDelegationByExample(org.kuali.kfs.coa.businessobject.AccountDelegate, java.lang.String)

getSecondaryDelegationsByExample

List getSecondaryDelegationsByExample(AccountDelegate delegateExample,
                                      String totalDollarAmount)
See Also:
AccountService.getSecondaryDelegationsByExample(org.kuali.kfs.coa.businessobject.AccountDelegate, java.lang.String)

getAccountsThatUserIsResponsibleFor

List getAccountsThatUserIsResponsibleFor(org.kuali.rice.kim.bo.Person kualiUser)
fetch the AccountResponsibility objects that the user has associated with them

Parameters:
kualiUser -
Returns:
a list of AccountResponsibility objects

determineUserResponsibilityOnAccount

boolean determineUserResponsibilityOnAccount(org.kuali.rice.kim.bo.Person person,
                                             Account account)
This method should determine if the given user has any responsibilities on the given account

Parameters:
person - the user to check responsibilities for
account - the account to check responsibilities on
Returns:
true if user is somehow responsible for account, false if otherwise

getAllAccounts

Iterator getAllAccounts()
get all accounts in the system. This is needed by a sufficient funds rebuilder job

Returns:
iterator of all accounts

getActiveAccountsForFiscalOfficer

Iterator<Account> getActiveAccountsForFiscalOfficer(String principalId)
Retrieves all active accounts from the database where the given principal is the fiscal officer

Parameters:
principalId - the principal id of the fiscal officer
Returns:
an Iterator of active Accounts

getExpiredAccountsForFiscalOfficer

Iterator<Account> getExpiredAccountsForFiscalOfficer(String principalId)
Retrieves all expired accounts from the database where the given principal is the fiscal officer

Parameters:
principalId - the principal id of the fiscal officer
Returns:
an Iterator of expired Accounts

getActiveAccountsForAccountSupervisor

Iterator<Account> getActiveAccountsForAccountSupervisor(String principalId)
Retrieves all active accounts from the database where the given principal is the account supervisor

Parameters:
principalId - the principal id of the account supervisor
Returns:
an Iterator of active Accounts

getExpiredAccountsForAccountSupervisor

Iterator<Account> getExpiredAccountsForAccountSupervisor(String principalId)
Retrieves all active accounts from the database where the given principal is the account supervisor

Parameters:
principalId - the principal id of the account supervisor
Returns:
an Iterator of expired Accounts

isPrincipalInAnyWayShapeOrFormFiscalOfficer

boolean isPrincipalInAnyWayShapeOrFormFiscalOfficer(String principalId)
Determines if the given principal is the fiscal officer of any non-closed account

Parameters:
principalId - the principal to check for the fiscal officer role
Returns:
true if the principal is a fiscal officer for any non-closed account, false otherwise

isPrincipalInAnyWayShapeOrFormAccountSupervisor

boolean isPrincipalInAnyWayShapeOrFormAccountSupervisor(String principalId)
Determines if the given principal is the account supervisor of any non-closed account

Parameters:
principalId - the principal to check for the account supervisor role
Returns:
true if the principal is a account supervisor for any non-closed account, false otherwise

isPrincipalInAnyWayShapeOrFormAccountManager

boolean isPrincipalInAnyWayShapeOrFormAccountManager(String principalId)
Determines if the given principal is the account manager of any non-closed account

Parameters:
principalId - the principal to check for the account manager role
Returns:
true if the principal is a account manager for any non-closed account, false otherwise

getAccountsForAccountNumber

Collection<Account> getAccountsForAccountNumber(String accountNumber)


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