public class PortletConstants extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_PREFERENCES
Default preferences.
|
static String |
FACEBOOK_INTEGRATION_FBML
Facebook integration method for FBML.
|
static String |
FACEBOOK_INTEGRATION_IFRAME
Facebook integration method for IFrame.
|
static String |
INSTANCE_SEPARATOR
Deprecated.
As of 7.0.0, with no direct replacement
|
static String |
LAYOUT_SEPARATOR
Layout separator.
|
static String |
USER_PRINCIPAL_STRATEGY_SCREEN_NAME
User principal strategy for screen name.
|
static String |
USER_PRINCIPAL_STRATEGY_USER_ID
User principal strategy for screen name.
|
static String |
USER_SEPARATOR
Deprecated.
As of 7.0.0, with no direct replacement
|
static String |
WAR_SEPARATOR
War file separator.
|
Constructor and Description |
---|
PortletConstants() |
Modifier and Type | Method and Description |
---|---|
static String |
assemblePortletId(String portletId,
long userId)
Returns a properly assembled portlet ID from the parameters passed.
|
static String |
assemblePortletId(String portletId,
long userId,
String instanceId)
Returns a properly assembled portlet ID from the parameters passed.
|
static String |
assemblePortletId(String portletId,
String instanceId)
Returns a properly assembled portlet ID from the parameters passed.
|
static String |
generateInstanceId() |
static String |
getInstanceId(String portletId)
Returns the instance ID of the portlet.
|
static String |
getRootPortletId(String portletId)
Returns the root portlet ID of the portlet.
|
static long |
getUserId(String portletId)
Returns the user ID of the portlet.
|
static boolean |
hasIdenticalRootPortletId(String portletId1,
String portletId2) |
static boolean |
hasInstanceId(String portletId)
Returns
true if the portlet ID contains an instance ID. |
static boolean |
hasUserId(String portletId)
Returns
true if the portlet ID contains a user ID. |
public static final String DEFAULT_PREFERENCES
public static final String FACEBOOK_INTEGRATION_FBML
public static final String FACEBOOK_INTEGRATION_IFRAME
@Deprecated public static final String INSTANCE_SEPARATOR
public static final String LAYOUT_SEPARATOR
public static final String USER_PRINCIPAL_STRATEGY_SCREEN_NAME
public static final String USER_PRINCIPAL_STRATEGY_USER_ID
@Deprecated public static final String USER_SEPARATOR
public static final String WAR_SEPARATOR
public static String assemblePortletId(String portletId, long userId)
portletId
- the portlet IDuserId
- a user IDpublic static String assemblePortletId(String portletId, long userId, String instanceId)
portletId
- the portlet IDuserId
- the user IDinstanceId
- an instance ID. If null
, an instance ID
is derived from the portlet ID.public static String assemblePortletId(String portletId, String instanceId)
portletId
- the portlet IDinstanceId
- an instance IDpublic static String generateInstanceId()
public static String getInstanceId(String portletId)
portletId
- the portlet IDpublic static String getRootPortletId(String portletId)
portletId
- the portlet IDpublic static long getUserId(String portletId)
portletId
- the portlet IDpublic static boolean hasIdenticalRootPortletId(String portletId1, String portletId2)
public static boolean hasInstanceId(String portletId)
true
if the portlet ID contains an instance ID.portletId
- the portlet IDtrue
if the portlet ID contains an instance ID;
false
otherwisepublic static boolean hasUserId(String portletId)
true
if the portlet ID contains a user ID.portletId
- the portlet IDtrue
if the portlet ID contains a user ID;
false
otherwise