Class EncodedItemComposedKey.Builder

java.lang.Object
de.hybris.platform.cmsfacades.uniqueidentifier.EncodedItemComposedKey.Builder
Enclosing class:
EncodedItemComposedKey

public static class EncodedItemComposedKey.Builder extends Object
  • Constructor Details

    • Builder

      public Builder(String content)
  • Method Details

    • encoded

      Set encoded attribute to true, which will affect how the build() method works.
      Returns:
      the same builder.
    • fromJsonString

      protected EncodedItemComposedKey fromJsonString(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(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()
      Returns:
      the EncodedItemComposedKey that was built