|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.commerce.catalog.custom.SubCatalogsGeneratorService
public class SubCatalogsGeneratorService
This class will update each catalogs "subCatalogs" property with a
list of all the sub catalogs (and their sub catalogs, etc.)
The following properties will be updated by this service:
catalog.allRootCategories
catalog.allRootCategoryIds
catalog.subCatalogs
catalog.subCatalogsIds
category.subCatalogsChildCategories
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
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 | |
---|---|
SubCatalogsGeneratorService()
|
Method Summary | |
---|---|
void |
generateCategorysSubCategories()
Update each categorys list of categories from sub catalogs The following properties will be updated:
category.subCatalogsChildCategories
|
void |
generateCategorysSubCategories(Repository pCatalogRepository)
Update each categories subCatalogsChildCategories property
for all categories in the given repository. |
protected java.util.Collection |
generateEmptySet(java.lang.String pPropertyName)
This method generates an empty set. |
void |
generateSubCatalogs()
Generate and update the values of the subCatalogs property for all catalogs in all specified product catalogs. |
void |
generateSubCatalogs(Repository pCatalogRepository)
Generate and update the values of the subCatalogs property for all catalogs in the specified product catalog repository. |
java.util.Collection |
generateSubCatalogs(Repository pCatalogRepository,
java.util.Collection pCatalogIds)
Generate and update the values of the subCatalogs property for all catalogs in the specified product catalog repository. |
CatalogProperties |
getCatalogProperties()
A helper class that holds commonly accessed reposority property and item names |
java.lang.String[] |
getCatalogRepositories()
Returns property catalogRepositories |
CustomCatalogTools |
getCatalogTools()
Returns property catalogTools |
int |
getMaxItemsPerTransaction()
Returns property maxItemsPerTransaction |
javax.transaction.TransactionManager |
getTransactionManager()
Returns property transactionManager |
void |
setCatalogProperties(CatalogProperties pCatalogProperties)
|
void |
setCatalogRepositories(java.lang.String[] pCatalogRepositories)
Sets property catalogRepositories |
void |
setCatalogTools(CustomCatalogTools pCatalogTools)
Sets property catalogTools |
void |
setMaxItemsPerTransaction(int pMaxItemsPerTransaction)
Sets property maxItemsPerTransaction |
void |
setTransactionManager(javax.transaction.TransactionManager pTransactionManager)
Sets property transactionManager |
void |
updateSubCatalogInformation()
This is the main method of this class. |
java.util.Collection |
updateSubCatalogInformation(java.util.Collection pCatalogIds)
This is the main method of this class. |
void |
updateSubCatalogInformation(Repository pCatalogRepository)
This method will call generateSubCatalogs and
generateCategorysSubCategories with the given repository. |
java.util.Collection |
updateSubCatalogInformation(Repository pCatalogRepository,
java.util.Collection pCatalogIds)
This method will call generateSubCatalogs and
generateCategorysSubCategories with the given
repository. |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, 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 SubCatalogsGeneratorService()
Method Detail |
---|
public void setCatalogProperties(CatalogProperties pCatalogProperties)
public CatalogProperties getCatalogProperties()
public void setCatalogTools(CustomCatalogTools pCatalogTools)
public CustomCatalogTools getCatalogTools()
public void setCatalogRepositories(java.lang.String[] pCatalogRepositories)
public java.lang.String[] getCatalogRepositories()
public void setTransactionManager(javax.transaction.TransactionManager pTransactionManager)
public javax.transaction.TransactionManager getTransactionManager()
public void setMaxItemsPerTransaction(int pMaxItemsPerTransaction)
public int getMaxItemsPerTransaction()
public void updateSubCatalogInformation()
generateSubCatalogs
and
generateCategorysSubCategories
public void updateSubCatalogInformation(Repository pCatalogRepository)
generateSubCatalogs
and
generateCategorysSubCategories
with the given repository.
pCatalogRepository
- The repository that will be updatedpublic java.util.Collection updateSubCatalogInformation(java.util.Collection pCatalogIds)
generateSubCatalogs
and
generateCategorysSubCategories
This method will also
remember if there are any new sub catalogs for the given list.
If the list is null, then null is returned. This list can tell
you which catalogs needs to have the InfoGeneratorService run on
them.
pCatalogIds
- Return the list of new sub catalogs for these
public java.util.Collection updateSubCatalogInformation(Repository pCatalogRepository, java.util.Collection pCatalogIds)
generateSubCatalogs
and
generateCategorysSubCategories
with the given
repository. This method will also remember if there are any new
sub catalogs for the given list. If the list is null, then null
is returned. This list can tell you which catalogs needs to have
the InfoGeneratorService run on them.
pCatalogRepository
- The repository that will be updatedpCatalogIds
- Return the list of new sub catalogs for these
public void generateSubCatalogs()
catalog.allRootCategories
catalog.allRootCategoryIds
catalog.subCatalogs
catalog.subCatalogsIds
public void generateCategorysSubCategories()
category.subCatalogsChildCategories
public void generateSubCatalogs(Repository pCatalogRepository)
catalogRepositories
is
used. If that list is empty, then the default catalog repository
is used.
pCatalogRepository
- The repository that will be updatedCustomCatalogTools
public java.util.Collection generateSubCatalogs(Repository pCatalogRepository, java.util.Collection pCatalogIds)
catalogRepositories
is
used. If that list is empty, then the default catalog repository
is used. This method will also remember if there are any new sub
catalogs for the given list. If the list is null, then null is
returned. This list can tell you which catalogs needs to have
the InfoGeneratorService run on them.
pCatalogRepository
- The repository that will be updatedpCatalogIds
- Return the list of new sub catalogs for these
CustomCatalogTools
public void generateCategorysSubCategories(Repository pCatalogRepository)
subCatalogsChildCategories
property
for all categories in the given repository. If the given repository is
null then catalogRepositories
is used. If that list is
empty, then the default catalog repository is used.
pCatalogRepository
- The repository that will be updatedCustomCatalogTools
protected java.util.Collection generateEmptySet(java.lang.String pPropertyName)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |