public class AccountDelegateServiceImpl extends Object implements AccountDelegateService
Modifier and Type | Field and Description |
---|---|
protected org.kuali.rice.core.api.datetime.DateTimeService |
dateTimeService |
Constructor and Description |
---|
AccountDelegateServiceImpl() |
Modifier and Type | Method and Description |
---|---|
FinancialSystemMaintainable |
buildMaintainableForAccountDelegate(AccountDelegate delegate)
Builds an appropriate maintainable with the given account delegate as the business object
|
protected FinancialSystemMaintainable |
getAccountDelegateMaintainable() |
protected Class |
getAccountDelegateMaintainableClass() |
protected Set<String> |
getChangedRoleResponsibilityIds(List<org.kuali.rice.kim.api.role.RoleResponsibility> newRoleResp) |
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.krad.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.krad.bo.PersistableBusinessObject> delegatesToInactivate)
Persists the given account delegate global maintenance document inactivations
|
void |
setAccountDelegateDao(AccountDelegateDao accountDelegateDao) |
void |
setAccountDelegateGlobalDao(AccountDelegateGlobalDao accountDelegateGlobalDao) |
void |
setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService) |
void |
setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService) |
void |
setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService) |
void |
updateDelegationRole()
Updates the role that this delegate is part of, to account for the changes in this delegate
|
protected org.kuali.rice.core.api.datetime.DateTimeService dateTimeService
public AccountDelegateServiceImpl()
public String getLockingDocumentId(AccountDelegateGlobalMaintainableImpl global, String docNumber)
AccountDelegateService
getLockingDocumentId
in interface AccountDelegateService
global
- The AccountDelegateGlobalMaintainableImpl to check against.docNumber
- The document number of the AccountDelegateGlobalMaintainableImpl in question.AccountDelegateService.getLockingDocumentId(org.kuali.ole.coa.document.AccountDelegateGlobalMaintainableImpl,
java.lang.String)
public String getLockingDocumentId(AccountDelegateMaintainableImpl delegate, String docNumber)
AccountDelegateService
getLockingDocumentId
in interface AccountDelegateService
delegate
- The AccountDelegateMaintainableImpl to check against.docNumber
- The document number of the AccountDelegateMaintainableImpl in question.AccountDelegateService.getLockingDocumentId(org.kuali.ole.coa.document.AccountDelegateMaintainableImpl,
java.lang.String)
public FinancialSystemMaintainable buildMaintainableForAccountDelegate(AccountDelegate delegate)
AccountDelegateService
buildMaintainableForAccountDelegate
in interface AccountDelegateService
delegate
- the account delegate to wrap in a maintainableAccountDelegateService.buildMaintainableForAccountDelegate(org.kuali.ole.coa.businessobject.AccountDelegate)
protected Class getAccountDelegateMaintainableClass()
protected FinancialSystemMaintainable getAccountDelegateMaintainable()
public Iterator<AccountDelegate> retrieveAllActiveDelegationsForPerson(String principalId, boolean primary)
AccountDelegateService
retrieveAllActiveDelegationsForPerson
in interface AccountDelegateService
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.service.AccountDelegateService#retrieveAllActiveDelegationsForPerson(java.lang.String)
public boolean isPrincipalInAnyWayShapeOrFormPrimaryAccountDelegate(String principalId)
AccountDelegateService
isPrincipalInAnyWayShapeOrFormPrimaryAccountDelegate
in interface AccountDelegateService
principalId
- the principal ID to check primary account delegations forAccountDelegateService.isPrincipalInAnyWayShapeOrFormPrimaryAccountDelegate(java.lang.String)
public boolean isPrincipalInAnyWayShapeOrFormSecondaryAccountDelegate(String principalId)
AccountDelegateService
isPrincipalInAnyWayShapeOrFormSecondaryAccountDelegate
in interface AccountDelegateService
principalId
- the principal ID to check secondary account delegations forAccountDelegateService.isPrincipalInAnyWayShapeOrFormSecondaryAccountDelegate(java.lang.String)
@Transactional(propagation=REQUIRES_NEW) public void saveForMaintenanceDocument(AccountDelegate accountDelegate)
saveForMaintenanceDocument
in interface AccountDelegateService
accountDelegate
- the account delegate to save@Transactional(propagation=REQUIRES_NEW) public void saveInactivationsForGlobalMaintenanceDocument(List<org.kuali.rice.krad.bo.PersistableBusinessObject> delegatesToInactivate)
saveInactivationsForGlobalMaintenanceDocument
in interface AccountDelegateService
delegatesToInactivate
- the List of delegates to inactivate@Transactional(propagation=REQUIRES_NEW) public void saveChangesForGlobalMaintenanceDocument(List<org.kuali.rice.krad.bo.PersistableBusinessObject> delegatesToChange)
saveChangesForGlobalMaintenanceDocument
in interface AccountDelegateService
delegatesToChange
- the List of delegates to change@Transactional public void updateDelegationRole()
updateDelegationRole
in interface AccountDelegateService
protected Set<String> getChangedRoleResponsibilityIds(List<org.kuali.rice.kim.api.role.RoleResponsibility> newRoleResp)
public void setAccountDelegateDao(AccountDelegateDao accountDelegateDao)
public void setAccountDelegateGlobalDao(AccountDelegateGlobalDao accountDelegateGlobalDao)
public void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
public void setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
public void setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.