Class UpdateCostCentreServiceImpl

java.lang.Object
com.skava.accounts.service.impl.UpdateCostCentreServiceImpl
All Implemented Interfaces:
UpdateCostCentreService, com.skava.core.EcommService<CostCentreRequestInternal,CostCentreAPIResponse>

@Service public class UpdateCostCentreServiceImpl extends Object implements UpdateCostCentreService
The Class UpdateCostCentreServiceImpl is used to update a costcentre based on the provided information.
  • Constructor Details

    • UpdateCostCentreServiceImpl

      public UpdateCostCentreServiceImpl()
  • Method Details

    • getValidator

      public List<com.skava.core.validation.ValidatorComponent> getValidator()
      Specified by:
      getValidator in interface com.skava.core.EcommService<CostCentreRequestInternal,CostCentreAPIResponse>
    • process

      @Transactional @SendEvent(eventType="accountservice/costcentre/patch", identifier="response_costCentre.id") public CostCentreAPIResponse process(CostCentreRequestInternal request)
      Specified by:
      process in interface com.skava.core.EcommService<CostCentreRequestInternal,CostCentreAPIResponse>
    • update

      @Transactional public CostCentreDO update(CostCentreDO costCentreDO, CostCentreRequestInternal request)
      Update.
      Parameters:
      costCentreDO - the cost centre DO
      Returns:
      the cost centre DO throws ValidateException if any validation error occurs.
    • updateCostCentreFromDO

      @Transactional public CostCentreEntity updateCostCentreFromDO(CostCentreDO costCentreDO, CostCentreEntity costCentreEntity)
      updateCostCentreFromDO.
      Parameters:
      costCentreDO - the cost centre DO
      costCentreEntity - the cost centre entity
      Returns:
      the cost centre entity throws ValidateException if any validation error occurs.
    • updatePropertiesForCollection

      @Transactional public void updatePropertiesForCollection(CostCentreEntity costCentreEntity, List<BudgetDO> budgets, String locale)
      Update budgets for collection.
      Parameters:
      costCentreEntity - the collection entity
      budgets - the budgets
      locale - API Response and error messages will be responded in the locale mentioned in this parameter.