Class LicenseFile
java.lang.Object
org.forgerock.opendj.setup.model.LicenseFile
Represents information about the license file.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PathPath to the license file, relative to the installation path. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCreates a file - in the legal folder from the specified directory; which indicates that the license has been approved.booleanexists()Checks if the license file exists.Returns the textual contents of the license file.booleanIndicate if the license had already been approved.voidRegisters that the license has been approved by the user.
-
Field Details
-
LICENSE_FILE_RELATIVE_PATH
Path to the license file, relative to the installation path.
-
-
Constructor Details
-
LicenseFile
Creates a new LicenseFile.- Parameters:
installPath- The path to the installation directory.
-
-
Method Details
-
isAlreadyApproved
public boolean isAlreadyApproved()Indicate if the license had already been approved.- Returns:
trueif the license had already been approved by the userfalseotherwise.
-
markAsApproved
public void markAsApproved()Registers that the license has been approved by the user. -
createLicenseApprovedFile
public void createLicenseApprovedFile()Creates a file - in the legal folder from the specified directory; which indicates that the license has been approved. -
exists
public boolean exists()Checks if the license file exists.- Returns:
trueif the license file exists in the Legal directory in the top level installation directoryfalseotherwise.
-
getContent
Returns the textual contents of the license file.- Returns:
- the textual contents of the license file
-