|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.dao.support.DaoSupport
org.springmodules.orm.ojb.support.PersistenceBrokerDaoSupport
org.kuali.rice.kns.dao.impl.PlatformAwareDaoBaseOjb
org.kuali.kfs.coa.dataaccess.impl.AccountDaoOjb
public class AccountDaoOjb
This class is the OJB implementation of the AccountDao interface.
Field Summary |
---|
Fields inherited from class org.springframework.dao.support.DaoSupport |
---|
logger |
Constructor Summary | |
---|---|
AccountDaoOjb()
|
Method Summary | |
---|---|
boolean |
determineUserResponsibilityOnAccount(org.kuali.rice.kim.bo.Person person,
Account account)
This method determines if the given user has any responsibilities on the given account |
protected org.apache.ojb.broker.query.Criteria |
getAccountExpiredCriteria()
Builds a criteria to find expired accounts |
protected org.apache.ojb.broker.query.Criteria |
getAccountNotExpiredCriteria()
Builds a criteria to find non-expired accounts |
Collection<Account> |
getAccountsForAccountNumber(String accountNumber)
|
List |
getAccountsThatUserIsResponsibleFor(org.kuali.rice.kim.bo.Person person)
fetch the accounts that the user is either the fiscal officer or a delegate of the fiscal officer |
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 account business object by primary key |
protected org.apache.ojb.broker.query.Criteria |
getDelegateByExampleCriteria(AccountDelegate delegateExample,
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.bo.Person person)
method to get the fo delegated responsibilities for the account |
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 |
protected List |
getFiscalOfficerResponsibilities(org.kuali.rice.kim.bo.Person person)
method to get the fo responsibilities for the account |
List |
getPrimaryDelegationByExample(AccountDelegate delegateExample,
String totalDollarAmount)
Resolves the Primary Delegate for the given delegate example. |
List |
getSecondaryDelegationsByExample(AccountDelegate delegateExample,
String totalDollarAmount)
|
protected boolean |
hasDelegatedResponsibility(org.kuali.rice.kim.bo.Person person,
Account account)
This method determines if a user has delegated responsibilities on a given account. |
protected boolean |
hasFiscalOfficerResponsibility(org.kuali.rice.kim.bo.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 |
void |
setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
|
Methods inherited from class org.kuali.rice.kns.dao.impl.PlatformAwareDaoBaseOjb |
---|
getDbPlatform, setDbPlatform |
Methods inherited from class org.springmodules.orm.ojb.support.PersistenceBrokerDaoSupport |
---|
checkDaoConfig, convertOjbAccessException, createPersistenceBrokerTemplate, getJcdAlias, getPersistenceBroker, getPersistenceBrokerTemplate, releasePersistenceBroker, setJcdAlias, setPersistenceBrokerTemplate |
Methods inherited from class org.springframework.dao.support.DaoSupport |
---|
afterPropertiesSet, initDao |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AccountDaoOjb()
Method Detail |
---|
public Account getByPrimaryId(String chartOfAccountsCode, String accountNumber)
getByPrimaryId
in interface AccountDao
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 Accont
AccountDao
public List getAccountsThatUserIsResponsibleFor(org.kuali.rice.kim.bo.Person person)
getAccountsThatUserIsResponsibleFor
in interface AccountDao
kualiUser
-
public boolean determineUserResponsibilityOnAccount(org.kuali.rice.kim.bo.Person person, Account account)
determineUserResponsibilityOnAccount
in interface AccountDao
person
- the user to check responsibilities foraccount
- the account to check responsibilities on
public List getPrimaryDelegationByExample(AccountDelegate delegateExample, String totalDollarAmount)
getPrimaryDelegationByExample
in interface AccountDao
AccountDao.getPrimaryDelegationByExample(org.kuali.kfs.coa.businessobject.AccountDelegate,
java.lang.String)
public List getSecondaryDelegationsByExample(AccountDelegate delegateExample, String totalDollarAmount)
getSecondaryDelegationsByExample
in interface AccountDao
AccountDao.getSecondaryDelegationsByExample(org.kuali.kfs.coa.businessobject.AccountDelegate,
java.lang.String)
protected org.apache.ojb.broker.query.Criteria getDelegateByExampleCriteria(AccountDelegate delegateExample, String totalDollarAmount, String accountsDelegatePrmrtIndicator)
Criteria
based on Delegate
, dollar amount and whether or not it is the primary
delegate
delegateExample
- totalDollarAmount
- accountsDelegatePrmrtIndicator
-
Delegate
Criteria
protected List getFiscalOfficerResponsibilities(org.kuali.rice.kim.bo.Person person)
person
- - fiscal officer to check for
AccountResponsibility
for this fiscal officerprotected boolean hasFiscalOfficerResponsibility(org.kuali.rice.kim.bo.Person person, Account account)
person
- the user to check responsibilities foraccount
- the account to check responsibilities on
protected List getDelegatedResponsibilities(org.kuali.rice.kim.bo.Person person)
person
- - user to check against
AccountResponsibility
objects for a delegateprotected boolean hasDelegatedResponsibility(org.kuali.rice.kim.bo.Person person, Account account)
person
- the user to check responsibilities foraccount
- the account to check responsibilities on
public Iterator getAllAccounts()
AccountDao
getAllAccounts
in interface AccountDao
AccountDao.getAllAccounts()
public Iterator<Account> getActiveAccountsForAccountSupervisor(String principalId)
AccountDao
getActiveAccountsForAccountSupervisor
in interface AccountDao
principalId
- the principal id of the account supervisor
AccountDao.getActiveAccountsForAccountSupervisor(java.lang.String)
public Iterator<Account> getActiveAccountsForFiscalOfficer(String principalId)
AccountDao
getActiveAccountsForFiscalOfficer
in interface AccountDao
principalId
- the principal id of the fiscal officer
AccountDao.getActiveAccountsForFiscalOfficer(java.lang.String)
public Iterator<Account> getExpiredAccountsForAccountSupervisor(String principalId)
AccountDao
getExpiredAccountsForAccountSupervisor
in interface AccountDao
principalId
- the principal id of the account supervisor
AccountDao.getExpiredAccountsForAccountSupervisor(java.lang.String)
public Iterator<Account> getExpiredAccountsForFiscalOfficer(String principalId)
AccountDao
getExpiredAccountsForFiscalOfficer
in interface AccountDao
principalId
- the principal id of the fiscal officer
AccountDao.getExpiredAccountsForFiscalOfficer(java.lang.String)
protected org.apache.ojb.broker.query.Criteria getAccountExpiredCriteria()
protected org.apache.ojb.broker.query.Criteria getAccountNotExpiredCriteria()
public boolean isPrincipalInAnyWayShapeOrFormAccountManager(String principalId)
AccountDao
isPrincipalInAnyWayShapeOrFormAccountManager
in interface AccountDao
principalId
- the principal to check for the account manager role
AccountDao.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 in
public boolean isPrincipalInAnyWayShapeOrFormAccountSupervisor(String principalId)
AccountDao
isPrincipalInAnyWayShapeOrFormAccountSupervisor
in interface AccountDao
principalId
- the principal to check for the account supervisor role
AccountDao.isPrincipalInAnyWayShapeOrFormAccountSupervisor(java.lang.String)
public boolean isPrincipalInAnyWayShapeOrFormFiscalOfficer(String principalId)
AccountDao
isPrincipalInAnyWayShapeOrFormFiscalOfficer
in interface AccountDao
principalId
- the principal to check for the fiscal officer role
AccountDao.isPrincipalInAnyWayShapeOrFormFiscalOfficer(java.lang.String)
public void setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
public Collection<Account> getAccountsForAccountNumber(String accountNumber)
getAccountsForAccountNumber
in interface AccountDao
AccountDao.getAccountsForAccountNumber(java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |