public class AccountDaoOjb extends org.kuali.rice.core.framework.persistence.ojb.dao.PlatformAwareDaoBaseOjb implements AccountDao
Constructor and Description |
---|
AccountDaoOjb() |
Modifier and Type | Method and Description |
---|---|
boolean |
determineUserResponsibilityOnAccount(org.kuali.rice.kim.api.identity.Person person,
Account account,
Date currentSqlDate)
This method should determine if the given user has any responsibilities on the given account
|
protected org.apache.ojb.broker.query.Criteria |
getAccountExpiredCriteria(Date currentSqlDate)
Builds a criteria to find expired accounts
|
protected org.apache.ojb.broker.query.Criteria |
getAccountNotExpiredCriteria(Date currentSqlDate)
Builds a criteria to find non-expired accounts
|
Collection<Account> |
getAccountsForAccountNumber(String accountNumber) |
List |
getAccountsThatUserIsResponsibleFor(org.kuali.rice.kim.api.identity.Person person,
Date currentDate)
fetch the accounts that the user is either the fiscal officer or a delegate of the fiscal officer
|
Iterator<Account> |
getActiveAccountsForAccountSupervisor(String principalId,
Date currentSqlDate)
Retrieves all active accounts from the database where the given principal is the account supervisor
|
Iterator<Account> |
getActiveAccountsForFiscalOfficer(String principalId,
Date currentSqlDate)
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 account business object by primary key
|
protected org.apache.ojb.broker.query.Criteria |
getDelegateByExampleCriteria(AccountDelegate delegateExample,
Date currentSqlDate,
String totalDollarAmount,
String accountsDelegatePrmrtIndicator)
This method creates a
Criteria based on Delegate , dollar amount and whether or not it is the primary delegate |
protected List |
getDelegatedResponsibilities(org.kuali.rice.kim.api.identity.Person person,
Date currentDate)
method to get the fo delegated responsibilities for the account
|
Iterator<Account> |
getExpiredAccountsForAccountSupervisor(String principalId,
Date currentSqlDate)
Retrieves all active accounts from the database where the given principal is the account supervisor
|
Iterator<Account> |
getExpiredAccountsForFiscalOfficer(String principalId,
Date currentSqlDate)
Retrieves all expired accounts from the database where the given principal is the fiscal officer
|
protected List |
getFiscalOfficerResponsibilities(org.kuali.rice.kim.api.identity.Person person)
method to get the fo responsibilities for the account
|
List |
getPrimaryDelegationByExample(AccountDelegate delegateExample,
Date currentSqlDate,
String totalDollarAmount)
Resolves the Primary Delegate for the given delegate example.
|
List |
getSecondaryDelegationsByExample(AccountDelegate delegateExample,
Date currentSqlDate,
String totalDollarAmount) |
protected boolean |
hasDelegatedResponsibility(org.kuali.rice.kim.api.identity.Person person,
Account account,
Date currentDate)
This method determines if a user has delegated responsibilities on a given account.
|
protected boolean |
hasFiscalOfficerResponsibility(org.kuali.rice.kim.api.identity.Person person,
Account account)
This method determines if a given user has fiscal officer responsiblity on a 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
|
protected boolean |
queryPrincipalHasAccountRole(String principalId,
String principalRoleName)
Determines if any non-closed accounts exist where the principal id is in the role of the role name
|
getDbPlatform, setDbPlatform
public AccountDaoOjb()
public Account getByPrimaryId(String chartOfAccountsCode, String accountNumber)
chartOfAccountsCode
- - the FIN_COA_CD of the Chart Code that is part of the composite key of AccountaccountNumber
- - the ACCOUNT_NBR part of the composite key of AccontAccountDao
public List getAccountsThatUserIsResponsibleFor(org.kuali.rice.kim.api.identity.Person person, Date currentDate)
getAccountsThatUserIsResponsibleFor
in interface AccountDao
kualiUser
- public boolean determineUserResponsibilityOnAccount(org.kuali.rice.kim.api.identity.Person person, Account account, Date currentSqlDate)
AccountDao
determineUserResponsibilityOnAccount
in interface AccountDao
person
- the user to check responsibilities foraccount
- the account to check responsibilities oncurrentSqlDate
- current Sql dateAccountDao.determineUserResponsibilityOnAccount(org.kuali.rice.kim.api.identity.Person,
org.kuali.ole.coa.businessobject.Account, java.sql.Date)
public List getPrimaryDelegationByExample(AccountDelegate delegateExample, Date currentSqlDate, String totalDollarAmount)
getPrimaryDelegationByExample
in interface AccountDao
org.kuali.ole.coa.dataaccess.AccountDao#getPrimaryDelegationByExample(org.kuali.ole.coa.businessobject.AccountDelegate,
java.lang.String)
public List getSecondaryDelegationsByExample(AccountDelegate delegateExample, Date currentSqlDate, String totalDollarAmount)
getSecondaryDelegationsByExample
in interface AccountDao
org.kuali.ole.coa.dataaccess.AccountDao#getSecondaryDelegationsByExample(org.kuali.ole.coa.businessobject.AccountDelegate,
java.lang.String)
protected org.apache.ojb.broker.query.Criteria getDelegateByExampleCriteria(AccountDelegate delegateExample, Date currentSqlDate, String totalDollarAmount, String accountsDelegatePrmrtIndicator)
Criteria
based on Delegate
, dollar amount and whether or not it is the primary delegatedelegateExample
- totalDollarAmount
- accountsDelegatePrmrtIndicator
- Delegate
Criteria
protected List getFiscalOfficerResponsibilities(org.kuali.rice.kim.api.identity.Person person)
person
- - fiscal officer to check forAccountResponsibility
for this fiscal officerprotected boolean hasFiscalOfficerResponsibility(org.kuali.rice.kim.api.identity.Person person, Account account)
person
- the user to check responsibilities foraccount
- the account to check responsibilities onprotected List getDelegatedResponsibilities(org.kuali.rice.kim.api.identity.Person person, Date currentDate)
person
- - user to check againstAccountResponsibility
objects for a delegateprotected boolean hasDelegatedResponsibility(org.kuali.rice.kim.api.identity.Person person, Account account, Date currentDate)
person
- the user to check responsibilities foraccount
- the account to check responsibilities onpublic Iterator getAllAccounts()
AccountDao
getAllAccounts
in interface AccountDao
AccountDao.getAllAccounts()
public Iterator<Account> getActiveAccountsForAccountSupervisor(String principalId, Date currentSqlDate)
AccountDao
getActiveAccountsForAccountSupervisor
in interface AccountDao
principalId
- the principal id of the account supervisorAccountDao.getActiveAccountsForAccountSupervisor(java.lang.String, java.sql.Date)
public Iterator<Account> getActiveAccountsForFiscalOfficer(String principalId, Date currentSqlDate)
AccountDao
getActiveAccountsForFiscalOfficer
in interface AccountDao
principalId
- the principal id of the fiscal officercurrentSqlDate
- current sql dateorg.kuali.ole.coa.dataaccess.AccountDao#getActiveAccountsForFiscalOfficer(java.lang.String)
public Iterator<Account> getExpiredAccountsForAccountSupervisor(String principalId, Date currentSqlDate)
AccountDao
getExpiredAccountsForAccountSupervisor
in interface AccountDao
principalId
- the principal id of the account supervisorcurrentSqlDate
- current Sql Dateorg.kuali.ole.coa.dataaccess.AccountDao#getExpiredAccountsForAccountSupervisor(java.lang.String)
public Iterator<Account> getExpiredAccountsForFiscalOfficer(String principalId, Date currentSqlDate)
AccountDao
getExpiredAccountsForFiscalOfficer
in interface AccountDao
principalId
- the principal id of the fiscal officercurrentSqlDate
- current Sql Dateorg.kuali.ole.coa.dataaccess.AccountDao#getExpiredAccountsForFiscalOfficer(java.lang.String)
protected org.apache.ojb.broker.query.Criteria getAccountExpiredCriteria(Date currentSqlDate)
protected org.apache.ojb.broker.query.Criteria getAccountNotExpiredCriteria(Date currentSqlDate)
public boolean isPrincipalInAnyWayShapeOrFormAccountManager(String principalId)
AccountDao
isPrincipalInAnyWayShapeOrFormAccountManager
in interface AccountDao
principalId
- the principal to check for the account manager roleAccountDao.isPrincipalInAnyWayShapeOrFormAccountManager(java.lang.String)
protected boolean queryPrincipalHasAccountRole(String principalId, String principalRoleName)
principalId
- the principal id to checkprincipalRoleName
- the name of the field on account to check for the principal id inpublic boolean isPrincipalInAnyWayShapeOrFormAccountSupervisor(String principalId)
AccountDao
isPrincipalInAnyWayShapeOrFormAccountSupervisor
in interface AccountDao
principalId
- the principal to check for the account supervisor roleAccountDao.isPrincipalInAnyWayShapeOrFormAccountSupervisor(java.lang.String)
public boolean isPrincipalInAnyWayShapeOrFormFiscalOfficer(String principalId)
AccountDao
isPrincipalInAnyWayShapeOrFormFiscalOfficer
in interface AccountDao
principalId
- the principal to check for the fiscal officer roleAccountDao.isPrincipalInAnyWayShapeOrFormFiscalOfficer(java.lang.String)
public Collection<Account> getAccountsForAccountNumber(String accountNumber)
getAccountsForAccountNumber
in interface AccountDao
AccountDao.getAccountsForAccountNumber(java.lang.String)
Copyright © 2004–2014 The Kuali Foundation. All rights reserved.