public class PortletIdCodec
extends Object
Modifier and Type | Field and Description |
---|---|
static int |
PORTLET_INSTANCE_KEY_MAX_LENGTH |
Constructor and Description |
---|
PortletIdCodec() |
Modifier and Type | Method and Description |
---|---|
static String |
decodeInstanceId(String portletId) |
static String |
decodePortletName(String portletId) |
static long |
decodeUserId(String portletId) |
static ObjectValuePair<Long,String> |
decodeUserIdAndInstanceId(String userIdAndInstanceId) |
static String |
encode(String portletName) |
static String |
encode(String portletName,
long userId) |
static String |
encode(String portletName,
long userId,
String instanceId) |
static String |
encode(String portletName,
String instanceId) |
static String |
encodeUserIdAndInstanceId(long userId,
String instanceId) |
static String |
generateInstanceId() |
static boolean |
hasInstanceId(String portletId) |
static boolean |
hasUserId(String portletId) |
static void |
validatePortletName(String portletName) |
public static final int PORTLET_INSTANCE_KEY_MAX_LENGTH
public static String decodeInstanceId(String portletId)
public static String decodePortletName(String portletId)
public static long decodeUserId(String portletId)
public static ObjectValuePair<Long,String> decodeUserIdAndInstanceId(String userIdAndInstanceId)
public static String encode(String portletName)
public static String encode(String portletName, long userId)
public static String encode(String portletName, long userId, String instanceId)
public static String encode(String portletName, String instanceId)
public static String encodeUserIdAndInstanceId(long userId, String instanceId)
public static String generateInstanceId()
public static boolean hasInstanceId(String portletId)
public static boolean hasUserId(String portletId)
public static void validatePortletName(String portletName)