Class CreateAccountServiceUtil

java.lang.Object
com.skava.accounts.util.CreateAccountServiceUtil

@Service public class CreateAccountServiceUtil extends Object
  • Constructor Details

    • CreateAccountServiceUtil

      @Autowired public CreateAccountServiceUtil(AccountCommonServices accountCommonService)
      Constructor.
  • Method Details

    • create

      public AccountsDO create(AccountsDO accountDO)
      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 type AccountsDO. It contains the attributes required for the creation of Account.
      Returns:
      It returns the object AccountsDO if an account is created. throws ValidateException if any validation error occurs.
    • createAccountProperties

      @Transactional public AccountsEntity createAccountProperties(AccountsEntity account)
    • createCostCentreAndTeam

      @Transactional public void createCostCentreAndTeam(AccountsDO accountDO, AccountsEntity account, List<CostCentreDO> costCentreDO, List<TeamDO> teamDO)
    • createDefaultTeamDO

      public CollectionAttributesEntity createDefaultTeamDO(AccountsEntity account)
      `This method is used to create default teamDO.
      Parameters:
      account -
      Returns:
      attributesEntityCache
    • createDefaultCostcentreDO

      public CollectionAttributesEntity createDefaultCostcentreDO(AccountsEntity account)
      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 - AccountRequestInternal
      accountResponse - Accounts
      Returns:
      It returns list of AccountProperties