Class ThreeKitConfig

java.lang.Object
com.imc.iss.groovy.threekit.ThreeKitConfig

public class ThreeKitConfig extends Object
This is a class representing an ThreeKitConfig for use by groovy scripts

Inside the script, an instance of this class, containing the data of the ThreeKit Config that the script will be run on, will be provided automatically and can be accessed as a variable named threeKitConfig

  • Constructor Details

    • ThreeKitConfig

      public ThreeKitConfig()
  • Method Details

    • getAssetId

      public String getAssetId()
      Retrieves the AssetId.
      Returns:
      The AssetId as String.
    • getProductId

      public String getProductId()
      Retrieves the ProductId.
      Returns:
      The ProductId as String.
    • getThreekitAttributeList

      public List<String> getThreekitAttributeList()
      Retrieves the list of ThreeKit attributes.
      Returns:
      The list of ThreeKit attributes.
    • getThreeKitAuthToken

      public String getThreeKitAuthToken()
      Retrieves the ThreeKit Auth Token.
      Returns:
      The ThreeKit Auth Token as String.
    • getThreekitCustomAttributes

      public Map<String,Object> getThreekitCustomAttributes()
      Retrieves the Map of Threekit Custom Attributes.
      Returns:
      The Map of Threekit Custom Attributes.
    • getThreeKitURL

      public String getThreeKitURL()
      Retrieves the ThreeKitURL.
      Returns:
      The ThreeKitURL as String.
    • isThreeKitEnabled

      public boolean isThreeKitEnabled()
    • setAssetId

      public void setAssetId(String assetId)
      sets the AssetId for the ThreeKit Config
      Parameters:
      assetId - as String.
    • setProductId

      public void setProductId(String productId)
      sets the productId for the ThreeKit Config
      Parameters:
      productId - as String.
    • setThreekitAttributeList

      public void setThreekitAttributeList(List<String> threekitAttributeList)
      sets the ThreeKit attributes for the ThreeKit Config
      Parameters:
      threekitAttributeList - as List.
    • setThreeKitAuthToken

      public void setThreeKitAuthToken(String threeKitAuthToken)
      sets the threeKitAuthToken for the ThreeKit Config
      Parameters:
      threeKitAuthToken - as String.
    • setThreekitCustomAttributes

      public void setThreekitCustomAttributes(Map<String,Object> threekitCustomAttributes)
      sets the threekit Custom Attributes for the ThreeKit Config
      Parameters:
      threekitCustomAttributes - as Map<String, Object>.
    • setThreeKitEnabled

      public void setThreeKitEnabled(boolean isThreeKitEnabled)
      sets the isThreeKitEnabled boolean to enable the ThreeKit Config
      Parameters:
      isThreeKitEnabled - as Boolean.
    • setThreeKitURL

      public void setThreeKitURL(String threeKitURL)
      sets the threeKitURL for the ThreeKit Config
      Parameters:
      threeKitURL - as String.
    • toResource

      public Resource toResource(ThreeKitConfig threeKitConfig)