Package org.opends.quicksetup
Class LicenseFile
- java.lang.Object
-
- org.opends.quicksetup.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 Summary
Constructors Constructor Description LicenseFile()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcreateFileLicenseApproved(String installationPath)Creates a file - in the legal folder from the specified directory; which indicates that the license has been approved.static booleanexists()Checks if the license file exists.static booleangetApproval()Get the license approval status.static StringgetText()Get the textual contents of the license file.static booleanisAlreadyApproved()Indicate if the license had already been approved..static voidsetApproval(boolean approved)Sets the license approval status.
-
-
-
Method Detail
-
exists
public static boolean exists()
Checks if the license file exists.- Returns:
trueif the license file exists in the Legal directory in the top level installation directoryfalseotherwise.
-
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:
trueif the license has been accepted by the userfalseotherwise.
-
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:
trueif the license had already been approved by the userfalseotherwise.
-
-