public class SyncProductSetForCategoryHelper extends SyncProductSetHelper
Constructor and Description |
---|
SyncProductSetForCategoryHelper()
The default constructor of the class.
|
Modifier and Type | Method and Description |
---|---|
protected void | addParentCategory(java.lang.Long anSourceParentCategoryId, java.lang.Long anTargetParentCategoryId)
This adds the pair of source/target parent category of the category being reparented.
|
void | addParentCategory(java.lang.Long anCatalogId, java.lang.Long anCategoryId, java.lang.Long anTargetParentCategoryId)
This adds the pair of source/target parent category of the category being reparented.
|
void | deleteProductSetPolicy(java.lang.Long anCatalogId, java.lang.Long anCatGroupId)
Delete the product set policy related to the given catalog and catalog group.
|
protected java.util.List | getProductSetIds(java.lang.Long anCatalogId, java.util.Vector avecCatGroupIds)
Get the ids of the product sets for the given categories and catalog.
|
protected java.util.List | getSyncProductSetIdsForMoveRequest(java.lang.Long anCatalogId, java.util.List aSyncProductSetIds)
Get the ids of the product sets which needs to be synchronized for all the move category requests.
|
protected java.util.List | getSyncProductSetIdsForNonMoveRequest(java.lang.Long anCatalogId, java.util.List aSyncProductSetIds)
Get the ids of the product sets which needs to be synchronized for all the non-move reparent category requests.
|
static java.util.Vector | getUncommonParentCatGroups(java.util.Vector vecSourceParentGroup, java.util.Vector vecTargetParentGroup)
Finds the parent groups in vecSourceParentGroup which is not common in the target parent groups vecTargetParentGroup.
|
protected void | publishProductSet(java.util.List productSetIds)
Re-publish the product sets for the given list of product sets.
|
void | syncProductSet(java.lang.Long anCatalogId)
Synchronize the product sets of those parent categories recorded by addParentCategory.
|
public SyncProductSetForCategoryHelper()
public void addParentCategory(java.lang.Long anCatalogId, java.lang.Long anCategoryId, java.lang.Long anTargetParentCategoryId) throws DataMediatorException, CatalogApplicationException
protected void addParentCategory(java.lang.Long anSourceParentCategoryId, java.lang.Long anTargetParentCategoryId)
public static final java.util.Vector getUncommonParentCatGroups(java.util.Vector vecSourceParentGroup, java.util.Vector vecTargetParentGroup)
protected void publishProductSet(java.util.List productSetIds)
protected java.util.List getProductSetIds(java.lang.Long anCatalogId, java.util.Vector avecCatGroupIds) throws DataMediatorException
protected java.util.List getSyncProductSetIdsForNonMoveRequest(java.lang.Long anCatalogId, java.util.List aSyncProductSetIds) throws DataMediatorException
protected java.util.List getSyncProductSetIdsForMoveRequest(java.lang.Long anCatalogId, java.util.List aSyncProductSetIds) throws DataMediatorException
public void syncProductSet(java.lang.Long anCatalogId) throws CatalogApplicationException, DataMediatorException
public void deleteProductSetPolicy(java.lang.Long anCatalogId, java.lang.Long anCatGroupId) throws DataMediatorException