Class ProvisioningProperties

java.lang.Object
com.adobe.cq.cloudservices.provisioning.ProvisioningProperties

public final class ProvisioningProperties extends Object
The ProvisioningProperties is an utility class to read a properties file containing data for automatic provisioning.
  • Field Details

    • PARAM_AUTOMATIC_PROVISIONING

      public static final String PARAM_AUTOMATIC_PROVISIONING
      Request parameter name for automatic provisioning.
      See Also:
    • PROP_PROVISIONING_CONTAINER_FOLDER

      public static final String PROP_PROVISIONING_CONTAINER_FOLDER
      Name of the system property holding the parent directory of the properties file.
      See Also:
    • PROP_PROVISIONING_FILE_NAME

      public static final String PROP_PROVISIONING_FILE_NAME
      File name of the properties file holding the provisioning data.
      See Also:
  • Method Details

    • getAutomaticProvisioningData

      public static Properties getAutomaticProvisioningData()
      Reads the provisioning properties file with the name PROP_PROVISIONING_FILE_NAME from the working directory. If the system property PROP_PROVISIONING_CONTAINER_FOLDER is set, the method attempts to read the file from there.

      The file should contain prefixed properties in the form of <servicename>.<property> (i.e. analytics.company)

      Returns:
      Properties or null if the file does not exist or can't be read.