Package com.skava.accounts.service.impl
Class UpdateCostCentreServiceImpl
java.lang.Object
com.skava.accounts.service.impl.UpdateCostCentreServiceImpl
- All Implemented Interfaces:
UpdateCostCentreService
,com.skava.core.EcommService<CostCentreRequestInternal,
CostCentreAPIResponse>
The Class UpdateCostCentreServiceImpl is used to update
a costcentre based on the provided information.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<com.skava.core.validation.ValidatorComponent>
process
(CostCentreRequestInternal request) update
(CostCentreDO costCentreDO, CostCentreRequestInternal request) Update.updateCostCentreFromDO
(CostCentreDO costCentreDO, CostCentreEntity costCentreEntity) updateCostCentreFromDO.void
updatePropertiesForCollection
(CostCentreEntity costCentreEntity, List<BudgetDO> budgets, String locale) Update budgets for collection.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.skava.core.EcommService
getValidateException, getValidator
-
Constructor Details
-
UpdateCostCentreServiceImpl
public UpdateCostCentreServiceImpl()
-
-
Method Details
-
getValidator
- Specified by:
getValidator
in interfacecom.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 interfacecom.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 DOcostCentreEntity
- 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 entitybudgets
- the budgetslocale
- API Response and error messages will be responded in the locale mentioned in this parameter.
-