Class EncodedItemComposedKey.Builder
java.lang.Object
de.hybris.platform.cmsfacades.uniqueidentifier.EncodedItemComposedKey.Builder
- Enclosing class:
- EncodedItemComposedKey
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds anEncodedItemComposedKey.encoded()Set encoded attribute to true, which will affect how the build() method works.protected EncodedItemComposedKeyfromEncodedString(String encodedString) Returns the object represented by the Base64 value.protected EncodedItemComposedKeyfromJsonString(String jsonString) Returns the object represented by the JSON string parameter.
-
Constructor Details
-
Builder
-
-
Method Details
-
encoded
Set encoded attribute to true, which will affect how the build() method works.- Returns:
- the same builder.
-
fromJsonString
Returns the object represented by the JSON string parameter. The following JSON string format is expected:{ "itemId": "item-id", "catalogId": "catalog-id", "catalogVersion": "catalog-version" }- Parameters:
jsonString- the JSON string representation of this object- Returns:
- the Object represented by the JSON string.
-
fromEncodedString
Returns the object represented by the Base64 value. The Base 64 String will be converted into a string, that should match the following JSON string format:{ "itemId": "item-id", "catalogId": "catalog-id", "catalogVersion": "catalog-version" }The object returned will be returned after the following transformation:object = fromJson(base64Decode(value))- Parameters:
encodedString- the encoded content to be converted- Returns:
- the Object represented by the JSON string.
- See Also:
-
for more details about the encoding algorithm.
-
build
Builds anEncodedItemComposedKey.- Returns:
- the
EncodedItemComposedKeythat was built
-