public class CatalogGroupLinkHelper
extends java.lang.Object
Constructor and Description |
---|
CatalogGroupLinkHelper()
Default constructor for CatalogGroupLinkHelper.
|
Modifier and Type | Method and Description |
---|---|
void | addChildCatalogEntry(java.lang.Long catGroupId, java.lang.Long parentCatEntryId, java.lang.Long childId, java.lang.Long catalogId, double sequence)
Link synchronization when a catalog entry is added as a child to a catalog group.
|
void | addChildCatalogGroup(java.lang.Long catGroupId, java.lang.Long childId, java.lang.Long catalogId, double sequence)
Link synchronization when a child catalog group is added to a catalog group.
|
void | copyCatalogGroup(java.lang.Long srcCatGroupId, java.lang.Long catGroupId, java.lang.Long srcCatalogId, java.lang.Long catalogId, double sequence)
Performs a deep copy of a catalog group including the hierarchy underneaths it and adds it to a sales catalog.
|
void | copyCatalogGroup(java.lang.Long srcCatGroupId, java.lang.Long catGroupId, java.lang.Long srcCatalogId, java.lang.Long catalogId, double sequence, boolean preserveCatEntryRelationship)
Performs a deep copy of a catalog group including the hierarchy underneaths it and adds it to a sales catalog.
|
void | createCatalogEntry(java.lang.Long catEntryId, java.lang.Long catGroupId, java.lang.Long parentCatEntryId, java.lang.Long catalogId, double sequence)
Link synchronization processing when creating a catalog entry.
|
void | createCatalogGroup(java.lang.Long catgroupId, java.lang.Long parentId, java.lang.Long catalogId, double sequence)
Link synchronization processing when creating a new catalog group.
|
void | deleteCatalogEntry(java.lang.Long catEntryId, java.lang.Long catalogId)
Link synchronization processing when a catalog entry is deleted.
|
void | deleteCatalogGroup(java.lang.Long catGroupId, java.lang.Long catalogId)
Link synchronization processing when a catalog group is deleted.
|
void | deleteNonProductCatalogEntry(java.lang.Long catEntryId, java.lang.Long catalogId)
Link synchronization processing when a catalog entry of type other than a product is deleted.
|
protected void | executeInsertStatement(java.lang.String query, java.util.Map parameters)
Execute a query to insert database entries.
|
protected void | executeRemoveStatement(java.lang.String query, java.util.Map parameters)
Execute a query to remove database entries.
|
protected void | executeUpdateStatement(java.lang.String query, java.util.Map parameters)
Execute a query to update database entries.
|
static CatalogGroup | fetchCatGroupParent(java.lang.Long catGroupId, java.lang.Long catalogId)
Gets a physical catalog group object with its parents.
|
static boolean | isAncestor(java.lang.Long catGroupId, java.lang.Long catalogId, long testCatGroupId)
Check to see if the test catalog group is an ancestor of a catalog group in a catalog.
|
void | linkCatalogGroup(java.lang.Long toCatGroupId, java.lang.Long fromCatGroupId, java.lang.Long toCatalogId, java.lang.Long fromCatalogId, double sequence)
Disconnect the link between a source catalog group and a target catalog group or a catalog root.
|
void | linkCatalogGroup(java.lang.Long toCatGroupId, java.lang.Long fromCatGroupId, java.lang.Long toCatalogId, java.lang.Long fromCatalogId, double sequence, boolean restrictLink)
Create a link from a catalog group in a sales catalog to another catalog group in another catalog with an option to restrict only 1 link to a catalog group from the same target catalog.
|
void | linkCatalogGroupSynchronized(java.lang.Long toCatGroupId, java.lang.Long fromCatGroupId, java.lang.Long toCatalogId, java.lang.Long fromCatalogId, double sequence)
Create a link from a catalog group in a sales catalog to another catalog group in the same or another catalog.
|
void | removeChildCatalogEntry(java.lang.Long catGroupId, java.lang.Long parentCatEntryId, java.lang.Long childId, java.lang.Long catalogId)
Link synchronization when a child catalog entry is removed from a catalog group or parent catalog entry.
|
void | removeChildCatalogGroup(java.lang.Long catGroupId, java.lang.Long childId, java.lang.Long catalogId)
Link synchronization when a navigation relationship for a child catalog group is removed.
|
void | unlinkCatalogGroup(java.lang.Long toCatGroupId, java.lang.Long fromCatGroupId, java.lang.Long toCatalogId, java.lang.Long fromCatalogId)
Disconnect the link between a source catalog group and a target catalog group or a catalog root.
|
void | unlinkCatalogGroupSynchronized(java.lang.Long toCatGroupId, java.lang.Long fromCatGroupId, java.lang.Long toCatalogId, java.lang.Long fromCatalogId)
Disconnect the link between a source catalog group and a target catalog group or a catalog root.
|
void | updateCatalogEntry(java.lang.Long catEntryId, java.lang.Long catGroupId, java.lang.Long parentCatEntryId, java.lang.Long catalogId, double sequence)
Link synchronization processing when updating parent of a catalog entry.
|
void | updateCatalogEntryToCatalogGroupRelationship(java.lang.Long catGroupId, java.lang.Long catEntryId, java.lang.Long catalogId, double sequence)
Link synchronization when the display sequence of a child catalog entry is changed.
|
void | updateCatalogGroup(java.lang.Long catGroupId, java.lang.Long parentCatGroupId, java.lang.Long catalogId, double sequence)
Link synchronization processing when updating parent of a catalog group.
|
void | updateCatalogGroupToCatalogGroupRelationship(java.lang.Long catGroupId, java.lang.Long childId, java.lang.Long catalogId, double sequence)
Link synchronization when the display sequence of a child catalog group is changed.
|
public CatalogGroupLinkHelper()
protected void executeInsertStatement(java.lang.String query, java.util.Map parameters) throws java.lang.Exception
protected void executeRemoveStatement(java.lang.String query, java.util.Map parameters) throws java.lang.Exception
protected void executeUpdateStatement(java.lang.String query, java.util.Map parameters) throws java.lang.Exception
public static CatalogGroup fetchCatGroupParent(java.lang.Long catGroupId, java.lang.Long catalogId) throws DataMediatorException
public static boolean isAncestor(java.lang.Long catGroupId, java.lang.Long catalogId, long testCatGroupId) throws DataMediatorException
public void linkCatalogGroupSynchronized(java.lang.Long toCatGroupId, java.lang.Long fromCatGroupId, java.lang.Long toCatalogId, java.lang.Long fromCatalogId, double sequence) throws BusinessObjectMediatorException, CatalogApplicationException
public void unlinkCatalogGroupSynchronized(java.lang.Long toCatGroupId, java.lang.Long fromCatGroupId, java.lang.Long toCatalogId, java.lang.Long fromCatalogId) throws BusinessObjectMediatorException, CatalogApplicationException
This method is synchronized and is called by ScheduledCatalogGroupUnLinkCmd.
public void linkCatalogGroup(java.lang.Long toCatGroupId, java.lang.Long fromCatGroupId, java.lang.Long toCatalogId, java.lang.Long fromCatalogId, double sequence) throws BusinessObjectMediatorException, CatalogApplicationException
public void linkCatalogGroup(java.lang.Long toCatGroupId, java.lang.Long fromCatGroupId, java.lang.Long toCatalogId, java.lang.Long fromCatalogId, double sequence, boolean restrictLink) throws BusinessObjectMediatorException, CatalogApplicationException
public void unlinkCatalogGroup(java.lang.Long toCatGroupId, java.lang.Long fromCatGroupId, java.lang.Long toCatalogId, java.lang.Long fromCatalogId) throws BusinessObjectMediatorException, CatalogApplicationException
public void createCatalogEntry(java.lang.Long catEntryId, java.lang.Long catGroupId, java.lang.Long parentCatEntryId, java.lang.Long catalogId, double sequence) throws BusinessObjectMediatorException
public void createCatalogGroup(java.lang.Long catgroupId, java.lang.Long parentId, java.lang.Long catalogId, double sequence) throws BusinessObjectMediatorException
public void deleteCatalogEntry(java.lang.Long catEntryId, java.lang.Long catalogId) throws BusinessObjectMediatorException
public void deleteNonProductCatalogEntry(java.lang.Long catEntryId, java.lang.Long catalogId) throws BusinessObjectMediatorException
public void deleteCatalogGroup(java.lang.Long catGroupId, java.lang.Long catalogId) throws BusinessObjectMediatorException
public void addChildCatalogEntry(java.lang.Long catGroupId, java.lang.Long parentCatEntryId, java.lang.Long childId, java.lang.Long catalogId, double sequence) throws BusinessObjectMediatorException
public void addChildCatalogGroup(java.lang.Long catGroupId, java.lang.Long childId, java.lang.Long catalogId, double sequence) throws BusinessObjectMediatorException
public void removeChildCatalogEntry(java.lang.Long catGroupId, java.lang.Long parentCatEntryId, java.lang.Long childId, java.lang.Long catalogId) throws BusinessObjectMediatorException
public void updateCatalogGroupToCatalogGroupRelationship(java.lang.Long catGroupId, java.lang.Long childId, java.lang.Long catalogId, double sequence) throws BusinessObjectMediatorException
public void updateCatalogEntryToCatalogGroupRelationship(java.lang.Long catGroupId, java.lang.Long catEntryId, java.lang.Long catalogId, double sequence) throws java.lang.Exception
public void removeChildCatalogGroup(java.lang.Long catGroupId, java.lang.Long childId, java.lang.Long catalogId) throws BusinessObjectMediatorException
public void updateCatalogEntry(java.lang.Long catEntryId, java.lang.Long catGroupId, java.lang.Long parentCatEntryId, java.lang.Long catalogId, double sequence) throws BusinessObjectMediatorException
public void updateCatalogGroup(java.lang.Long catGroupId, java.lang.Long parentCatGroupId, java.lang.Long catalogId, double sequence) throws BusinessObjectMediatorException
public void copyCatalogGroup(java.lang.Long srcCatGroupId, java.lang.Long catGroupId, java.lang.Long srcCatalogId, java.lang.Long catalogId, double sequence, boolean preserveCatEntryRelationship) throws BusinessObjectMediatorException, CatalogApplicationException
public void copyCatalogGroup(java.lang.Long srcCatGroupId, java.lang.Long catGroupId, java.lang.Long srcCatalogId, java.lang.Long catalogId, double sequence) throws BusinessObjectMediatorException, CatalogApplicationException