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 long decodeUserId(String portletId)
public static ObjectValuePair<Long,String> decodeUserIdAndInstanceId(String userIdAndInstanceId)
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)