Package liquibase.license
Class LicenseServiceUtils
java.lang.Object
liquibase.license.LicenseServiceUtils
This class provides a static method for verifying licenses
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkProLicenseAndThrowException
(String[] commandNames) Throw an exception if there is no valid pro license.static boolean
Check for a Liquibase Pro License.
-
Constructor Details
-
LicenseServiceUtils
public LicenseServiceUtils()
-
-
Method Details
-
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
-