Package org.forgerock.opendj.setup.model
Class LicenseFile
- java.lang.Object
-
- org.forgerock.opendj.setup.model.LicenseFile
-
public final class LicenseFile extends Object
Represents information about the license file.
-
-
Constructor Summary
Constructors Constructor Description LicenseFile()Creates a newLicenseFileby reading server install path from system property.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateLicenseApprovedFile()Creates 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.StringgetContent()Get the textual contents of the license file.booleanisAlreadyApproved()Indicate if the license had already been approved.voidmarkAsApproved()Registers that the license has been approved by the user.
-
-
-
Constructor Detail
-
LicenseFile
public LicenseFile()
Creates a newLicenseFileby reading server install path from system property.
-
-
Method Detail
-
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
public String getContent()
Get the textual contents of the license file.- Returns:
- the textual contents of the license file.
-
-