com.liferay.portal.license.util
Class LicenseManagerUtil
java.lang.Object
com.liferay.portal.license.util.LicenseManagerUtil
public class LicenseManagerUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STATE_ABSENT
public static final int STATE_ABSENT
- Deprecated. As of 6.2.0, replaced by
LicenseManager.STATE_ABSENT
- See Also:
- Constant Field Values
STATE_EXPIRED
public static final int STATE_EXPIRED
- Deprecated. As of 6.2.0, replaced by
LicenseManager.STATE_EXPIRED
- See Also:
- Constant Field Values
STATE_GOOD
public static final int STATE_GOOD
- Deprecated. As of 6.2.0, replaced by
LicenseManager.STATE_GOOD
- See Also:
- Constant Field Values
STATE_INACTIVE
public static final int STATE_INACTIVE
- Deprecated. As of 6.2.0, replaced by
LicenseManager.STATE_INACTIVE
- See Also:
- Constant Field Values
STATE_INVALID
public static final int STATE_INVALID
- Deprecated. As of 6.2.0, replaced by
LicenseManager.STATE_INVALID
- See Also:
- Constant Field Values
STATE_OVERLOAD
public static final int STATE_OVERLOAD
- Deprecated. As of 6.2.0, replaced by
LicenseManager.STATE_OVERLOAD
- See Also:
- Constant Field Values
LicenseManagerUtil
public LicenseManagerUtil()
checkLicense
public static void checkLicense(String productId)
getClusterLicenseProperties
public static List<Map<String,String>> getClusterLicenseProperties(String clusterNodeId)
getHostName
public static String getHostName()
getIpAddresses
public static Set<String> getIpAddresses()
getLicenseInfo
public static LicenseInfo getLicenseInfo(String productId)
getLicenseManager
public static LicenseManager getLicenseManager()
getLicenseProperties
public static List<Map<String,String>> getLicenseProperties()
getLicenseProperties
public static Map<String,String> getLicenseProperties(String productId)
getLicenseState
public static int getLicenseState(Map<String,String> licenseProperties)
getLicenseState
public static int getLicenseState(String productId)
getMacAddresses
public static Set<String> getMacAddresses()
registerLicense
public static void registerLicense(JSONObject jsonObject)
throws Exception
- Throws:
Exception
setLicenseManager
public void setLicenseManager(LicenseManager licenseManager)