atg.projects.store.catalog
Class InternationalizedStoreCatalogTools

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.GenericService
          extended by atg.commerce.catalog.CatalogTools
              extended by atg.commerce.catalog.custom.CustomCatalogTools
                  extended by atg.projects.store.catalog.StoreCatalogTools
                      extended by atg.projects.store.catalog.InternationalizedStoreCatalogTools
All Implemented Interfaces:
atg.commerce.catalog.CMSConstants, atg.dms.registry.MessageTyper, atg.naming.AbsoluteNameable, atg.naming.NameContextBindingListener, atg.naming.NameContextElement, atg.naming.NameContextParentable, atg.naming.NameResolver, atg.nucleus.AdminableService, atg.nucleus.Configured, atg.nucleus.logging.ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, atg.nucleus.logging.VariableArgumentApplicationLogging, atg.nucleus.naming.ComponentNameResolver, atg.nucleus.Service, atg.nucleus.ServiceListener, java.util.EventListener

public class InternationalizedStoreCatalogTools
extends StoreCatalogTools

StoreCatalogTools implementation with Internationalization support.

Version:
$Id: //hosting-blueprint/B2CBlueprint/version/10.2.1/EStore/International/src/atg/projects/store/catalog/InternationalizedStoreCatalogTools.java#3 $$Change: 797523 $
Author:
ATG
See Also:
StoreCatalogTools

Field Summary
static java.lang.String CLASS_VERSION
          Class version
 
Fields inherited from class atg.commerce.catalog.CatalogTools
DEFAULT_CATEGORY_ITEM_TYPE, DEFAULT_PRODUCT_ITEM_TYPE, DEFAULT_SKU_ITEM_TYPE
 
Fields inherited from class atg.nucleus.GenericService
SERVICE_INFO_KEY
 
Fields inherited from interface atg.commerce.catalog.CMSConstants
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
 
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging
DEFAULT_LOG_TRACE_STATUS
 
Fields inherited from interface atg.nucleus.logging.ApplicationLogging
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
 
Constructor Summary
InternationalizedStoreCatalogTools()
           
 
Method Summary
 void doStartService()
          This method tries to set the defaultCatalog property.
 java.util.List<java.lang.String> getSortedSizes(java.util.Collection<atg.repository.RepositoryItem> pSkus)
          Obtains a list of sizes used by SKUs specified.
 
Methods inherited from class atg.projects.store.catalog.StoreCatalogTools
getCatalog, getPossibleSizes, getPossibleValuesForSkus, getProductChildSkus, getPropertyToFilterMap, getPropertyToLabelMap, getRootNavigationCategoryId, getSizeSortOrder, setPropertyToFilterMap, setPropertyToLabelMap, setRootNavigationCategoryId, setSizeSortOrder, sortColors, sortSizes, sortStrings
 
Methods inherited from class atg.commerce.catalog.custom.CustomCatalogTools
computeRecursedRootSubCatalogs, determineCatalog, determineCatalog, filterCollectionByCatalog, filterCollectionByCatalogs, findCatalogItem, findCatalogItem, findCatalogItems, findCatalogItems, findCategories, findCategories, findCategories, findCategories, findCategory, findCategory, findCategory, findCategory, findProduct, findProduct, findProduct, findProduct, findProducts, findProducts, findProducts, findProducts, findSKU, findSKU, findSKU, findSKU, findSKUs, findSKUs, findSKUs, findSKUs, fromList, getAllAncestorCategories, getAncestors, getAncestors, getBaseCatalogFolderItemType, getBaseCatalogItemType, getCatalogBeanInfos, getCatalogFolderBeanInfos, getCatalogFolderItemTypes, getCatalogForSite, getCatalogForSite, getCatalogItemTypes, getCatalogProperties, getCatalogQueryBuilder, getCatalogs, getCatalogsContainingThisCatalog, getCatalogsForRepository, getCatalogsProperty, getCatalogsThatIncludeCatalogInRootSubCatalogs, getCatalogsWithCategoryAsRoot, getCategoriesContainingThisCatalog, getCategoriesContainingThisCategorysCatalog, getCategoriesInCatalog, getCategoriesWithCatalogAsSubCatalog, getCategoriesWithIndirectPathToCatalog, getCategoriesWithIndirectPathToCategory, getCategorysInfoMapProperty, getCommerceSitePropertiesManager, getContextValueRetriever, getCurrentCatalog, getDefaultCatalog, getDefaultCatalogId, getEnclosingCatalogsForCategory, getKeyFromCatalog, getParentCategories, getParentCategory, getProductsCategories, getProductsInfoMapProperty, getProfileCatalogPropertyName, getRootCategoriesForCatalog, getSkusInfoMapProperty, getStatePropertyName, getTrackState, getTransactionManager, isCatalog, isCatalogFolder, isCategoryReferenced, isReturnEmptyResults, isSaveCachedAncestors, isVerifyCatalog, removeQuerySiteConstraints, setBaseCatalogFolderItemType, setBaseCatalogItemType, setCatalogFolderItemTypes, setCatalogItemTypes, setCatalogProperties, setCatalogsProperty, setCategorysInfoMapProperty, setCommerceSitePropertiesManager, setContextValueRetriever, setDefaultCatalog, setDefaultCatalogId, setProductsInfoMapProperty, setProfileCatalogPropertyName, setReturnEmptyResults, setSaveCachedAncestors, setSkusInfoMapProperty, setState, setState, setStatePropertyName, setTrackState, setTransactionManager, setVerifyCatalog, toList, verifyCatalog, verifyCatalog, walkUpCategoryTree
 
Methods inherited from class atg.commerce.catalog.CatalogTools
findCatalog, getAlternateCatalogs, getBaseCategoryItemType, getBaseMediaItemType, getBaseProductItemType, getBaseSKUItemType, getBeanInfo, getCatalog, getCatalogServiceLockName, getCatalogServiceLockTimeOut, getCategoryBeanInfos, getCategoryItemTypes, getOnlineOnlyPropertyName, getParentCategoryPropertyName, getProductBeanInfos, getProductItemTypes, getSKUBeanInfos, getSKUItemTypes, getTypeInfo, isCategory, isItemType, isOnlineOnly, isOnlineOnly, isProduct, isSku, isUseDefaultCatalog, setAlternateCatalogs, setBaseCategoryItemType, setBaseMediaItemType, setBaseProductItemType, setBaseSKUItemType, setCatalog, setCatalogServiceLockName, setCatalogServiceLockTimeOut, setCategoryItemTypes, setOnlineOnlyPropertyName, setParentCategoryPropertyName, setProductItemTypes, setSKUItemTypes, setUseDefaultCatalog
 
Methods inherited from class atg.nucleus.GenericService
addLogListener, createAdminServlet, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
 
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static final java.lang.String CLASS_VERSION
Class version

See Also:
Constant Field Values
Constructor Detail

InternationalizedStoreCatalogTools

public InternationalizedStoreCatalogTools()
Method Detail

getSortedSizes

public java.util.List<java.lang.String> getSortedSizes(java.util.Collection<atg.repository.RepositoryItem> pSkus)
Obtains a list of sizes used by SKUs specified. This list will be sorted in correspondence to the getSizeSortOrder() property.

Overrides:
getSortedSizes in class StoreCatalogTools
Parameters:
pSkus - collection of SKUs sizes should be taken from.
Returns:
a List of sizes.
See Also:
StoreCatalogTools.getSizeSortOrder()

doStartService

public void doStartService()
                    throws atg.nucleus.ServiceException
This method tries to set the defaultCatalog property. If defaultCatalogId is configured in the properties file, that ID is used. If defaultCatalogId is null and the repository contains exactly one catalog item, that item becomes the default. Otherwise, defaultCatalog remains null.

Overrides:
doStartService in class atg.commerce.catalog.custom.CustomCatalogTools
Throws:
atg.nucleus.ServiceException - - if error occurs