public class PageLayoutComponentHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
The IBM copyright field.
|
Constructor and Description |
---|
PageLayoutComponentHelper() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String | appendStringWithTimeStamp(java.lang.String astrString, int anMaxLengthOfString)
Append a timestamp to a string and return the new string.
|
static WidgetPropertyType | buildWidgetPropertyType(PageLayoutWidgetNameValuePair widgetNVPPhysicalSDO)
This method builds WidgetPropertyType with the physical SDO object PageLayoutWidgetNameValuePair.
|
static java.lang.String | formatXMLDateTime(java.util.Date date)
Formats a Date object into an XML dateTime in the business context time zone with SDODataTypeHelper.formatXMLDateTime(Date).
|
static java.util.Set<java.lang.String> | getCatentryPageGroups()
Returns all the catalog entry page groups as a set.
|
static ChangeControlBusinessObjectMediator | getChangeControlMediator(java.lang.Object noun)
Returns the ChangeControlMediator after initializing it with the noun being passed.
|
static java.lang.String | getEMarketingSpotName(PageLayoutWidget aWidgetSDO)
Returns the name of E-Marketing Spot for the widget.
|
static java.lang.String | getEMarketingSpotUniqueId(PageLayoutWidget aWidgetSDO)
Returns the unique id of E-Marketing Spot for the widget.
|
static java.lang.String | getESpotStoreId(java.lang.String pageLocationStoreId, java.lang.String objectStoreId)
This method returns the storeId where page location eSpot of type 'LAYOUTMARKETINGESPOT' should be created.
|
static java.lang.Integer | getLanguageId()
This method gets the language ID from the service context.
|
static java.lang.Integer | getLanguageId(AttributesType attrs)
Returns the language id of the attributes of extended data.
|
static java.lang.Integer[] | getLanguageIds(SelectionCriteria searchCriteria)
Returns language ids in the search criteria.
|
static java.lang.Long | getOwnerIdForStore(java.lang.Integer storeId)
Gets the owner Id for the given store.
|
static PageLayoutFactory | getPageLayoutFactory()
This method returns the default instance of the PageLayout Factory.
|
static java.lang.Integer[] | getPageLayoutStorePath()
This method returns the store path ids which the current store has the 'com.ibm.commerce.view' store relationship type with.
|
static java.util.List<PageLayoutWidget> | getPhysicalWidgetsById(java.util.List<java.lang.String> widgetIdList)
This method gets the physical widgets by the Unique ID of widgets.
|
static java.lang.Integer | getStoreId()
This method gets the store ID from the service context.
|
static java.lang.Integer | getStoreIdForLayout(java.lang.String layoutId)
Returns the store id of the given page layout Id.
|
static java.util.List<java.lang.String> | getSynonyms(java.lang.String keyword)
The method gets all the synonyms for the given keyword, only if the UseSynonyms flex flow is enabled for current store.
|
static java.lang.String | getWidgetIdentifier(java.lang.String widgetDefinitionUniqueID)
This method returns the widget identifier for the given widget definition unique id.
|
static java.util.Date | getXMLDateTime(java.lang.Object dateObj)
Parses an XML dateTime into a Date object with SDODataTypeHelper.getXMLDateTime(Object).
|
static boolean | isCategoryOrCatentryPageGroup(java.lang.String pageGroupID)
Returns whether the given page group is a category or catalog entry page group.
|
static boolean | isCatentryPageGroup(java.lang.String pageGroupID)
Returns whether the given page group is a catalog entry page group.
|
static boolean | isCatentryPageGroupWithoutSubLevels(java.lang.String pageGroupID)
Returns whether the given page group is a catalog entry page group that does not have sub level page groups.
|
static java.lang.Boolean | isPageComposerFeatureEnabled()
This method indicates if the page composer feature is enabled for the current store.
|
static java.lang.Boolean | isUseSynonymsEnabled()
This method gets whether the UseSynonyms flex flow is enabled for current store, which delegates to MarketingFacadeClient.
|
static boolean | requireEMarketingSpot(java.lang.String widgetDefinitionUniqueID)
This method return whether or not a widget definition needs a E-Marketing Spot in the specified store.
|
public static final java.lang.String COPYRIGHT
public static java.lang.Integer getStoreId()
public static boolean requireEMarketingSpot(java.lang.String widgetDefinitionUniqueID) throws PageLayoutApplicationException
public static java.lang.String getWidgetIdentifier(java.lang.String widgetDefinitionUniqueID) throws PageLayoutApplicationException
public static java.lang.Integer getStoreIdForLayout(java.lang.String layoutId) throws DataMediatorException
public static java.lang.Long getOwnerIdForStore(java.lang.Integer storeId)
public static java.lang.String formatXMLDateTime(java.util.Date date)
public static java.util.Date getXMLDateTime(java.lang.Object dateObj)
public static java.lang.Boolean isPageComposerFeatureEnabled()
public static java.lang.Boolean isUseSynonymsEnabled() throws PageLayoutApplicationException
public static java.util.List<java.lang.String> getSynonyms(java.lang.String keyword) throws PageLayoutApplicationException
public static java.lang.String appendStringWithTimeStamp(java.lang.String astrString, int anMaxLengthOfString)
public static java.lang.String getEMarketingSpotUniqueId(PageLayoutWidget aWidgetSDO)
public static WidgetPropertyType buildWidgetPropertyType(PageLayoutWidgetNameValuePair widgetNVPPhysicalSDO)
public static PageLayoutFactory getPageLayoutFactory()
public static java.lang.String getEMarketingSpotName(PageLayoutWidget aWidgetSDO)
public static java.lang.Integer[] getLanguageIds(SelectionCriteria searchCriteria)
public static java.lang.Integer getLanguageId() throws PageLayoutSystemException
public static java.lang.Integer[] getPageLayoutStorePath() throws PageLayoutApplicationException
public static java.lang.Integer getLanguageId(AttributesType attrs)
public static java.util.List<PageLayoutWidget> getPhysicalWidgetsById(java.util.List<java.lang.String> widgetIdList) throws DataMediatorException
public static java.lang.String getESpotStoreId(java.lang.String pageLocationStoreId, java.lang.String objectStoreId)
public static ChangeControlBusinessObjectMediator getChangeControlMediator(java.lang.Object noun) throws java.lang.Exception
public static boolean isCategoryOrCatentryPageGroup(java.lang.String pageGroupID)
public static boolean isCatentryPageGroup(java.lang.String pageGroupID)
public static boolean isCatentryPageGroupWithoutSubLevels(java.lang.String pageGroupID)
public static java.util.Set<java.lang.String> getCatentryPageGroups()