|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.kfs.module.external.kc.service.impl.AccountCreationServiceImpl
public class AccountCreationServiceImpl
Field Summary | |
---|---|
protected static String |
ACCT_PREFIX_RESTRICTION
|
protected static org.apache.log4j.Logger |
LOG
|
Constructor Summary | |
---|---|
AccountCreationServiceImpl()
|
Method Summary | |
---|---|
boolean |
accountsCanCrossCharts()
|
protected boolean |
checkAccountNumberPrefix(String accountNumber,
AccountCreationStatusDTO accountCreationStatus)
This method tests whether the accountNumber passed in is prefixed with an allowed prefix, or an illegal one. |
protected boolean |
checkUniqueAccountNumber(String accountNumber)
If accounts can't cross charts, then we need to make sure the account number is unique. |
AccountCreationStatusDTO |
createAccount(AccountParametersDTO accountParameters)
This is the web service method that creates a new account 1. |
Account |
createAccountObject(AccountParametersDTO parameters,
AccountAutoCreateDefaults defaults)
This method creates an account to be used for automatic maintenance document |
protected void |
createAutomaticCGAccountMaintenanceDocument(Account account,
AccountCreationStatusDTO accountCreationStatus)
This method will create a maintenance document for CG account create, set its description and then sets the account business object in it. |
org.kuali.rice.kns.document.Document |
createCGAccountMaintenanceDocument(AccountCreationStatusDTO accountCreationStatus)
This method will use the DocumentService to create a new document. |
protected void |
createRouteAutomaticCGAccountDocument(org.kuali.rice.kns.document.MaintenanceDocument maintenanceAccountDocument,
AccountCreationStatusDTO accountCreationStatus)
This method processes the workflow document actions like save, route and blanket approve depending on the ACCOUNT_AUTO_CREATE_ROUTE system parameter value. |
protected AccountAutoCreateDefaults |
getAccountDefaults(String unitNumber)
This method looks up the default table |
protected org.kuali.rice.kns.service.BusinessObjectService |
getBusinessObjectService()
Gets the businessObjectService attribute. |
protected org.kuali.rice.kns.service.DataDictionaryService |
getDataDictionaryService()
|
protected org.kuali.rice.kns.service.DocumentService |
getDocumentService()
Gets the documentService attribute. |
protected org.kuali.rice.kns.service.ParameterService |
getParameterService()
Gets the parameterService attribute. |
protected boolean |
isValidAccount(Account account,
AccountCreationStatusDTO accountCreationStatus)
Check to see if the main link between KFS and KC is valid, namely the chart and account number. |
boolean |
isValidAccount(String accountNumber)
|
protected boolean |
isValidAccountNumberLength(String accountNumber,
AccountCreationStatusDTO accountCreationStatus)
Checks an account numbers exact length |
boolean |
isValidChartAccount(String chartOfAccountsCode,
String accountNumber)
|
boolean |
isValidChartCode(String chartOfAccountsCode)
|
protected boolean |
isValidUser(String principalId)
This method check to see if the user can create the account maintenance document and set the user session |
void |
setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
Sets the businessObjectService attribute value. |
void |
setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
|
void |
setDocumentService(org.kuali.rice.kns.service.DocumentService documentService)
Sets the documentService attribute value. |
protected void |
setFailStatus(AccountCreationStatusDTO accountCreationStatus,
String message)
|
void |
setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
Sets the parameterService attribute value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static org.apache.log4j.Logger LOG
protected static final String ACCT_PREFIX_RESTRICTION
Constructor Detail |
---|
public AccountCreationServiceImpl()
Method Detail |
---|
public AccountCreationStatusDTO createAccount(AccountParametersDTO accountParameters)
createAccount
in interface AccountCreationService
AccountAutoCreateDefaults
-
public Account createAccountObject(AccountParametersDTO parameters, AccountAutoCreateDefaults defaults)
AccountParametersDTO
-
protected void setFailStatus(AccountCreationStatusDTO accountCreationStatus, String message)
protected void createAutomaticCGAccountMaintenanceDocument(Account account, AccountCreationStatusDTO accountCreationStatus)
org.kuali.kfs.coa.document.service.CreateAccountService#createAutomaticCGAccountMaintenanceDocument()
protected void createRouteAutomaticCGAccountDocument(org.kuali.rice.kns.document.MaintenanceDocument maintenanceAccountDocument, AccountCreationStatusDTO accountCreationStatus)
maintenanceAccountDocument,
- errorMessagespublic org.kuali.rice.kns.document.Document createCGAccountMaintenanceDocument(AccountCreationStatusDTO accountCreationStatus)
AccountCreationStatusDTO
-
protected AccountAutoCreateDefaults getAccountDefaults(String unitNumber)
String
- unitNumber
protected boolean isValidAccount(Account account, AccountCreationStatusDTO accountCreationStatus)
account
- accountCreationStatus
-
public boolean accountsCanCrossCharts()
accountsCanCrossCharts
in interface AccountCreationService
public boolean isValidAccount(String accountNumber)
isValidAccount
in interface AccountCreationService
public boolean isValidChartCode(String chartOfAccountsCode)
isValidChartCode
in interface AccountCreationService
public boolean isValidChartAccount(String chartOfAccountsCode, String accountNumber)
isValidChartAccount
in interface AccountCreationService
protected boolean isValidAccountNumberLength(String accountNumber, AccountCreationStatusDTO accountCreationStatus)
accountNumber
- size
- to be returned
protected boolean checkAccountNumberPrefix(String accountNumber, AccountCreationStatusDTO accountCreationStatus)
accountNumber
- - The Account Number to be tested.
protected boolean checkUniqueAccountNumber(String accountNumber)
accountNumber
-
protected boolean isValidUser(String principalId)
String
- principalId
protected org.kuali.rice.kns.service.DocumentService getDocumentService()
public void setDocumentService(org.kuali.rice.kns.service.DocumentService documentService)
documentService
- protected org.kuali.rice.kns.service.ParameterService getParameterService()
public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
parameterService
- The parameterService to set.protected org.kuali.rice.kns.service.DataDictionaryService getDataDictionaryService()
public void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
businessObjectService
- The businessObjectService to set.protected org.kuali.rice.kns.service.BusinessObjectService getBusinessObjectService()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |