public abstract class SyncProductSetHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACCESS_PROFILE_ADD_NEW_PRODUCTSET_CATALOG_ENTRY_REL
Access profile for adding a new entry to the product set catalog entry relationship table
|
static java.lang.String |
ACCESS_PROFILE_DELETE_EXISTING_PRODUCTSET_CATALOG_ENTRY_REL
Access profile for deleting an existing entry from the product set catalog entry relationship table
|
Constructor and Description |
---|
SyncProductSetHelper() |
Modifier and Type | Method and Description |
---|---|
java.util.List |
getAffectedProductSets(java.util.Enumeration aCatGroupIds,
java.lang.Long anCatalogId)
Gets the ids of the product sets which correponds to the given catalog
group ids in the given catalog.
|
java.util.List |
getAffectedProductSets(java.lang.Long anCatalogId,
java.lang.Long anCatGroupId)
Gets the list of the product sets of all the ancestor categories for the
given category and the catalog.
|
java.util.Vector |
getAncestorParentCategories(java.lang.Long anCatalogId,
java.lang.Long anCatGroupId)
Gets all the ancestor parent groups of the given catalog group.
|
java.lang.Long |
getParentCatalogGroupId(java.lang.Long anCatalogId,
java.lang.Long anCatGroupId)
Get the id of the parent category of the given category in the catalog.
|
java.lang.Integer |
getProductSetId(java.lang.Long anCatalogId,
java.lang.Long anCatgroupId)
Gets the id of the product set which corresponds to the given catalog id
and catalog group id.
|
public static final java.lang.String ACCESS_PROFILE_ADD_NEW_PRODUCTSET_CATALOG_ENTRY_REL
public static final java.lang.String ACCESS_PROFILE_DELETE_EXISTING_PRODUCTSET_CATALOG_ENTRY_REL
public java.lang.Long getParentCatalogGroupId(java.lang.Long anCatalogId, java.lang.Long anCatGroupId) throws DataMediatorException
anCatalogId
- The id of the catalog.anCatGroupId
- The id of the category whose parent category is required.DataMediatorException
- If an exception occurs while retrieving the
required data.public java.util.Vector getAncestorParentCategories(java.lang.Long anCatalogId, java.lang.Long anCatGroupId) throws DataMediatorException
anCatalogId
- The Catalog reference number.anCatGroupId
- The catalog group reference number.DataMediatorException
- If an exception occurs while retrieving the
required data.public java.lang.Integer getProductSetId(java.lang.Long anCatalogId, java.lang.Long anCatgroupId) throws DataMediatorException
anCatalogId
- The catalog id.anCatgroupId
- The category id.DataMediatorException
- If an exception occurs while retrieving the
required data.public java.util.List getAffectedProductSets(java.util.Enumeration aCatGroupIds, java.lang.Long anCatalogId) throws DataMediatorException
aCatGroupIds
- The list of the catalog group ids.anCatalogId
- The id of the catalog.DataMediatorException
- If an exception occurs while retrieving the
required data.public java.util.List getAffectedProductSets(java.lang.Long anCatalogId, java.lang.Long anCatGroupId) throws DataMediatorException
anCatalogId
- The id of the catalog.anCatGroupId
- The id of the category.DataMediatorException
- If an exception occurs while retrieving the
required data.