Package com.skava.accounts.util
Class CreateAccountServiceUtil
java.lang.Object
com.skava.accounts.util.CreateAccountServiceUtil
-
Constructor Summary
ConstructorsConstructorDescriptionCreateAccountServiceUtil
(AccountCommonServices accountCommonService) Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncreate
(AccountsDO accountDO) This method is used to create Account based on given Account Request.createAccountProperties
(AccountsEntity account) void
createCostCentreAndTeam
(AccountsDO accountDO, AccountsEntity account, List<CostCentreDO> costCentreDO, List<TeamDO> teamDO) createDefaultCostcentreDO
(AccountsEntity account) This method is used to create default costcentreDO.createDefaultTeamDO
(AccountsEntity account) `This method is used to create default teamDO.static List<AccountProperties>
modifyPropertyList
(AccountRequestInternal request, Accounts accountResponse) modifyPropertyList
-
Constructor Details
-
CreateAccountServiceUtil
Constructor.
-
-
Method Details
-
create
This method is used to create Account based on given Account Request. The status in the request object is checked if its a valid status.- Parameters:
accountDO
- Object of typeAccountsDO
. It contains the attributes required for the creation of Account.- Returns:
- It returns the object
AccountsDO
if an account is created. throwsValidateException
if any validation error occurs.
-
createAccountProperties
-
createCostCentreAndTeam
@Transactional public void createCostCentreAndTeam(AccountsDO accountDO, AccountsEntity account, List<CostCentreDO> costCentreDO, List<TeamDO> teamDO) -
createDefaultTeamDO
`This method is used to create default teamDO.- Parameters:
account
-- Returns:
- attributesEntityCache
-
createDefaultCostcentreDO
This method is used to create default costcentreDO.- Parameters:
account
-- Returns:
- attributesEntityCache
-
modifyPropertyList
public static List<AccountProperties> modifyPropertyList(AccountRequestInternal request, Accounts accountResponse) modifyPropertyList- Parameters:
request
- AccountRequestInternalaccountResponse
- Accounts- Returns:
- It returns list of AccountProperties
-