Liferay 7.0-ce-b4

com.liferay.portal.kernel.license.messaging
Enum LicenseManagerMessageType

java.lang.Object
  extended by java.lang.Enum<LicenseManagerMessageType>
      extended by com.liferay.portal.kernel.license.messaging.LicenseManagerMessageType
All Implemented Interfaces:
Serializable, Comparable<LicenseManagerMessageType>

public enum LicenseManagerMessageType
extends Enum<LicenseManagerMessageType>


Enum Constant Summary
LCS_AVAILABLE
           
SUBSCRIPTION_VALID
           
VALIDATE_LCS
           
VALIDATE_SUBSCRIPTION
           
 
Field Summary
static String MESSAGE_BUS_DESTINATION_REQUEST
           
static String MESSAGE_BUS_DESTINATION_STATUS
           
 
Method Summary
 Message createMessage()
           
 Message createMessage(LCSPortletState lcsPortletState)
           
 String getDestinationName()
           
static JSONObject getMessagePayload(Message message)
           
static JSONObject getMessagePayload(Object object)
           
static JSONObject getMessagePayload(String json)
           
static LicenseManagerMessageType valueOf(JSONObject jsonObject)
           
static LicenseManagerMessageType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static LicenseManagerMessageType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

LCS_AVAILABLE

public static final LicenseManagerMessageType LCS_AVAILABLE

SUBSCRIPTION_VALID

public static final LicenseManagerMessageType SUBSCRIPTION_VALID

VALIDATE_LCS

public static final LicenseManagerMessageType VALIDATE_LCS

VALIDATE_SUBSCRIPTION

public static final LicenseManagerMessageType VALIDATE_SUBSCRIPTION
Field Detail

MESSAGE_BUS_DESTINATION_REQUEST

public static String MESSAGE_BUS_DESTINATION_REQUEST

MESSAGE_BUS_DESTINATION_STATUS

public static String MESSAGE_BUS_DESTINATION_STATUS
Method Detail

values

public static LicenseManagerMessageType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (LicenseManagerMessageType c : LicenseManagerMessageType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static LicenseManagerMessageType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getMessagePayload

public static JSONObject getMessagePayload(Message message)

getMessagePayload

public static JSONObject getMessagePayload(Object object)

getMessagePayload

public static JSONObject getMessagePayload(String json)

valueOf

public static LicenseManagerMessageType valueOf(JSONObject jsonObject)

createMessage

public Message createMessage()

createMessage

public Message createMessage(LCSPortletState lcsPortletState)

getDestinationName

public String getDestinationName()

Liferay 7.0-ce-b4