Top Description Fields Constructors Methods
liquibase.license

public Class LicenseServiceUtils

extends Object
Class Inheritance
Imports
liquibase.Scope, liquibase.exception.CommandValidationException, liquibase.util.StringUtil

This class provides a static method for verifying licenses

Field Summary

Modifier and TypeField and Description
private static final String
public static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static void
checkProLicenseAndThrowException(String[]
the name of the command; each element of the array will be joined by spaces
commandNames
)

Throw an exception if there is no valid pro license.

public static boolean

Returns:

true if licensed, or the installed license also permits access to Liquibase Pro features, false if not
isProLicenseValid
()

Check for a Liquibase Pro License.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BASE_INVALID_LICENSE_MESSAGEback to summary
private static final String BASE_INVALID_LICENSE_MESSAGE
TRIAL_LICENSE_URLback to summary
public static final String TRIAL_LICENSE_URL

Constructor Detail

LicenseServiceUtilsback to summary
public LicenseServiceUtils()

Method Detail

checkProLicenseAndThrowExceptionback to summary
public static void checkProLicenseAndThrowException(String[] commandNames) throws CommandValidationException

Throw an exception if there is no valid pro license.

Parameters
commandNames:String[]

the name of the command; each element of the array will be joined by spaces

Exceptions
CommandValidationException:
the exception thrown if the license is not valid
isProLicenseValidback to summary
public static boolean isProLicenseValid()

Check for a Liquibase Pro License.

Returns:boolean

true if licensed, or the installed license also permits access to Liquibase Pro features, false if not