org.kuali.kfs.coa.dataaccess
Interface AccountDelegateDao

All Known Implementing Classes:
AccountDelegateDaoOjb

public interface AccountDelegateDao


Method Summary
 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)
          Determines if the given principal is an active delegate for any non-closed account
 boolean isPrincipalInAnyWayShapeOrFormSecondaryAccountDelegate(String principalId)
          Determines if the given principal is an active delegate for any non-closed account
 

Method Detail

getLockingDocumentNumber

String getLockingDocumentNumber(String lockingRepresentation,
                                String documentNumber)
Retrieves the Document Number of any AccountDelegate locking this record.

Parameters:
lockingRepresentation - String representation of the MaintanceLock to check against.
documentNumber - the document number being checked against.
Returns:
the document number of the Document locking this record.

getAccountDelegationsForPerson

Iterator<AccountDelegate> getAccountDelegationsForPerson(String principalId,
                                                         boolean primary)
Retrieves all active account delegates which reference the given user

Parameters:
principalId - a principal ID of the person to find account delegations for
primary - whether the account delegates returned should be primary or not
Returns:
a Collection, presumably of AccountDelegates

isPrincipalInAnyWayShapeOrFormPrimaryAccountDelegate

boolean isPrincipalInAnyWayShapeOrFormPrimaryAccountDelegate(String principalId)
Determines if the given principal is an active delegate for any non-closed account

Parameters:
principalId - the principal ID to check primary account delegations for
Returns:
true if the principal is a primary account delegate, false otherwise

isPrincipalInAnyWayShapeOrFormSecondaryAccountDelegate

boolean isPrincipalInAnyWayShapeOrFormSecondaryAccountDelegate(String principalId)
Determines if the given principal is an active delegate for any non-closed account

Parameters:
principalId - the principal ID to check secondary account delegations for
Returns:
true if the principal is a secondary account delegate, false otherwise


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