Class LicenseFile


  • public class LicenseFile
    extends Object
    Represents information about the license file. NOTE: the license file location must be kept in sync with build.xml and org.opends.server.tools.upgrade.LicenseFile.
    • Constructor Detail

      • LicenseFile

        public LicenseFile()
    • Method Detail

      • exists

        public static boolean exists()
        Checks if the license file exists.
        Returns:
        true if the license file exists in the Legal directory in the top level installation directory false otherwise.
      • getText

        public static String getText()
        Get the textual contents of the license file.
        Returns:
        the textual contents of the license file.
      • getApproval

        public static boolean getApproval()
        Get the license approval status.
        Returns:
        true if the license has been accepted by the user false otherwise.
      • setApproval

        public static void setApproval​(boolean approved)
        Sets the license approval status.
        Parameters:
        approved - the license approval status
      • createFileLicenseApproved

        public static void createFileLicenseApproved​(String installationPath)
        Creates a file - in the legal folder from the specified directory; which indicates that the license has been approved.
        Parameters:
        installationPath - The server installation's path.
      • isAlreadyApproved

        public static boolean isAlreadyApproved()
        Indicate if the license had already been approved..
        Returns:
        true if the license had already been approved by the user false otherwise.