public abstract class AbstractBasePageLayoutMediator extends AbstractBusinessObjectMediator implements LayoutDataLoadConstants
ACTIVE_STATE, BUSINESS_OBJECT_PART_NAME_PAGELOCATION_ENDDATE, BUSINESS_OBJECT_PART_NAME_PAGELOCATION_STARTDATE, COLUMN_NAME_STOREENT_ID, CONFIG_PROPERTY_LOAD_SEO, CONTEXT_DATA_CATALOG_ID, CONTEXT_DATA_CATALOG_IDENTIFIER, CONTEXT_DATA_LANGUAGE_ID, CONTEXT_DATA_OWNER_ID, CONTEXT_DATA_STORE_ID, CONTEXT_DATA_STORE_IDENTIFIER, DEVICE_CLASS_ANY, DEVICE_CLASS_MOBILE, DEVICE_CLASS_WEB, DMACTIVITY_COL_NAME_BEHAVIOR, DMACTIVITY_COL_NAME_CREATED, DMACTIVITY_COL_NAME_DESCRIPTION, DMACTIVITY_COL_NAME_DMACTIVITY_ID, DMACTIVITY_COL_NAME_DMACTTYPE_ID, DMACTIVITY_COL_NAME_DMCAMPAIGN_ID, DMACTIVITY_COL_NAME_DMEXPTYPE_ID, DMACTIVITY_COL_NAME_DMTEMPLATETYPE_ID, DMACTIVITY_COL_NAME_ENDDATE, DMACTIVITY_COL_NAME_FIELD1, DMACTIVITY_COL_NAME_FIELD2, DMACTIVITY_COL_NAME_FIELD3, DMACTIVITY_COL_NAME_FLOWXML, DMACTIVITY_COL_NAME_LASTUPDATE, DMACTIVITY_COL_NAME_LASTUPDATEDBY, DMACTIVITY_COL_NAME_MANAGINGTOOL, DMACTIVITY_COL_NAME_NAME, DMACTIVITY_COL_NAME_OPTCOUNTER, DMACTIVITY_COL_NAME_PRIORITY, DMACTIVITY_COL_NAME_PUBLISHED, DMACTIVITY_COL_NAME_REPEATABLE, DMACTIVITY_COL_NAME_STARTDATE, DMACTIVITY_COL_NAME_STATE, DMACTIVITY_COL_NAME_STOREENT_ID, DMACTIVITY_COL_NAME_UIDISPLAYABLE, DMACTIVITY_COL_NAME_VERSION, DMELEMENT_COL_NAME_DMACTIVITY_ID, DMELEMENT_COL_NAME_DMELEMENT_ID, DMELEMENT_COL_NAME_DMELETEMPLATE_ID, DMELEMENT_COL_NAME_FIELD1, DMELEMENT_COL_NAME_FIELD2, DMELEMENT_COL_NAME_FIELD3, DMELEMENT_COL_NAME_FIELD4, DMELEMENT_COL_NAME_NAME, DMELEMENT_COL_NAME_OPTCOUNTER, DMELEMENT_COL_NAME_PARENT, DMELEMENT_COL_NAME_PRIORITY, DMELEMENT_COL_NAME_RELATED_ID, DMELEMENT_COL_NAME_SEQUENCE, DMELEMENTNVP_COL_NAME_DMELEMENT_ID, DMELEMENTNVP_COL_NAME_NAME, DMELEMENTNVP_COL_NAME_OPTCOUNTER, DMELEMENTNVP_COL_NAME_PROPERTIES, DMELEMENTNVP_COL_NAME_SEQUENCE, DMELEMENTNVP_COL_NAME_TRIGGERMATCH, DMELEMENTNVP_COL_NAME_VALUE, DMTRIGLSTN_COL_NAME_ALLUSERS, DMTRIGLSTN_COL_NAME_DMACTIVITY_ID, DMTRIGLSTN_COL_NAME_DMELEMENT_ID, DMTRIGLSTN_COL_NAME_FIELD1, DMTRIGLSTN_COL_NAME_FIELD2, DMTRIGLSTN_COL_NAME_FIELD3, DMTRIGLSTN_COL_NAME_NAME, DMTRIGLSTN_COL_NAME_OPTCOUNTER, DMTRIGLSTN_COL_NAME_STOREENT_ID, EMSPOT_COL_NAME_DEFAULTRULE, EMSPOT_COL_NAME_DESCRIPTION, EMSPOT_COL_NAME_EMSPOT_ID, EMSPOT_COL_NAME_LASTUPDATE, EMSPOT_COL_NAME_LASTUPDATEDBY, EMSPOT_COL_NAME_MANAGINGTOOL, EMSPOT_COL_NAME_NAME, EMSPOT_COL_NAME_STOREENT_ID, EMSPOT_COL_NAME_SUPPORTTYPES, EMSPOT_COL_NAME_UIDISPLAYABLE, EMSPOT_COL_NAME_USAGETYPE, FALSE, INACTIVE_STATE, MARKFORDELETE_STATE, OBJECT_ID_SEPARATOR, PAGELAYOUT_COL_NAME_CREATEDATE, PAGELAYOUT_COL_NAME_DESCRIPTION, PAGELAYOUT_COL_NAME_DEVICETYPE, PAGELAYOUT_COL_NAME_ENDDATE, PAGELAYOUT_COL_NAME_FIELD1, PAGELAYOUT_COL_NAME_FIELD2, PAGELAYOUT_COL_NAME_FIELD3, PAGELAYOUT_COL_NAME_FULLIMAGE, PAGELAYOUT_COL_NAME_ISDEFAULT, PAGELAYOUT_COL_NAME_ISTEMPLATE, PAGELAYOUT_COL_NAME_LASTUPDATE, PAGELAYOUT_COL_NAME_MANAGINGTOOL, PAGELAYOUT_COL_NAME_MASTERCSS, PAGELAYOUT_COL_NAME_MEMBER_ID, PAGELAYOUT_COL_NAME_NAME, PAGELAYOUT_COL_NAME_OPTCOUNTER, PAGELAYOUT_COL_NAME_PAGELAYOUT_ID, PAGELAYOUT_COL_NAME_PAGELAYOUTTYPE_ID, PAGELAYOUT_COL_NAME_PRIORITY, PAGELAYOUT_COL_NAME_STARTDATE, PAGELAYOUT_COL_NAME_STATE, PAGELAYOUT_COL_NAME_STOREENT_ID, PAGELAYOUT_COL_NAME_THUMBNAIL, PAGELAYOUT_COL_NAME_VIEWNAME, PAGELAYOUTTYPE_COL_NAME_ISSTATIC, PAGELAYOUTTYPE_COL_NAME_OPTCOUNTER, PAGELAYOUTTYPE_COL_NAME_PAGELAYOUTTYPE_ID, PLLOCATION_COL_NAME_DMACTIVITY_ID, PLLOCATION_COL_NAME_GROUPNUMBER, PLLOCATION_COL_NAME_OPTCOUNTER, PLLOCATION_COL_NAME_PAGELAYOUT_ID, PLLOCATION_COL_NAME_PLLOCATION_ID, PLPAGE_COL_NAME_ADMINNAME, PLPAGE_COL_NAME_ADMINNAMEEDITABLE, PLPAGE_COL_NAME_DELETABLE, PLPAGE_COL_NAME_FIELD1, PLPAGE_COL_NAME_FIELD2, PLPAGE_COL_NAME_FIELD3, PLPAGE_COL_NAME_MEMBER_ID, PLPAGE_COL_NAME_OPTCOUNTER, PLPAGE_COL_NAME_PAGELAYOUTTYPE_ID, PLPAGE_COL_NAME_PLPAGE_ID, PLPAGE_COL_NAME_STOREENT_ID, PLPAGE_COL_NAME_URLCONFIGURABLE, PLSTOREWIDGET_COL_NAME_DEFINITIONXML, PLSTOREWIDGET_COL_NAME_OPTCOUNTER, PLSTOREWIDGET_COL_NAME_PLSTOREWIDGET_ID, PLSTOREWIDGET_COL_NAME_PLWIDGETDEF_ID, PLSTOREWIDGET_COL_NAME_STATE, PLSTOREWIDGET_COL_NAME_STOREENT_ID, PLTEMPLATEREL_COL_NAME_OPTCOUNTER, PLTEMPLATEREL_COL_NAME_PAGELAYOUT_ID, PLTEMPLATEREL_COL_NAME_TEMPLATE_ID, PLWIDGET_COL_NAME_ADMINNAME, PLWIDGET_COL_NAME_FIELD1, PLWIDGET_COL_NAME_FIELD2, PLWIDGET_COL_NAME_FIELD3, PLWIDGET_COL_NAME_PAGELAYOUT_ID, PLWIDGET_COL_NAME_PLWIDGET_ID, PLWIDGET_COL_NAME_PLWIDGETDEF_ID, PLWIDGET_COL_NAME_SLOTID, PLWIDGETDEF_COL_NAME_CREATEDATE, PLWIDGETDEF_COL_NAME_DEFINITIONXML, PLWIDGETDEF_COL_NAME_IDENTIFIER, PLWIDGETDEF_COL_NAME_JSPPATH, PLWIDGETDEF_COL_NAME_LASTUPDATE, PLWIDGETDEF_COL_NAME_PLWIDGETDEF_ID, PLWIDGETDEF_COL_NAME_STATE, PLWIDGETDEF_COL_NAME_STOREENT_ID, PLWIDGETDEF_COL_NAME_UI_OBJECT_NAME, PLWIDGETDEF_COL_NAME_VENDOR, PLWIDGETDEF_COL_NAME_WIDGETTYPE, PLWIDGETDEFDESC_COL_NAME_DESCRIPTION, PLWIDGETDEFDESC_COL_NAME_DISPLAYNAME, PLWIDGETDEFDESC_COL_NAME_LANGUAGE_ID, PLWIDGETDEFDESC_COL_NAME_PLWIDGETDEF_ID, PLWIDGETNVP_COL_NAME_NAME, PLWIDGETNVP_COL_NAME_PLWIDGET_ID, PLWIDGETNVP_COL_NAME_PLWIDGETNVP_ID, PLWIDGETNVP_COL_NAME_PROPERTIES, PLWIDGETNVP_COL_NAME_SEQUENCE, PLWIDGETNVP_COL_NAME_VALUE, PLWIDGETREL_COL_NAME_PLWIDGET_ID_CHILD, PLWIDGETREL_COL_NAME_PLWIDGET_ID_PARENT, PLWIDGETREL_COL_NAME_SEQUENCE, PLWIDGETSLOT_COL_NAME_ADMINNAME, PLWIDGETSLOT_COL_NAME_PAGELAYOUT_ID, PLWIDGETSLOT_COL_NAME_PLWIDGET_ID, PLWIDGETSLOT_COL_NAME_PLWIDGETSLOT_ID, PLWIDGETSLOT_COL_NAME_PROPERTIES, PLWIDGETSLOT_COL_NAME_SLOTID, PLWIDGETSLOT_COL_NAME_SLOTTYPE, S_IBM_IDENTIFIER, S_ISTRUE, SEOPAGEDEF_COL_NAME_CREATEDTIME, SEOPAGEDEF_COL_NAME_LASTUPDATE, SEOPAGEDEF_COL_NAME_OPTCOUNTER, SEOPAGEDEF_COL_NAME_PAGENAME, SEOPAGEDEF_COL_NAME_SEOPAGEDEF_ID, SEOPAGEDEF_COL_NAME_STOREENT_ID, SEOPAGEDEFDESC_COL_NAME_CREATEDTIME, SEOPAGEDEFDESC_COL_NAME_FIELD1, SEOPAGEDEFDESC_COL_NAME_FIELD2, SEOPAGEDEFDESC_COL_NAME_FIELD3, SEOPAGEDEFDESC_COL_NAME_IMAGE_ALT_DESC, SEOPAGEDEFDESC_COL_NAME_LANGUAGE_ID, SEOPAGEDEFDESC_COL_NAME_LASTUPDATE, SEOPAGEDEFDESC_COL_NAME_META_DESC, SEOPAGEDEFDESC_COL_NAME_META_KEYWORD, SEOPAGEDEFDESC_COL_NAME_OPTCOUNTER, SEOPAGEDEFDESC_COL_NAME_SEOPAGEDEF_ID, SEOPAGEDEFDESC_COL_NAME_TITLE, SEOPAGEDEFOVR_COL_NAME_APPLY_TO_CHILD, SEOPAGEDEFOVR_COL_NAME_OBJECT_ID, SEOPAGEDEFOVR_COL_NAME_OBJECTTYPE, SEOPAGEDEFOVR_COL_NAME_OPTCOUNTER, SEOPAGEDEFOVR_COL_NAME_SEOPAGEDEF_ID, SEOPAGEDEFOVR_COL_NAME_SEOPAGEDEFOVR_ID, SEOREDIRECT_COL_NAME_SEOREDIRECT_ID, SEOREDIRECT_COL_NAME_SEOURLKWD_ID_NEW, SEOREDIRECT_COL_NAME_SEOURLKWD_ID_ORIG, SEOURL_COL_NAME_CHANGE_FREQUENCY, SEOURL_COL_NAME_MOBILE_CHG_FREQ, SEOURL_COL_NAME_MOBILE_PRIORITY, SEOURL_COL_NAME_OPTCOUNTER, SEOURL_COL_NAME_PRIORITY, SEOURL_COL_NAME_SEOURL_ID, SEOURL_COL_NAME_TOKENNAME, SEOURL_COL_NAME_TOKENVALUE, SEOURLKEYWORD_COL_NAME_LANGUAGE_ID, SEOURLKEYWORD_COL_NAME_MOBILEURLKEYWORD, SEOURLKEYWORD_COL_NAME_OPTCOUNTER, SEOURLKEYWORD_COL_NAME_SEOURL_ID, SEOURLKEYWORD_COL_NAME_SEOURLKEYWORD_ID, SEOURLKEYWORD_COL_NAME_STATUS, SEOURLKEYWORD_COL_NAME_STOREENT_ID, SEOURLKEYWORD_COL_NAME_URLKEYWORD, STORE_COL_NAME_LANGUAGE_ID, STORE_COL_NAME_STORE_ID, STORECONF_COL_NAME_NAME, STORECONF_COL_NAME_STORE_ID, STORECONF_COL_NAME_VALUE, STORECONF_DEVICE_CLASS_NAME, STOREPLTYPES_COL_NAME_OPTCOUNTER, STOREPLTYPES_COL_NAME_PAGELAYOUTTYPE_ID, STOREPLTYPES_COL_NAME_STOREENT_ID, STOREPLTYPES_COL_NAME_VIEWNAME, TABLE_NAME_DMACTIVITY, TABLE_NAME_DMELEMENT, TABLE_NAME_DMELEMENTNVP, TABLE_NAME_DMTRIGLSTN, TABLE_NAME_EMSPOT, TABLE_NAME_PAGELAYOUT, TABLE_NAME_PAGELAYOUTTYPE, TABLE_NAME_PLLOCATION, TABLE_NAME_PLPAGE, TABLE_NAME_PLSTOREWIDGET, TABLE_NAME_PLTEMPLATEREL, TABLE_NAME_PLWIDGET, TABLE_NAME_PLWIDGETDEF, TABLE_NAME_PLWIDGETDEFDESC, TABLE_NAME_PLWIDGETNVP, TABLE_NAME_PLWIDGETREL, TABLE_NAME_PLWIDGETSLOT, TABLE_NAME_SEOPAGEDEF, TABLE_NAME_SEOPAGEDEFDESC, TABLE_NAME_SEOPAGEDEFOVR, TABLE_NAME_SEOREDIRECT, TABLE_NAME_SEOURL, TABLE_NAME_SEOURLKEYWORD, TABLE_NAME_STORE, TABLE_NAME_STORECONF, TABLE_NAME_STOREPLTYPES, TRUE, XPATH_LAYOUT_IDENTIFIER_PATH_EXTERNAL_NAME, XPATH_LAYOUT_IDENTIFIER_PATH_UNIQUE_ID, XPATH_LAYOUT_PART_NAME_LAYOUT_IDENTIFIER, XPATH_LAYOUT_PART_NAME_PAGELOCATION, XPATH_LAYOUT_PART_NAME_TEMPLATE_IDENTIFIER, XPATH_LAYOUT_PART_NAME_USERDATA, XPATH_LAYOUT_PART_NAME_WIDGET, XPATH_LAYOUT_PATH_PAGELOCATION_ACTIVITYID, XPATH_LAYOUT_PATH_PAGELOCATION_IDENTIFIER, XPATH_LAYOUT_PATH_PAGELOCATION_PAGE, XPATH_LAYOUT_PATH_PAGELOCATION_PAGE_NAME, XPATH_LAYOUT_PATH_PAGELOCATION_PAGEIDENTIFIER, XPATH_LAYOUT_PATH_PAGELOCATION_PAGELOCATIONID, XPATH_LAYOUT_PATH_PAGELOCATION_SCHEDULE_ENDDATE, XPATH_LAYOUT_PATH_PAGELOCATION_SCHEDULE_PRIORITY, XPATH_LAYOUT_PATH_PAGELOCATION_SCHEDULE_STARTDATE, XPATH_NAME_LAYOUT_TYPE, XPATH_NAME_PAGE_TYPE, XPATH_NAME_WIDGETDEFINITION_TYPE, XPATH_PAGE_IDENTIFIERNAME, XPATH_PAGE_PART_NAME_PAGE_IDENTIFIER, XPATH_PAGE_PATH_UNIQUE_ID, XPATH_PART_NAME_LANGUAGE, XPATH_PART_NAME_UNIQUE_ID, XPATH_TEMPLATE_IDENTIFIER_PATH_EXTERNAL_NAME, XPATH_TEMPLATE_IDENTIFIER_PATH_UNIQUE_ID, XPATH_WIDGET_PATH_CHILDWIDGET_IDENTIFIER_NAME, XPATH_WIDGET_PATH_CHILDWIDGET_IDENTIFIER_UNIQUEID, XPATH_WIDGET_PATH_CHILDWIDGET_INTERNAL_SLOTID, XPATH_WIDGET_PATH_CHILDWIDGET_SLOT_IDENTIFIER_NAME, XPATH_WIDGET_PATH_CHILDWIDGET_SLOT_POSITION_PROPERTIES, XPATH_WIDGET_PATH_CHILDWIDGET_SLOT_TYPE, XPATH_WIDGET_PATH_CHILDWIDGETDEFINITION_IDENTIFIERNAME, XPATH_WIDGET_PATH_CHILDWIDGETDEFINITION_UNIQUEID, XPATH_WIDGET_PATH_IDENTIFIERNAME, XPATH_WIDGET_PATH_UNIQUE_ID, XPATH_WIDGETDEFINITION_PART_NAME_DESCRIPTION, XPATH_WIDGETDEFINITION_PART_NAME_WIDGET_IDENTIFIER, XPATH_WIDGETDEFINITION_PATH_DESCRIPTION_DESCRIPTION, XPATH_WIDGETDEFINITION_PATH_DESCRIPTION_DISPLAYNAME, XPATH_WIDGETDEFINITION_PATH_IDENTIFIER_IDENTIFIER, XPATH_WIDGETDEFINITION_PATH_IDENTIFIER_UNIQUE_ID
Constructor and Description |
---|
AbstractBasePageLayoutMediator() |
Modifier and Type | Method and Description |
---|---|
void |
close()
This method will perform cleanup on the business object mediator.
|
java.lang.String |
getNameByDmactivityIdAndStoreIdFromDmactivity(java.lang.String dmActivityID,
java.lang.String storeID)
Find the NAME from DMACTIVITY table
|
void |
init()
This method performs initialization for the page layout mediator
Initialization tasks include:
Retrieve and set resolved context data from context services.
|
java.lang.String[] |
resolveIdentifier(java.lang.Integer storeID,
java.lang.String inMemberID,
java.lang.String pageGroupType,
java.lang.String identifier)
Resolve the categoryID or catentryID based on the pagegroup type and identifier
|
static java.lang.String |
resolveOwnerIDByStoreID(java.lang.String storeId)
Resolves the owner id (MEMBER_ID column of STOREENT table) according to store id (STOREENT_ID column of STOREENT table).
|
static java.lang.String |
resolveOwnerIDByStoreIdentifier(java.lang.String storeIdentifier)
Resolves the owner id (MEMBER_ID column of STOREENT table) according to store identifier (IDENTIFIER column of STOREENT table).
|
static java.lang.String |
resolveOwnerIDByStoreIdentifierType(StoreIdentifierType storeIdentifierType)
Resolves the owner id (MEMBER_ID column of STOREENT table) according to store identifier noun part (StoreIdentifierType).
|
static java.lang.Integer |
resolveStoreIDByStoreIdentifier(java.lang.String storeIdentifier)
Resolves the store id (STOREENT_ID column of STOREENT table) according to store identifier (IDENTIFIER column of STOREENT table).
|
static java.lang.Integer |
resolveStoreIDByStoreIdentifierType(StoreIdentifierType storeIdentifierType)
Resolves the store id (STOREENT_ID column of STOREENT table) according to store identifier noun part (StoreIdentifierType).
|
execute, getConfigProperties, getEndKey, getStartKey, initConfig, postProcess, preProcess, setConfigProperties
public void init() throws DataLoadException
init
in interface BusinessObjectMediator
init
in class AbstractBusinessObjectMediator
DataLoadException
- An application exception will be thrown if there was a problem retrieving the business contexts.public void close() throws DataLoadException
This method will perform cleanup on the business object mediator. It will attempt to close all of the data writers configured for this business object mediator.
This method will flush and commit any data waiting to be persisted in the batch as well as clear the ID resolver cache.
close
in interface BusinessObjectMediator
close
in class AbstractBusinessObjectMediator
DataLoadException
- An application exception will be thrown if there was a problem closing the business object mediator or its data writers.public static java.lang.Integer resolveStoreIDByStoreIdentifierType(StoreIdentifierType storeIdentifierType) throws DataLoadApplicationException
storeIdentifierType
- the store identifier typeDataLoadApplicationException
- An application exception will be thrown if there was a problem resolving the store id.public static java.lang.Integer resolveStoreIDByStoreIdentifier(java.lang.String storeIdentifier)
storeIdentifier
- the store identifierpublic static java.lang.String resolveOwnerIDByStoreIdentifierType(StoreIdentifierType storeIdentifierType) throws DataLoadApplicationException
storeIdentifierType
- the store identifier typeDataLoadApplicationException
- an application exception will be thrown if the store identifier can not be found.public static java.lang.String resolveOwnerIDByStoreIdentifier(java.lang.String storeIdentifier) throws DataLoadApplicationException
storeIdentifier
- the store identifierDataLoadApplicationException
- an application exception will be thrown if the store identifier can not be found.public static java.lang.String resolveOwnerIDByStoreID(java.lang.String storeId)
storeId
- the store idpublic java.lang.String[] resolveIdentifier(java.lang.Integer storeID, java.lang.String inMemberID, java.lang.String pageGroupType, java.lang.String identifier) throws DataLoadException
storeID
- The store IDinMemberID
- The member IDpageGroupType
- The pageGroup typeidentifier
- The identifierDataLoadException
- An application exception will be thrown if there was a problem resolving the identifierpublic java.lang.String getNameByDmactivityIdAndStoreIdFromDmactivity(java.lang.String dmActivityID, java.lang.String storeID) throws DataLoadException
dmActivityID
- The name of pagestoreID
- The layout IDDataLoadException
- An application exception will be thrown if there was a problem with the SQL call