public class PagePersonalizationUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_HOLDER_PERSONALIZED_BY_CONTENT
Name of holder's service interface instance custom property that contains a boolean value indicating if that
holder is personalized by content.
|
Constructor and Description |
---|
PagePersonalizationUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
getHolderContentId(String holderServiceInterfaceInstanceId,
String contentId)
Returns the identifier of the content the holder is personalized for.
|
static String |
getWidgetInstanceHolderInterfaceInstanceId(String interfaceInstanceId)
Returns the widget holder's interface instance id for a widget instance that corresponds to the specified
interface instance.
|
static boolean |
isHolderPersonalizedByContent(String holderInterfaceInstanceId)
Returns whether a widget holder is configured to be personalized by content.
|
public static final String PROPERTY_HOLDER_PERSONALIZED_BY_CONTENT
public static String getWidgetInstanceHolderInterfaceInstanceId(String interfaceInstanceId)
interfaceInstanceId
- the widget instance's interface instance identifier.public static boolean isHolderPersonalizedByContent(String holderInterfaceInstanceId) throws PortalException
holderInterfaceInstanceId
- the holder's service interface instance identifier.true
if the holder is configured to be personalized by content, false
otherwise.PortalException
public static String getHolderContentId(String holderServiceInterfaceInstanceId, String contentId) throws PortalException
holderServiceInterfaceInstanceId
- the holder's service interface instance identifier.contentId
- the content identifier provided in the request being processed.null
if the holder is not configured to be personalized for content or
if the request does not specify a valid content to base the holder on.PortalException
Lumisportal 10.3.0.171201 - Copyright © 2006–2017 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.