|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.GenericService
atg.commerce.catalog.CatalogTools
atg.commerce.catalog.custom.CustomCatalogTools
atg.projects.store.catalog.StoreCatalogTools
public class StoreCatalogTools
The extensions to ootb CatalogTools. At the time of its writing, all it contained were the ids of the Store catalog and the corresponding repository items.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string. |
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 | |
---|---|
StoreCatalogTools()
|
Method Summary | |
---|---|
atg.repository.RepositoryItem |
getCatalog(java.lang.String pCatalogId)
Get the catalog with the given id. |
java.util.List |
getPossibleSizes(java.util.Collection pSkus)
Returns the list of possible sizes for a given collection of skus. |
java.util.List |
getPossibleValuesForSkus(java.util.Collection pSkus,
java.lang.String pPropertyName)
Returns the list of possible values for a given collection of skus. |
java.util.Collection |
getProductChildSkus(atg.repository.RepositoryItem pProduct)
Returns a product's child skus. |
java.util.Map |
getPropertyToFilterMap()
Getter-method for mPropertyToFilterMap field. |
java.util.Map |
getPropertyToLabelMap()
Getter-method for mPropertyToLabelMap field. |
java.lang.String |
getRootNavigationCategoryId()
|
java.lang.String[] |
getSizeSortOrder()
|
java.util.List<java.lang.String> |
getSortedSizes(java.util.Collection<atg.repository.RepositoryItem> pSkus)
Obtains a list of sizes used by SKUs specified. |
void |
setPropertyToFilterMap(java.util.Map pPropertyToFilterMap)
Setter-method for mPropertyToFilterMap field. |
void |
setPropertyToLabelMap(java.util.Map pPropertyToLabelMap)
Setter-method for mPropertyToLabelMap field. |
void |
setRootNavigationCategoryId(java.lang.String pRootNavigationCategoryId)
|
void |
setSizeSortOrder(java.lang.String[] pSizeSortOrder)
|
java.util.List |
sortColors(java.util.List pColors)
Sorts a list of colors. |
java.util.List |
sortSizes(java.util.List pSizes)
Sorts sizes accoring to the configured template. |
java.util.List |
sortStrings(java.util.List pStrings,
java.lang.String[] pSortOrder)
Sorts the collection of strings relative to their ordinal position in the sort order array. |
Methods inherited from class atg.commerce.catalog.custom.CustomCatalogTools |
---|
computeRecursedRootSubCatalogs, determineCatalog, determineCatalog, doStartService, 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, 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, verifyCatalog, verifyCatalog, walkUpCategoryTree |
Methods inherited from class atg.commerce.catalog.CatalogTools |
---|
findCatalog, getAlternateCatalogs, getBaseCategoryItemType, getBaseMediaItemType, getBaseProductItemType, getBaseSKUItemType, getBeanInfo, getCatalog, getCatalogServiceLockName, getCatalogServiceLockTimeOut, getCategoryBeanInfos, getCategoryItemTypes, getParentCategoryPropertyName, getProductBeanInfos, getProductItemTypes, getSKUBeanInfos, getSKUItemTypes, getTypeInfo, isCategory, isItemType, isProduct, isSku, isUseDefaultCatalog, setAlternateCatalogs, setBaseCategoryItemType, setBaseMediaItemType, setBaseProductItemType, setBaseSKUItemType, setCatalog, setCatalogServiceLockName, setCatalogServiceLockTimeOut, setCategoryItemTypes, 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 |
---|
public static final java.lang.String CLASS_VERSION
Constructor Detail |
---|
public StoreCatalogTools()
Method Detail |
---|
public void setPropertyToLabelMap(java.util.Map pPropertyToLabelMap)
mPropertyToLabelMap
field.
pPropertyToLabelMap
- Map containing Property-to-Label pairspublic java.util.Map getPropertyToLabelMap()
mPropertyToLabelMap
field.
public void setPropertyToFilterMap(java.util.Map pPropertyToFilterMap)
mPropertyToFilterMap
field.
pPropertyToFilterMap
- Map containing Property-to-Filter pairspublic java.util.Map getPropertyToFilterMap()
mPropertyToFilterMap
field.
public java.lang.String getRootNavigationCategoryId()
public void setRootNavigationCategoryId(java.lang.String pRootNavigationCategoryId)
pRootNavigationCategoryId
- - new RootNavigationCategoryId.public java.lang.String[] getSizeSortOrder()
public void setSizeSortOrder(java.lang.String[] pSizeSortOrder)
pSizeSortOrder
- The SizeSortOrder used for displaying sizes.public atg.repository.RepositoryItem getCatalog(java.lang.String pCatalogId) throws atg.repository.RepositoryException
pCatalogId
- - catalog id
atg.repository.RepositoryException
- if error occurspublic java.util.List getPossibleSizes(java.util.Collection pSkus)
pSkus
- collection of skus
public java.util.List<java.lang.String> getSortedSizes(java.util.Collection<atg.repository.RepositoryItem> pSkus)
getSizeSortOrder()
property.
pSkus
- collection of SKUs sizes should be taken from.
getSizeSortOrder()
public java.util.List getPossibleValuesForSkus(java.util.Collection pSkus, java.lang.String pPropertyName)
pSkus
- collection of skuspPropertyName
- the property name of the sku to use.
public java.util.Collection getProductChildSkus(atg.repository.RepositoryItem pProduct)
pProduct
- - product
public java.util.List sortColors(java.util.List pColors)
pColors
- - list of pColors
public java.util.List sortSizes(java.util.List pSizes)
pSizes
- - list of sizes
getSizeSortOrder()
public java.util.List sortStrings(java.util.List pStrings, java.lang.String[] pSortOrder)
pStrings
- a collection of strings to sortpSortOrder
- the string array of possible values and their relative order.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |