Class EncodedItemComposedKey.Builder
- java.lang.Object
-
- de.hybris.platform.cmsfacades.uniqueidentifier.EncodedItemComposedKey.Builder
-
- Enclosing class:
- EncodedItemComposedKey
public static class EncodedItemComposedKey.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder(java.lang.String content)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EncodedItemComposedKeybuild()Builds anEncodedItemComposedKey.EncodedItemComposedKey.Builderencoded()Set encoded attribute to true, which will affect how the build() method works.protected EncodedItemComposedKeyfromEncodedString(java.lang.String encodedString)Returns the object represented by the Base64 value.protected EncodedItemComposedKeyfromJsonString(java.lang.String jsonString)Returns the object represented by the JSON string parameter.
-
-
-
Method Detail
-
encoded
public EncodedItemComposedKey.Builder encoded()
Set encoded attribute to true, which will affect how the build() method works.- Returns:
- the same builder.
-
fromJsonString
protected EncodedItemComposedKey fromJsonString(java.lang.String jsonString)
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
protected EncodedItemComposedKey fromEncodedString(java.lang.String encodedString)
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
public EncodedItemComposedKey build()
Builds anEncodedItemComposedKey.- Returns:
- the
EncodedItemComposedKeythat was built
-
-