Package com.skava.accounts.service.impl
Class CreateCostCentreServiceImpl
java.lang.Object
com.skava.accounts.service.impl.CreateCostCentreServiceImpl
- All Implemented Interfaces:
CreateCostCentreService
,com.skava.core.EcommService<CostCentreRequestInternal,
CostCentreAPIResponse>
The Class CreateCostCentreServiceImpl is used for creating cost centre based on the provided information.
- Author:
- Infosys Equinox
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate
(CostCentreDO costCentreDO) This method is used to create CostCentre based on given CostCentre Request parameters.List<com.skava.core.validation.ValidatorComponent>
process
(CostCentreRequestInternal request) 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
-
CreateCostCentreServiceImpl
public CreateCostCentreServiceImpl()
-
-
Method Details
-
getValidator
- Specified by:
getValidator
in interfacecom.skava.core.EcommService<CostCentreRequestInternal,
CostCentreAPIResponse>
-
process
@Transactional @SendEvent(eventType="accountservice/costcentre/create", identifier="response_costCentre.id") public CostCentreAPIResponse process(CostCentreRequestInternal request) - Specified by:
process
in interfaceCreateCostCentreService
- Specified by:
process
in interfacecom.skava.core.EcommService<CostCentreRequestInternal,
CostCentreAPIResponse>
-
create
This method is used to create CostCentre based on given CostCentre Request parameters. The status given in the request is validated and only if its valid the CostCentre is created.- Parameters:
costCentreDO
- Object of typeCostCentreDO
. It consists of the params required to create a CostCentre.- Returns:
- the object of type
CostCentreDO
throwsValidateException
if any validation error occurs.
-