public class AccountDelegateDaoOjb extends org.kuali.rice.core.framework.persistence.ojb.dao.PlatformAwareDaoBaseOjb implements AccountDelegateDao
Constructor and Description |
---|
AccountDelegateDaoOjb() |
Modifier and Type | Method and Description |
---|---|
Iterator<AccountDelegate> |
getAccountDelegationsForPerson(String principalId,
boolean primary)
Retrieves all active account delegates which reference the given user
|
String |
getLockingDocumentNumber(String lockingRepresentation,
String documentNumber)
Retrieves the Document Number of any AccountDelegate locking this record.
|
boolean |
isPrincipalInAnyWayShapeOrFormPrimaryAccountDelegate(String principalId,
Date currentSqlDate)
Determines if the given principal is an active delegate for any non-closed account
|
boolean |
isPrincipalInAnyWayShapeOrFormSecondaryAccountDelegate(String principalId,
Date currentSqlDate)
Determines if the given principal is an active delegate for any non-closed account
|
protected boolean |
queryPrincipalIsAccountDelegate(String principalId,
boolean primary,
Date currentSqlDate)
Determines if any non-closed accounts exist where the principal id is an account delegate
|
getDbPlatform, setDbPlatform
public AccountDelegateDaoOjb()
public String getLockingDocumentNumber(String lockingRepresentation, String documentNumber)
AccountDelegateDao
getLockingDocumentNumber
in interface AccountDelegateDao
lockingRepresentation
- String representation of the MaintanceLock to check against.documentNumber
- the document number being checked against.AccountDelegateDao.getLockingDocumentNumber(java.lang.String, java.lang.String)
public Iterator<AccountDelegate> getAccountDelegationsForPerson(String principalId, boolean primary)
AccountDelegateDao
getAccountDelegationsForPerson
in interface AccountDelegateDao
principalId
- a principal ID of the person to find account delegations forprimary
- whether the account delegates returned should be primary or notorg.kuali.ole.coa.dataaccess.AccountDelegateDao#getAccountDelegationsForPerson(java.lang.String)
public boolean isPrincipalInAnyWayShapeOrFormPrimaryAccountDelegate(String principalId, Date currentSqlDate)
AccountDelegateDao
isPrincipalInAnyWayShapeOrFormPrimaryAccountDelegate
in interface AccountDelegateDao
principalId
- the principal ID to check primary account delegations forAccountDelegateDao.isPrincipalInAnyWayShapeOrFormPrimaryAccountDelegate(java.lang.String, java.sql.Date)
public boolean isPrincipalInAnyWayShapeOrFormSecondaryAccountDelegate(String principalId, Date currentSqlDate)
AccountDelegateDao
isPrincipalInAnyWayShapeOrFormSecondaryAccountDelegate
in interface AccountDelegateDao
principalId
- the principal ID to check secondary account delegations forcurrentSqlDate
- current Sql dateAccountDelegateDao.isPrincipalInAnyWayShapeOrFormSecondaryAccountDelegate(java.lang.String, java.sql.Date)
protected boolean queryPrincipalIsAccountDelegate(String principalId, boolean primary, Date currentSqlDate)
principalId
- the principal id to checkprimary
- whether to check primary delegations (if true) or secondary delegations (if false)currentSqlDate
- current sql dateCopyright © 2004–2014 The Kuali Foundation. All rights reserved.