|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.kfs.coa.service.impl.AccountDelegateServiceImpl
public class AccountDelegateServiceImpl
The default implementation of AccountDelegateService.
Constructor Summary | |
---|---|
AccountDelegateServiceImpl()
|
Method Summary | |
---|---|
FinancialSystemMaintainable |
buildMaintainableForAccountDelegate(AccountDelegate delegate)
Builds an appropriate maintainable with the given account delegate as the business object |
AccountDelegateDao |
getAccountDelegateDao()
Gets the accountDelegateDao attribute. |
AccountDelegateGlobalDao |
getAccountDelegateGlobalDao()
Gets the accountDelegateGlobalDao attribute. |
protected FinancialSystemMaintainable |
getAccountDelegateMaintainable()
|
protected Class<? extends org.kuali.rice.kns.maintenance.Maintainable> |
getAccountDelegateMaintainableClass()
|
org.kuali.rice.kns.service.BusinessObjectService |
getBusinessObjectService()
Gets the businessObjectService attribute. |
org.kuali.rice.kns.service.DataDictionaryService |
getDataDictionaryService()
Gets the dataDictionaryService attribute. |
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 |
setAccountDelegateDao(AccountDelegateDao accountDelegateDao)
Sets the accountDelegateDao attribute value. |
void |
setAccountDelegateGlobalDao(AccountDelegateGlobalDao accountDelegateGlobalDao)
Sets the accountDelegateGlobalDao attribute value. |
void |
setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
Sets the businessObjectService attribute value. |
void |
setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
Sets the dataDictionaryService attribute value. |
void |
updateDelegationRole()
Updates the role that this delegate is part of, to account for the changes in this delegate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AccountDelegateServiceImpl()
Method Detail |
---|
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.kfs.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.kfs.coa.document.AccountDelegateMaintainableImpl, java.lang.String)
public FinancialSystemMaintainable buildMaintainableForAccountDelegate(AccountDelegate delegate)
AccountDelegateService
buildMaintainableForAccountDelegate
in interface AccountDelegateService
delegate
- the account delegate to wrap in a maintainable
AccountDelegateService.buildMaintainableForAccountDelegate(org.kuali.kfs.coa.businessobject.AccountDelegate)
protected Class<? extends org.kuali.rice.kns.maintenance.Maintainable> 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 not
org.kuali.kfs.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 for
AccountDelegateService.isPrincipalInAnyWayShapeOrFormPrimaryAccountDelegate(java.lang.String)
public boolean isPrincipalInAnyWayShapeOrFormSecondaryAccountDelegate(String principalId)
AccountDelegateService
isPrincipalInAnyWayShapeOrFormSecondaryAccountDelegate
in interface AccountDelegateService
principalId
- the principal ID to check secondary account delegations for
AccountDelegateService.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.kns.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.kns.bo.PersistableBusinessObject> delegatesToChange)
saveChangesForGlobalMaintenanceDocument
in interface AccountDelegateService
delegatesToChange
- the List of delegates to change@Transactional public void updateDelegationRole()
updateDelegationRole
in interface AccountDelegateService
public AccountDelegateDao getAccountDelegateDao()
public void setAccountDelegateDao(AccountDelegateDao accountDelegateDao)
accountDelegateDao
- The accountDelegateDao to set.public AccountDelegateGlobalDao getAccountDelegateGlobalDao()
public void setAccountDelegateGlobalDao(AccountDelegateGlobalDao accountDelegateGlobalDao)
accountDelegateGlobalDao
- The accountDelegateGlobalDao to set.public org.kuali.rice.kns.service.DataDictionaryService getDataDictionaryService()
public void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
dataDictionaryService
- The dataDictionaryService to set.public org.kuali.rice.kns.service.BusinessObjectService getBusinessObjectService()
public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
businessObjectService
- The businessObjectService to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |