Interface ExtensionTrigger
public interface ExtensionTrigger
ExtensionTrigger
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ExtensionTrigger extensionTrigger = ExtensionTrigger.builder()
.resourceTypeId(ExtensionResourceTypeId.CART)
.plusActions(actionsBuilder -> actionsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExtensionTriggerBuilderbuilder()builder factory method for ExtensionTriggerstatic ExtensionTriggerBuilderbuilder(ExtensionTrigger template) create builder for ExtensionTrigger instancecopyDeep()static ExtensionTriggerdeepCopy(ExtensionTrigger template) factory method to create a deep copy of ExtensionTrigger@NotNull List<ExtensionAction>CreateandUpdaterequests are supported.Valid predicate that controls the conditions under which the API Extension is called.@NotNull ExtensionResourceTypeIdThe resource that triggers the Extension.static ExtensionTriggerof()factory methodstatic ExtensionTriggerof(ExtensionTrigger template) factory method to create a shallow copy ExtensionTriggervoidsetActions(ExtensionAction... actions) CreateandUpdaterequests are supported.voidsetActions(List<ExtensionAction> actions) CreateandUpdaterequests are supported.voidsetCondition(String condition) Valid predicate that controls the conditions under which the API Extension is called.voidsetResourceTypeId(ExtensionResourceTypeId resourceTypeId) The resource that triggers the Extension.static com.fasterxml.jackson.core.type.TypeReference<ExtensionTrigger>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithExtensionTrigger(Function<ExtensionTrigger, T> helper) accessor map function
-
Method Details
-
getResourceTypeId
The resource that triggers the Extension.
- Returns:
- resourceTypeId
-
getActions
CreateandUpdaterequests are supported.- Returns:
- actions
-
getCondition
String getCondition()Valid predicate that controls the conditions under which the API Extension is called. The Extension is not triggered when the specified condition is not fulfilled.
- Returns:
- condition
-
setResourceTypeId
The resource that triggers the Extension.
- Parameters:
resourceTypeId- value to be set
-
setActions
CreateandUpdaterequests are supported.- Parameters:
actions- values to be set
-
setActions
CreateandUpdaterequests are supported.- Parameters:
actions- values to be set
-
setCondition
Valid predicate that controls the conditions under which the API Extension is called. The Extension is not triggered when the specified condition is not fulfilled.
- Parameters:
condition- value to be set
-
of
factory method- Returns:
- instance of ExtensionTrigger
-
of
factory method to create a shallow copy ExtensionTrigger- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ExtensionTrigger copyDeep() -
deepCopy
factory method to create a deep copy of ExtensionTrigger- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ExtensionTrigger- Returns:
- builder
-
builder
create builder for ExtensionTrigger instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withExtensionTrigger
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-