public class CatalogMigrationService extends CatalogUpdateService
This class migrates a standard system to a custom catalog system. It creates one catalog item, and adds the categories designated as "rootCategories" to the rootCategories property of the catalog item. Then, it calls CatalogMaintenanceService to compute other necessary catalog properties.
CatalogCompletionService
atg.commerce.catalog.custom.TreeWalkUpdateService.ShadowBean, atg.commerce.catalog.custom.TreeWalkUpdateService.ShadowMapKey, atg.commerce.catalog.custom.TreeWalkUpdateService.UpdateRange, atg.commerce.catalog.custom.TreeWalkUpdateService.UpdateRangeViaGSA
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CATEGORY_MIGRATION_ITEM_TYPE |
static java.lang.String |
CLASS_VERSION
Class version string
|
GENERIC_LOOP, PROCESS_NAME_PREFIX
mJobId
SERVICE_INFO_KEY
AGS_GENANCESTORS, AGS_GENANCESTORS_FOR_CATEGORY, AGS_GENANCESTORS_FOR_PRODUCT, AGS_GENCATALOGS, AGS_GENCATALOGS_FOR_CATEGORY, AGS_GENCATALOGS_FOR_PRODUCT, AGS_GENCATALOGS_FOR_SKU, AGS_GENPARENTCATS, AGS_GENPROPERTIES, AGS_GENPROPERTIES_FOR_CATEGORY, AGS_GENPROPERTIES_FOR_PRODUCT, ANCESTORS_GENERATED, CATALOGS_UPDATED, CATALOGS_VERIFIED, CATEGORIES_VERIFIED, CUS_INVALID_PARENT_BRANCH, CUS_NAME_ALREADY_IN_USE, CUS_UNABLE_TO_GET_WS, CUS_UPDATECATALOGS, CUS_USING_CHECKED_IN_WS, CUS_VM_NOT_SET, CUS_WS_NOT_CREATED, CUS_WS_NOT_CREATED_INVALID_PARENT_BRANCH, CUS_WS_REQUIRED, CVS_VERIFYCATALOGS, CVS_VERIFYCATEGORIES, CVS_VERIFYPRODUCTS, CVS_VERIFYSKUS, DEFAULT_CATALOG_FOLDER_ITEM_TYPE, DEFAULT_CATALOG_ITEM_TYPE, DEFAULT_MAP_SIZE, GENERATED_ANCESTORS_MAP, INFOS_GENERATED, IS_ANCESTORS_GENERATED_MAP, LEVEL_DEBUG, LEVEL_ERROR, LEVEL_INFO, LEVEL_WARNING, MY_RESOURCE_NAME, NO_PATH, NOT_GENERATOR, sResourceBundle, TYPE_ANCESTOR, TYPE_CATALOGMAINTENANCE, TYPE_CUSTOM_MIGRATION, TYPE_MIGRATION, TYPE_UPDATE, TYPE_VERIFY, VALID_PATH
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
CatalogMigrationService() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCatalogDisplayName()
The property catalogDisplayName
|
java.lang.String |
getCatalogDisplayNamePropertyName()
The property catalogDisplayNamePropertyName
|
java.lang.String |
getCatalogFolderDisplayName()
The property catalogFolderDisplayName
|
java.lang.String |
getCatalogFolderDisplayNamePropertyName()
The property catalogFolderDisplayNamePropertyName
|
CatalogMaintenanceService |
getCatalogMaintenanceService()
Returns property catalogMaintenanceService
|
CatalogProperties |
getCatalogProperties()
A helper class that holds commonly accessed reposority property
and item names
|
MutableRepository |
getCatalogRepository()
Returns property catalogRepository
|
java.lang.String |
getCategoryMigrationItemType()
The name of the item-descriptor used for a categoryMigration item
|
atg.epub.PublishingWorkflowSession |
getPublishingWorkflowAutomator()
Gets the publishing workflow automator used to manage projects when service is run on publishing.
|
java.lang.String |
getRootPropertyName()
The Property rootPropertyName
|
java.lang.String |
getServiceName() |
javax.transaction.TransactionManager |
getTransactionManager()
The beginning and ending of transactions are handled by the
transaction manager.
|
void |
migrateCatalog() |
boolean |
performService() |
void |
setCatalogDisplayName(java.lang.String pCatalogDisplayName) |
void |
setCatalogDisplayNamePropertyName(java.lang.String pCatalogDisplayNamePropertyName) |
void |
setCatalogFolderDisplayName(java.lang.String pCatalogFolderDisplayName) |
void |
setCatalogFolderDisplayNamePropertyName(java.lang.String pCatalogFolderDisplayNamePropertyName) |
void |
setCatalogMaintenanceService(CatalogMaintenanceService pCatalogMaintenanceService)
Sets property catalogMaintenanceService
|
void |
setCatalogProperties(CatalogProperties pCatalogProperties) |
void |
setCatalogRepository(MutableRepository pCatalogRepository)
Sets property catalogRepository
|
void |
setCategoryMigrationItemType(java.lang.String pCategoryMigrationItemType) |
void |
setPublishingWorkflowAutomator(atg.epub.PublishingWorkflowSession pPublishingWorkflowAutomator)
Sets the publishing workflow automator used to manage projects when service is run on publishing.
|
void |
setRootPropertyName(java.lang.String pRootPropertyName) |
void |
setTransactionManager(javax.transaction.TransactionManager pTransactionManager) |
getNameToLog, getProjectActivityID, getStartWorkflowSession, getUpdateWorkspace, goingDownUpdateItem, goingUpUpdateItem, importEnded, importStarted, setProjectActivityID, setStartWorkflowSession, setUpdateWorkspace, updateCatalog, updateCatalog
buildParentCategoriesForCatalog, getCatalogIds, getCatalogTools, getCategoryLeafNodeArray, getCompletedItems, getDatabaseProductName, getDynamicChildrenList, getDynamicProducts, getDynamicProductsMap, getMaxItemsPerTransaction, getProcessName, getProjectWorkflow, getRangeQueryRows, getRepository, getServiceFunctions, getSizeOfBatch, isCatalogFoundInTreeStep, isComputeSubCatalogs, isIncludeDynamicChildren, performService, processTree, processTreeItems, recurseTreeAndGetCategories, setCatalogFoundInTreeStep, setCatalogIds, setCatalogTools, setCompletedItems, setComputeSubCatalogs, setDatabaseProductName, setDynamicProductsMap, setIncludeDynamicChildren, setMaxItemsPerTransaction, setProjectWorkflow, setPropertyValueAddAll, setRangeQueryRows, setRepository, setServiceFunctions, setSizeOfBatch, stringIt, stringIt, subProcessTree, treeStep, updateDynamicChildren, updateProducts, updateProductsViaBatch, updateRepository, updateRepositoryItem, updateSkus, updateSkusViaBatch
addErrorMessage, addInfoMessage, addWarningMessage, clearBookkeepingForThread, clearMessages, createCMSMessage, doScheduledTask, doService, getAvailableFunctions, getBookkeepingForThread, getCurrentMessages, getErrorMessages, getFunctionsToPerformByDefault, getInfoMessages, getServiceLock, getTotalNumberOfErrorMessages, getTotalNumberOfInfoMessages, getTotalNumberOfMessages, getTotalNumberOfWarningMessages, getWarningMessages, hasFunction, isSaveMessages, logDebug, logError, logInfo, logWarning, postService, preService, removeServiceLock, setAvailableFunctions, setFunctionsToPerformByDefault, setSaveMessages
acquireLock, getClientLockManager, getLockName, getLockTimeOut, performScheduledTask, releaseLock, setClientLockManager, setLockName, setLockTimeOut
doStartService, doStopService, getJobDescription, getJobId, getJobName, getSchedule, getScheduler, getThreadMethod, getThreadMethodString, isTransactional, setJobDescription, setJobName, setSchedule, setScheduler, setThreadMethod, setThreadMethodString, setTransactional, startScheduledJob, stopScheduledJob
addLogListener, createAdminServlet, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logError, logError, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public static final java.lang.String CLASS_VERSION
public static java.lang.String CATEGORY_MIGRATION_ITEM_TYPE
public void setCatalogProperties(CatalogProperties pCatalogProperties)
setCatalogProperties
in class atg.commerce.catalog.custom.TreeWalkUpdateService
public CatalogProperties getCatalogProperties()
getCatalogProperties
in class atg.commerce.catalog.custom.TreeWalkUpdateService
public void setCatalogRepository(MutableRepository pCatalogRepository)
public MutableRepository getCatalogRepository()
public void setCatalogMaintenanceService(CatalogMaintenanceService pCatalogMaintenanceService)
public CatalogMaintenanceService getCatalogMaintenanceService()
public void setCatalogDisplayName(java.lang.String pCatalogDisplayName)
public java.lang.String getCatalogDisplayName()
public void setCatalogDisplayNamePropertyName(java.lang.String pCatalogDisplayNamePropertyName)
public java.lang.String getCatalogDisplayNamePropertyName()
public void setCatalogFolderDisplayName(java.lang.String pCatalogFolderDisplayName)
public java.lang.String getCatalogFolderDisplayName()
public void setCatalogFolderDisplayNamePropertyName(java.lang.String pCatalogFolderDisplayNamePropertyName)
public java.lang.String getCatalogFolderDisplayNamePropertyName()
public void setCategoryMigrationItemType(java.lang.String pCategoryMigrationItemType)
public java.lang.String getCategoryMigrationItemType()
public void setRootPropertyName(java.lang.String pRootPropertyName)
public java.lang.String getRootPropertyName()
public void setTransactionManager(javax.transaction.TransactionManager pTransactionManager)
setTransactionManager
in class atg.commerce.catalog.CMSService
public javax.transaction.TransactionManager getTransactionManager()
getTransactionManager
in class atg.commerce.catalog.CMSService
public atg.epub.PublishingWorkflowSession getPublishingWorkflowAutomator()
getPublishingWorkflowAutomator
in class CatalogUpdateService
public void setPublishingWorkflowAutomator(atg.epub.PublishingWorkflowSession pPublishingWorkflowAutomator)
setPublishingWorkflowAutomator
in class CatalogUpdateService
pPublishingWorkflowAutomator
- The PublishingWorkflowAutomator for this service.public java.lang.String getServiceName()
getServiceName
in class CatalogUpdateService
public boolean performService()
performService
in class atg.commerce.catalog.CMSService
public void migrateCatalog()