Interface ProductPublishScope
- All Superinterfaces:
JsonEnum
- All Known Implementing Classes:
ProductPublishScope.ProductPublishScopeEnum
The scope controls which part of the product information is published.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
possible values of ProductPublishScope -
Field Summary
Modifier and TypeFieldDescriptionstatic final ProductPublishScope
Publishes a Product that causes the staged projection of the Product to override the current projection.static final ProductPublishScope
Publishes the Prices of the Product (only if the Product is already published). -
Method Summary
Modifier and TypeMethodDescriptionstatic ProductPublishScope
factory method for a enum value of ProductPublishScope if no enum has been found an anonymous instance will be createdstatic Optional<ProductPublishScope>
findEnumViaJsonName
(String jsonName) method to find enum using the JSON valuethe JSON valuename()
the enum valuetoString()
convert value to stringstatic ProductPublishScope[]
values()
possible enum values
-
Field Details
-
ALL
Publishes a Product that causes the staged projection of the Product to override the current projection. If the Product is published for the first time, the current projection is created. This is the default scope.
-
PRICES
Publishes the Prices of the Product (only if the Product is already published). All Product Variants' Prices in the staged projection are published into the current projection with the same
id
. Prices in a staged Product Variant that has no current projection are not published. Prices in a current Product Variant that has no staged projection are unchanged. ThehasStagedChanges
flag is updated according to whether the staged and current projections still differ after the prices are published.
-
-
Method Details
-
getJsonName
String getJsonName()the JSON value- Specified by:
getJsonName
in interfaceJsonEnum
- Returns:
- json value
-
name
String name()the enum value -
toString
String toString()convert value to string -
findEnum
factory method for a enum value of ProductPublishScope if no enum has been found an anonymous instance will be created- Parameters:
value
- the enum value to be wrapped- Returns:
- enum instance
-
findEnumViaJsonName
method to find enum using the JSON value- Parameters:
jsonName
- the json value to be wrapped- Returns:
- optional of enum instance
-
values
possible enum values- Returns:
- array of possible enum values
-