public abstract class AbstractPageMediator extends AbstractBasePageLayoutMediator
Modifier and Type | Field and Description |
---|---|
static java.lang.Integer | SEOURLKEYWORD_STATUS_ACTIVE
SEO URL keyword status active.
|
static java.lang.Integer | SEOURLKEYWORD_STATUS_EXPIRED
SEO URL keyword status expired.
|
static java.lang.Integer | SEOURLKEYWORD_STATUS_INACTIVE
SEO URL keyword status inactive.
|
Constructor and Description |
---|
AbstractPageMediator() |
Modifier and Type | Method and Description |
---|---|
protected void | clearUniqueID()
Remove the unique ids being set.
|
void | close()
This method will perform cleanup on the business object mediator.
|
protected java.lang.String | getActiveSeourlKeywordIDBySeourlIDAndLangId(java.lang.String seourlID, java.lang.Integer langId)
Get the SEOURLKEYWORD table columns
|
PageType | getPage()
Gets the PAGE logical noun.
|
java.lang.String | getPageAdminName()
Gets PAGE Admin name
|
java.lang.String | getPageGroup()
Gets page grou
|
java.lang.String | getPageID()
Gets PAGE id
|
protected java.lang.String | getSeopagedefIdByPagenameAndStoreId(java.lang.String pageName, java.lang.Integer storeId)
Find the SEOPAGEDEF_ID from the SEOPAGEDEF table based on pagename and store ID
|
protected java.util.List<java.lang.String> | getSeourlKeywordListBySeourlIDAndLangId(java.lang.String seourlID, java.lang.Integer langId)
Get the SEOURLKEYWORD table columns
|
protected java.lang.Integer | getStoreDefaultLanguageID(java.lang.Integer storeId)
Get the default language ID of the store
|
void | init()
This method performs initialization for the page layout mediator Initialization tasks include: Retrieve and set resolved context data from context services.
|
protected boolean | isLoadSEO()
Whether or not to load SEO
|
protected boolean | isSetSEOProperties(com.ibm.commerce.foundation.common.datatypes.SEOPropertiesType seoProperties)
Answers whether the seoProperties is set and not trivial.
|
protected void | populateSEO(PageType page)
Populates the physical objects of SEOxxxxx tables from the Page logical object.
|
protected java.util.List | populateSEOPAGEDEF(java.util.List<com.ibm.commerce.foundation.common.datatypes.SEOPropertiesType> seoPropertiesList, java.lang.String pageGroup, java.lang.String pageID, boolean deleteFlag)
Populates physical objects of SEOPAGEDEF table from a list of SEOPropertiesType logical objects.
|
protected TableDataObject | populateSEOPAGEDEF(com.ibm.commerce.foundation.common.datatypes.SEOPropertiesType seoProperties, java.lang.String pageGroup, java.lang.String pageID, boolean deleteFlag)
Populates a physical object of SEOPAGEDEF table from the SEOPropertiesType logical object.
|
protected java.util.List | populateSEOPAGEDEFDESC(java.util.List<com.ibm.commerce.foundation.common.datatypes.SEOPropertiesType> seoPropertiesList, java.lang.String seoPageDefId, boolean deleteFlag)
Populates physical objects of SEOPAGEDEFDESC table from a list of SEOPropertiesType logical objects.
|
protected TableDataObject | populateSEOPAGEDEFDESC(com.ibm.commerce.foundation.common.datatypes.SEOPropertiesType seoProperties, java.lang.String seoPageDefId, boolean deleteFlag)
Populates a physical object of SEOPAGEDEFDESC table from the SEOPropertiesType logical object.
|
protected TableDataObject | populateSEOPAGEDEFOVR(java.lang.String seoPageDefId, java.lang.String objectType, java.lang.String objectId, boolean deleteFlag)
Populates a physical object of SEOPAGEDEFOVR.
|
protected java.util.List | populateSEOURL(java.util.List<com.ibm.commerce.foundation.common.datatypes.SEOURLType> urlList, java.lang.String pageID)
Populates physical objects of SEOURL table from a list of SEOURLType logical objects.
|
protected TableDataObject | populateSEOURL(java.lang.String tokenName, java.lang.String tokenValue)
Populates a physical object of SEOURL table.
|
protected java.util.List | populateSEOURLKEYWORD(java.util.List<com.ibm.commerce.foundation.common.datatypes.SEOURLKeywordType> urlKeywordList, java.lang.String seoUrlId, java.lang.String seoUrlKeywordId, java.lang.Integer storeId)
Populates physical objects of SEOURLKEYWORD table from a list of SEOURLKeywordType logical objects.
|
protected TableDataObject | populateSEOURLKEYWORD(java.lang.String seoUrlId, java.lang.String seoUrlKeywordId, java.lang.Integer storeId, java.lang.String languageId, java.lang.String keyword)
Populates a physical object of SEOURLKEYWORD table from the SEOURLKeywordType logical object.
|
protected void | processPageIdentifier(PageIdentifierType pageIdentifierType)
Processes the PAGE Identifier logical noun part and sets page identifier, store id, owner id according to the noun part and the values in the business context.
|
protected void | reset()
Resets instance variables to their initial values.
|
protected java.lang.String | resolveOwnerIDByPageIdentifierType(PageExternalIdentifierType pageExternalIdentifierType)
Resolves the owner id of the PAGE according to PAGE external identifier noun part.
|
void | setPage(PageType page)
Sets the PAGE logical noun.
|
void | setPageAdminName(java.lang.String pageAdminName)
Sets PAGE Admin name
|
void | setPageGroup(java.lang.String pageGroup)
Sets page group
|
void | setPageID(java.lang.String pageID)
Sets PAGE id
|
public static final java.lang.Integer SEOURLKEYWORD_STATUS_INACTIVE
public static final java.lang.Integer SEOURLKEYWORD_STATUS_ACTIVE
public static final java.lang.Integer SEOURLKEYWORD_STATUS_EXPIRED
public void init() throws DataLoadException
protected void clearUniqueID()
protected void reset()
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.
protected void processPageIdentifier(PageIdentifierType pageIdentifierType) throws DataLoadException
protected java.lang.String resolveOwnerIDByPageIdentifierType(PageExternalIdentifierType pageExternalIdentifierType) throws DataLoadException
protected java.lang.String getSeopagedefIdByPagenameAndStoreId(java.lang.String pageName, java.lang.Integer storeId) throws DataLoadException
protected java.lang.Integer getStoreDefaultLanguageID(java.lang.Integer storeId) throws DataLoadException
protected java.util.List<java.lang.String> getSeourlKeywordListBySeourlIDAndLangId(java.lang.String seourlID, java.lang.Integer langId) throws DataLoadException
protected java.lang.String getActiveSeourlKeywordIDBySeourlIDAndLangId(java.lang.String seourlID, java.lang.Integer langId) throws DataLoadException
protected void populateSEO(PageType page) throws DataLoadException
protected java.util.List populateSEOURL(java.util.List<com.ibm.commerce.foundation.common.datatypes.SEOURLType> urlList, java.lang.String pageID) throws DataLoadException
protected TableDataObject populateSEOURL(java.lang.String tokenName, java.lang.String tokenValue) throws DataLoadException
protected java.util.List populateSEOURLKEYWORD(java.util.List<com.ibm.commerce.foundation.common.datatypes.SEOURLKeywordType> urlKeywordList, java.lang.String seoUrlId, java.lang.String seoUrlKeywordId, java.lang.Integer storeId) throws DataLoadException
protected TableDataObject populateSEOURLKEYWORD(java.lang.String seoUrlId, java.lang.String seoUrlKeywordId, java.lang.Integer storeId, java.lang.String languageId, java.lang.String keyword) throws DataLoadException
protected java.util.List populateSEOPAGEDEF(java.util.List<com.ibm.commerce.foundation.common.datatypes.SEOPropertiesType> seoPropertiesList, java.lang.String pageGroup, java.lang.String pageID, boolean deleteFlag) throws DataLoadException
protected TableDataObject populateSEOPAGEDEF(com.ibm.commerce.foundation.common.datatypes.SEOPropertiesType seoProperties, java.lang.String pageGroup, java.lang.String pageID, boolean deleteFlag) throws DataLoadException
protected java.util.List populateSEOPAGEDEFDESC(java.util.List<com.ibm.commerce.foundation.common.datatypes.SEOPropertiesType> seoPropertiesList, java.lang.String seoPageDefId, boolean deleteFlag) throws DataLoadException
protected TableDataObject populateSEOPAGEDEFDESC(com.ibm.commerce.foundation.common.datatypes.SEOPropertiesType seoProperties, java.lang.String seoPageDefId, boolean deleteFlag) throws DataLoadException
protected TableDataObject populateSEOPAGEDEFOVR(java.lang.String seoPageDefId, java.lang.String objectType, java.lang.String objectId, boolean deleteFlag) throws DataLoadException
protected boolean isSetSEOProperties(com.ibm.commerce.foundation.common.datatypes.SEOPropertiesType seoProperties)
protected boolean isLoadSEO()
public PageType getPage()
public void setPage(PageType page)
public java.lang.String getPageID()
public void setPageID(java.lang.String pageID)
public java.lang.String getPageAdminName()
public void setPageAdminName(java.lang.String pageAdminName)
public java.lang.String getPageGroup()
public void setPageGroup(java.lang.String pageGroup)