org.kuali.kfs.coa.service
Interface AccountDelegateService

All Known Implementing Classes:
AccountDelegateServiceImpl

public interface AccountDelegateService

An interface of services to support account delegate logic


Method Summary
 FinancialSystemMaintainable buildMaintainableForAccountDelegate(AccountDelegate delegate)
          Builds an appropriate maintainable with the given account delegate as the business object
 String getLockingDocumentId(AccountDelegateGlobalMaintainableImpl global, String docNumber)
          This method checks for any MaintenanceLocks that would block the creation of this document
 String getLockingDocumentId(AccountDelegateMaintainableImpl delegate, String docNumber)
          This method checks for any MaintenanceLocks that would block the creation of this document
 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
 Iterator<AccountDelegate> retrieveAllActiveDelegationsForPerson(String principalId, boolean primary)
          Retrieves all active account delegations which delegate to the given Person
 void saveChangesForGlobalMaintenanceDocument(List<org.kuali.rice.kns.bo.PersistableBusinessObject> delegatesToChange)
          Persists the given account delegate global maintenance document changes
 void saveForMaintenanceDocument(AccountDelegate accountDelegate)
          Saves the given account delegate to the persistence store
 void saveInactivationsForGlobalMaintenanceDocument(List<org.kuali.rice.kns.bo.PersistableBusinessObject> delegatesToInactivate)
          Persists the given account delegate global maintenance document inactivations
 void updateDelegationRole()
          Updates the role that this delegate is part of, to account for the changes in this delegate
 

Method Detail

getLockingDocumentId

String getLockingDocumentId(AccountDelegateGlobalMaintainableImpl global,
                            String docNumber)
This method checks for any MaintenanceLocks that would block the creation of this document

Parameters:
global - The AccountDelegateGlobalMaintainableImpl to check against.
docNumber - The document number of the AccountDelegateGlobalMaintainableImpl in question.
Returns:
the documentNumber of the locking record or null if none.

getLockingDocumentId

String getLockingDocumentId(AccountDelegateMaintainableImpl delegate,
                            String docNumber)
This method checks for any MaintenanceLocks that would block the creation of this document

Parameters:
delegate - The AccountDelegateMaintainableImpl to check against.
docNumber - The document number of the AccountDelegateMaintainableImpl in question.
Returns:
the documentNumber of the locking record or null if none.

buildMaintainableForAccountDelegate

FinancialSystemMaintainable buildMaintainableForAccountDelegate(AccountDelegate delegate)
Builds an appropriate maintainable with the given account delegate as the business object

Parameters:
delegate - the account delegate to wrap in a maintainable
Returns:
an appropriate maintainable

retrieveAllActiveDelegationsForPerson

Iterator<AccountDelegate> retrieveAllActiveDelegationsForPerson(String principalId,
                                                                boolean primary)
Retrieves all active account delegations which delegate to the given Person

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 List of AccountDelegate business objects, representing that person's delegations

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

saveForMaintenanceDocument

void saveForMaintenanceDocument(AccountDelegate accountDelegate)
Saves the given account delegate to the persistence store

Parameters:
accountDelegate - the account delegate to save

saveInactivationsForGlobalMaintenanceDocument

void saveInactivationsForGlobalMaintenanceDocument(List<org.kuali.rice.kns.bo.PersistableBusinessObject> delegatesToInactivate)
Persists the given account delegate global maintenance document inactivations

Parameters:
delegatesToInactivate - the List of delegates to inactivate

saveChangesForGlobalMaintenanceDocument

void saveChangesForGlobalMaintenanceDocument(List<org.kuali.rice.kns.bo.PersistableBusinessObject> delegatesToChange)
Persists the given account delegate global maintenance document changes

Parameters:
delegatesToChange - the List of delegates to change

updateDelegationRole

void updateDelegationRole()
Updates the role that this delegate is part of, to account for the changes in this delegate



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