Class PatchUpdateItemByIdServiceImpl
java.lang.Object
com.skava.subscription.service.impl.PatchUpdateItemByIdServiceImpl
- All Implemented Interfaces:
com.skava.core.EcommService<SubscriptionItemPatchRequest,
,ItemDataResponse> PatchUpdateItemByIdService
@Service
public class PatchUpdateItemByIdServiceImpl
extends Object
implements PatchUpdateItemByIdService
Class PatchUpdateItemByIdServiceImpl
Classs provides the implementation for PatchUpdateItemByIdService
- Author:
- Infosys Equinox
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<com.skava.core.validation.ValidatorComponent>
method getValidatorprocess
(SubscriptionItemPatchRequest subscriptionItemPatchRequest) method processMethods 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
-
Field Details
-
itemRepository
Autowired the item repository.
-
-
Constructor Details
-
PatchUpdateItemByIdServiceImpl
public PatchUpdateItemByIdServiceImpl()
-
-
Method Details
-
getValidator
method getValidator
This method is used to validation the given request.
- Specified by:
getValidator
in interfacecom.skava.core.EcommService<SubscriptionItemPatchRequest,
ItemDataResponse> - Returns:
- List It returns the
ValidatorComponent
.
-
process
@SendEvent(eventType="subscriptionservice/subscriptionitem/patch", identifier="response_itemInfo.id") public ItemDataResponse process(SubscriptionItemPatchRequest subscriptionItemPatchRequest) method process
This method is used to update required field in Item based on given Item details
- Specified by:
process
in interfacecom.skava.core.EcommService<SubscriptionItemPatchRequest,
ItemDataResponse> - Parameters:
subscriptionItemPatchRequest
- It contains the item required to the update required field in Item.- Returns:
- It returns the
ItemDataResponse
.
-