com.liferay.portal.license.util
Interface LicenseManager


public interface LicenseManager

Author:
Amos Fong

Field Summary
static int STATE_ABSENT
           
static int STATE_EXPIRED
           
static int STATE_GOOD
           
static int STATE_INACTIVE
           
static int STATE_INVALID
           
static int STATE_OVERLOAD
           
 
Method Summary
 void checkLicense(java.lang.String productId)
           
 java.util.List<java.util.Map<java.lang.String,java.lang.String>> getClusterLicenseProperties(java.lang.String clusterNodeId)
           
 java.lang.String getHostName()
           
 java.util.Set<java.lang.String> getIpAddresses()
           
 LicenseInfo getLicenseInfo(java.lang.String productId)
           
 java.util.List<java.util.Map<java.lang.String,java.lang.String>> getLicenseProperties()
           
 java.util.Map<java.lang.String,java.lang.String> getLicenseProperties(java.lang.String productId)
           
 int getLicenseState(java.util.Map<java.lang.String,java.lang.String> licenseProperties)
           
 int getLicenseState(java.lang.String productId)
           
 java.util.Set<java.lang.String> getMacAddresses()
           
 void registerLicense(JSONObject jsonObject)
           
 

Field Detail

STATE_ABSENT

static final int STATE_ABSENT
See Also:
Constant Field Values

STATE_EXPIRED

static final int STATE_EXPIRED
See Also:
Constant Field Values

STATE_GOOD

static final int STATE_GOOD
See Also:
Constant Field Values

STATE_INACTIVE

static final int STATE_INACTIVE
See Also:
Constant Field Values

STATE_INVALID

static final int STATE_INVALID
See Also:
Constant Field Values

STATE_OVERLOAD

static final int STATE_OVERLOAD
See Also:
Constant Field Values
Method Detail

checkLicense

void checkLicense(java.lang.String productId)

getClusterLicenseProperties

java.util.List<java.util.Map<java.lang.String,java.lang.String>> getClusterLicenseProperties(java.lang.String clusterNodeId)

getHostName

java.lang.String getHostName()

getIpAddresses

java.util.Set<java.lang.String> getIpAddresses()

getLicenseInfo

LicenseInfo getLicenseInfo(java.lang.String productId)

getLicenseProperties

java.util.List<java.util.Map<java.lang.String,java.lang.String>> getLicenseProperties()

getLicenseProperties

java.util.Map<java.lang.String,java.lang.String> getLicenseProperties(java.lang.String productId)

getLicenseState

int getLicenseState(java.util.Map<java.lang.String,java.lang.String> licenseProperties)

getLicenseState

int getLicenseState(java.lang.String productId)

getMacAddresses

java.util.Set<java.lang.String> getMacAddresses()

registerLicense

void registerLicense(JSONObject jsonObject)
                     throws java.lang.Exception
Throws:
java.lang.Exception