Package com.skava.list.service.impl
Class PatchUpdateListItemPropertiesServiceImpl
java.lang.Object
com.skava.list.service.impl.PatchUpdateListItemPropertiesServiceImpl
- All Implemented Interfaces:
com.skava.core.EcommService<ListItemRequestInternal,
,ListItemResponse> PatchUpdateListItemPropertiesService
@Service
public class PatchUpdateListItemPropertiesServiceImpl
extends Object
implements PatchUpdateListItemPropertiesService
PatchUpdateListItemPropertiesServiceImpl class
This class contain constants that are used to write a implementation class for property update of list item.
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new delete list item properties service impl.PatchUpdateListItemPropertiesServiceImpl
(ListWiredServices listWiredServices) -
Method Summary
Modifier and TypeMethodDescriptionList<com.skava.core.validation.ValidatorComponent>
methodFallback
(ListItemRequestInternal request) Fall back process if there is any exception in the execution of the process.process
(ListItemRequestInternal request) This method is used to create Properties based on given Properties.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
-
PatchUpdateListItemPropertiesServiceImpl
-
PatchUpdateListItemPropertiesServiceImpl
public PatchUpdateListItemPropertiesServiceImpl()Instantiates a new delete list item properties service impl.
-
-
Method Details
-
getValidator
@ValidatorEvent(serviceName="list", webhookName="listservice/validator/listproperties", actionType="patch") public List<com.skava.core.validation.ValidatorComponent> getValidator()- Specified by:
getValidator
in interfacecom.skava.core.EcommService<ListItemRequestInternal,
ListItemResponse>
-
process
@HystrixCommand(commandKey="list-key", fallbackMethod="methodFallback", commandProperties=@HystrixProperty(name="execution.isolation.strategy",value="SEMAPHORE"), ignoreExceptions={com.skava.core.validation.ValidateException.class,com.skava.core.ECommerceException.class}) @SendEvent(eventType="listservice/listitemproperties/patch", identifier="response_listItems.id") public ListItemResponse process(ListItemRequestInternal request) This method is used to create Properties based on given Properties.- Specified by:
process
in interfacecom.skava.core.EcommService<ListItemRequestInternal,
ListItemResponse> - Parameters:
request
- It contains the attributes required for the creation of Properties.- Returns:
- It returns the
PropertiesResponse
.
-
methodFallback
Fall back process if there is any exception in the execution of the process.- Parameters:
request
- The request for the process- Returns:
- The response from the fall back process.
-