public final class LicenseFile extends Object
Constructor and Description |
---|
LicenseFile()
Creates a new
LicenseFile by reading server install path from system property. |
Modifier and Type | Method and Description |
---|---|
void |
createLicenseApprovedFile()
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.
|
String |
getContent()
Get the textual contents of the license file.
|
boolean |
isAlreadyApproved()
Indicate if the license had already been approved.
|
void |
markAsApproved()
Registers that the license has been approved by the user.
|
public LicenseFile()
LicenseFile
by reading server install path from system property.public boolean isAlreadyApproved()
true
if the license had already been approved by the user false
otherwise.public void markAsApproved()
public void createLicenseApprovedFile()
public boolean exists()
true
if the license file exists in the Legal directory in the top level
installation directory false
otherwise.public String getContent()
Copyright 2010-2020 ForgeRock AS.