Interface ProductPublishAction
- All Superinterfaces:
ProductUpdateAction,ResourceUpdateAction<ProductUpdateAction>
Copies the product data from the Product's staged representation to its current representation and sets the published flag on the resulting ProductCatalogData to true. This makes the current representation retrievable in Product Projection endpoints and indexes it for Product Search.
Produces the ProductPublished Message.
Example to create an instance using the builder pattern
ProductPublishAction productPublishAction = ProductPublishAction.builder()
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ProductPublishActionBuilderbuilder()builder factory method for ProductPublishActionstatic ProductPublishActionBuilderbuilder(ProductPublishAction template) create builder for ProductPublishAction instancecopyDeep()static ProductPublishActiondeepCopy(ProductPublishAction template) factory method to create a deep copy of ProductPublishActiongetScope()AllorPricesstatic ProductPublishActionof()factory methodstatic ProductPublishActionof(ProductPublishAction template) factory method to create a shallow copy ProductPublishActionvoidsetScope(ProductPublishScope scope) AllorPricesstatic com.fasterxml.jackson.core.type.TypeReference<ProductPublishAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithProductPublishAction(Function<ProductPublishAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.product.ProductUpdateAction
getAction, withProductUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
PUBLISH
discriminator value for ProductPublishAction- See Also:
-
-
Method Details
-
getScope
ProductPublishScope getScope()AllorPrices- Returns:
- scope
-
setScope
AllorPrices- Parameters:
scope- value to be set
-
of
factory method- Returns:
- instance of ProductPublishAction
-
of
factory method to create a shallow copy ProductPublishAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ProductPublishAction copyDeep()- Specified by:
copyDeepin interfaceProductUpdateAction
-
deepCopy
factory method to create a deep copy of ProductPublishAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductPublishAction- Returns:
- builder
-
builder
create builder for ProductPublishAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProductPublishAction
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
-