Package org.forgerock.opendj.setup.model
Class LicenseFile
java.lang.Object
org.forgerock.opendj.setup.model.LicenseFile
Represents information about the license file.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Creates a file - in the legal folder from the specified directory; which indicates that the license has been approved.boolean
exists()
Checks if the license file exists.Get the textual contents of the license file.boolean
Indicate if the license had already been approved.void
Registers that the license has been approved by the user.
-
Constructor Details
-
LicenseFile
public LicenseFile()
-
-
Method Details
-
isAlreadyApproved
public boolean isAlreadyApproved()Indicate if the license had already been approved.- Returns:
true
if the license had already been approved by the userfalse
otherwise.
-
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:
true
if the license file exists in the Legal directory in the top level installation directoryfalse
otherwise.
-
getContent
Get the textual contents of the license file.- Returns:
- the textual contents of the license file.
-