Package liquibase.license
Class LicenseServiceUtils
- java.lang.Object
-
- liquibase.license.LicenseServiceUtils
-
public class LicenseServiceUtils extends Object
This class provides a static method for verifying licenses
-
-
Field Summary
Fields Modifier and Type Field Description static String
TRIAL_LICENSE_URL
-
Constructor Summary
Constructors Constructor Description LicenseServiceUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
checkProLicenseAndThrowException(String[] commandNames)
Throw an exception if there is no valid pro license.static boolean
isProLicenseValid()
Check for a Liquibase Pro License.
-
-
-
Field Detail
-
TRIAL_LICENSE_URL
public static final String TRIAL_LICENSE_URL
- See Also:
- Constant Field Values
-
-
Method Detail
-
isProLicenseValid
public static boolean isProLicenseValid()
Check for a Liquibase Pro License.- Returns:
- true if licensed, or the installed license also permits access to Liquibase Pro features, false if not
-
checkProLicenseAndThrowException
public static void checkProLicenseAndThrowException(String[] commandNames) throws CommandValidationException
Throw an exception if there is no valid pro license.- Parameters:
commandNames
- the name of the command; each element of the array will be joined by spaces- Throws:
CommandValidationException
- the exception thrown if the license is not valid
-
-