public class CatalogGroupFacadeClient extends AbstractCatalogFacadeClient
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CHANGE_VERB_ACTION_CHANGE
The change verb constant to represents the action of Update.
|
static java.lang.String |
CHANGE_VERB_ACTION_CREATE
The change verb constant to represents the action of Create.
|
static java.lang.String |
CHANGE_VERB_ACTION_DELETE
The change verb constant to represents the action of Delete.
|
CHANGE_VERB_ACTION_ADD, CHANGE_VERB_ACTION_UPDATE
Constructor and Description |
---|
CatalogGroupFacadeClient()
Creates an instance of the client to communicate with the Catalog facade.
|
CatalogGroupFacadeClient(BusinessContextType businessContext,
javax.security.auth.callback.CallbackHandler callbackHandler)
Creates an instance of the client to communicate with the Catalog facade.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map |
addCatalogGroupParent(java.util.Map parameters)
This method builds and sends the request for adding the parent of a catalog group.
|
RespondCatalogGroupType |
changeCatalogGroup(ChangeCatalogGroupType argChangeCatalogGroup)
This method will communicate with the Order facade and send the specified
ChangeOrder request.
|
RespondCatalogGroupDataAreaType |
changeCatalogGroup(java.lang.String[] action,
CatalogGroupType[] catGroups,
java.lang.String[] expression)
This method changes the catalog Group.
|
AcknowledgeCatalogGroupDataAreaType |
createCatalogGroup(CatalogGroupIdentifierType[] catGroupIds,
CatalogGroupIdentifierType[] parentCatGroupIdentifiers)
This method creates the catalog Group.
|
java.util.Map |
createCatalogGroup(java.util.Map parameters)
This method creates the catalog groups.
|
RespondCatalogGroupDataAreaType |
createCatalogGroupDescription(CatalogGroupIdentifierType[] catGroupIds,
CatalogDescriptionType[] catGroupDescs,
CatalogGroupIdentifierType[] parentCatGroupIdentifiers)
This method creates the catalog Group descriptions.
|
RespondCatalogGroupDataAreaType |
createCatalogGroupDescription(CatalogGroupIdentifierType catGroupId,
CatalogDescriptionType[] catGroupDescs,
CatalogGroupIdentifierType[] parentCatGroupIdentifiers)
This method creates multiple descriptions for a single catalog Group.
|
java.util.Map |
createCatalogGroupDescription(java.util.Map parameters)
This method creates the description(s) of the catalog groups.
|
AcknowledgeCatalogGroupDataAreaType |
deleteCatalogGroup(CatalogGroupIdentifierType[] catGroupIds)
This method deletes the catalog Group.
|
java.util.Map |
deleteCatalogGroup(java.util.Map parameters)
This method deletes the catalog groups.
|
java.util.Map |
deleteCatalogGroupParent(java.util.Map parameters)
This method builds and sends the request for deleting the parent of a catalog group.
|
java.util.List |
fetchCatalogGroup(java.lang.String xPath)
This method is used to pass the get catalog group BOD, and return the SHOW catalog group BOD.
|
java.util.Hashtable |
fetchCatalogGroupWithPaging(java.lang.String xPath,
java.lang.String maxNumber,
java.lang.String refId,
java.lang.String startIndex)
This method is used to pass the get catalog group BOD, and return the SHOW catalog group BOD with paging.
|
java.util.Hashtable |
getCatalogEntryWithPaging(java.lang.String expressionLanguage,
java.lang.String expression,
java.lang.String maxItems,
java.lang.String refId,
java.lang.String startNum)
This method provides support for paging.
|
java.util.Hashtable |
getCatalogGroupWithPaging(java.lang.String expressionLanguage,
java.lang.String expression,
java.lang.String maxItems,
java.lang.String refId,
java.lang.String startNum)
This method provides support for paging.
|
AcknowledgeCatalogGroupType |
processCatalogGroup(ProcessCatalogGroupType argProcessCatGroup)
This method will communicate with the Order facade and send the specified
ProcessOrder request.
|
AcknowledgeCatalogGroupDataAreaType |
processCatalogGroup(java.lang.String[] actionArray,
CatalogGroupType[] catgroups,
java.lang.String[] strXPaths)
This method processes the catalog Group.
|
RespondCatalogGroupDataAreaType |
updateCatalogGroup(CatalogGroupIdentifierType[] catGroupIds,
java.lang.String[] isTopCategory)
This method updates the catalog Group.
|
RespondCatalogGroupDataAreaType |
updateCatalogGroup(CatalogGroupIdentifierType[] catGroupIds,
java.lang.String[] isTopCategory,
java.lang.String[] sequence)
This method updates the catalog Group.
|
java.util.Map |
updateCatalogGroup(java.util.Map parameters)
This method updates the the catalog groups.
|
RespondCatalogGroupDataAreaType |
updateCatalogGroupAttributes(CatalogGroupType[] catGrpArray,
java.lang.String[] actions)
This method builds the xpath and calls the service
to update the catalog group attributes.
|
RespondCatalogGroupDataAreaType |
updateCatalogGroupDescription(CatalogGroupIdentifierType[] catGroupIds,
CatalogDescriptionType[] catGroupDescs)
This method updates the catalog Group descriptions.
|
RespondCatalogGroupDataAreaType |
updateCatalogGroupDescription(CatalogGroupIdentifierType catGroupId,
CatalogDescriptionType[] catGroupDescs)
This method updates multiple descriptions of a single catalog group .
|
RespondCatalogGroupDataAreaType |
updateCatalogGroupDescription(CatalogGroupType[] catGroups)
This method updates multiple catalog group descriptions of a single catalog group.
|
java.util.Map |
updateCatalogGroupDescription(java.util.Map parameters)
This method updates the description(s) of the catalog groups.
|
RespondCatalogGroupDataAreaType |
updateCatalogGroupIdentifier(CatalogGroupType[] catGrpArray,
java.lang.String[] actions)
This method builds the xpath and calls the service
to update the catalog group identifier.
|
java.util.Map |
updateCatalogGroupNavigationRelationship(java.util.Map parameters,
boolean isChildProduct,
boolean isChildCatalogGroup)
This method updates the navigation relationship(s) of the catalog groups.
|
RespondCatalogGroupDataAreaType |
updateCatalogGroupNavRel(CatalogGroupIdentifierType[] catGroupIds,
NavigationRelationshipType[] catGroupNavRel)
This method updates the display sequence of the following relationship:
parent catalog group to child catalog entry relationship. parent catalog group to child catalog group relationship. |
RespondCatalogGroupDataAreaType |
updateCatalogGroupNavRel(java.util.List catGroupList)
This method updates the display sequence of multiple child catalog groups belonging
to multiple parent catalog groups for the following relationship:
parent catalog group to child catalog entry relationship. parent catalog group to child catalog group relationship. |
RespondCatalogGroupDataAreaType |
updateCatalogGroupParent(CatalogGroupIdentifierType[] catGroupIdentifiers,
CatalogGroupIdentifierType[] parentCatGrpIdentfiers,
java.lang.String[] actions)
This method builds and sends the request for updating the parent of a catalog group.
|
java.util.Map |
updateCatalogGroupParent(java.util.Map parameters)
This method builds and sends the request for updating the parent of a catalog group.
|
java.util.Map |
updateTopCatalogGroupSequence(java.util.Map parameters)
This method updates the sequence of top catalog groups with respect to its catalog
Sample code to use the API: |
changeAttributeDictionary, changeAttributeDictionaryAttribute, changeAttributeDictionaryAttributeGroup, changeCatalog, changeCatalogEntry, changeCatalogFilter, getAttributeDictionary, getAttributeDictionary, getAttributeDictionary, getAttributeDictionaryAttribute, getAttributeDictionaryAttribute, getAttributeDictionaryAttribute, getAttributeDictionaryAttributeGroup, getAttributeDictionaryAttributeGroup, getAttributeDictionaryAttributeGroup, getCatalog, getCatalog, getCatalog, getCatalogEntry, getCatalogEntry, getCatalogEntry, getCatalogEntryFiltering, getCatalogEntryFiltering, getCatalogEntryFiltering, getCatalogFilter, getCatalogFilter, getCatalogFilter, getCatalogGroup, getCatalogGroup, getCatalogGroup, getCatalogNavigationView, getCatalogNavigationView, getCatalogNavigationView, getKit, getKit, getKit, processAttributeDictionary, processAttributeDictionaryAttribute, processAttributeDictionaryAttributeGroup, processCatalog, processCatalogEntry, processCatalogFilter
createActionExpression, createChangeVerb, createGetVerb, createGetVerb, createProcessVerb, createSyncVerb
public static final java.lang.String CHANGE_VERB_ACTION_CHANGE
public static final java.lang.String CHANGE_VERB_ACTION_CREATE
public static final java.lang.String CHANGE_VERB_ACTION_DELETE
public CatalogGroupFacadeClient()
public CatalogGroupFacadeClient(BusinessContextType businessContext, javax.security.auth.callback.CallbackHandler callbackHandler)
businessContext
- The default business context to associate with the messages
when making requests.callbackHandler
- Used for authentication purposes so the controller can give
the authentication information to the transport when required.public java.util.List fetchCatalogGroup(java.lang.String xPath) throws CatalogGroupException
xPath
- The XPath for the get.CatalogGroupException
public java.util.Hashtable fetchCatalogGroupWithPaging(java.lang.String xPath, java.lang.String maxNumber, java.lang.String refId, java.lang.String startIndex) throws CatalogGroupException
xPath
- The XPath for the get.maxNumber
- the max page size.refId
- the reference Id not supported now.startIndex
- the starting index for paging.CatalogGroupException
public java.util.Hashtable getCatalogGroupWithPaging(java.lang.String expressionLanguage, java.lang.String expression, java.lang.String maxItems, java.lang.String refId, java.lang.String startNum) throws CatalogGroupException
expressionLanguage
- The expression language.expression
- The expression to return a list of base catalog groups.maxItems
- Specifies max no of records to be retrieved.refId
- The internal identifier for the result set, so that it can be resolved on a subsequent request.startNum
- The starting index from which to retrieve results from the result setHashtable
containing the list of catalog groups that matches the expression specified
and paging parameters. Following keys are used in the Hashtable
:
List
containing Catalog Groups.
CatalogGroupException
public RespondCatalogGroupDataAreaType changeCatalogGroup(java.lang.String[] action, CatalogGroupType[] catGroups, java.lang.String[] expression) throws CatalogGroupException
action
- the action to be applied to the catalog Group.catGroups
- the catalog Group to be changed.expression
- the expression corresponding to each action in the list.CatalogGroupException
public RespondCatalogGroupType changeCatalogGroup(ChangeCatalogGroupType argChangeCatalogGroup)
changeCatalogGroup
in class AbstractCatalogFacadeClient
argChangeCatalogGroup
- The ProcessOrder request document.public RespondCatalogGroupDataAreaType updateCatalogGroupDescription(CatalogGroupIdentifierType catGroupId, CatalogDescriptionType[] catGroupDescs) throws CatalogGroupException
catGroupId
- The id of the catalog Group to be updated.catGroupDescs
- The catalog Group description to be updated.CatalogGroupException
public RespondCatalogGroupDataAreaType updateCatalogGroupDescription(CatalogGroupIdentifierType[] catGroupIds, CatalogDescriptionType[] catGroupDescs) throws CatalogGroupException
catGroupIds
- The ids of the catalog Group to be updated.catGroupDescs
- The catalog Group description to be updated.CatalogGroupException
public java.util.Map updateCatalogGroupDescription(java.util.Map parameters) throws CatalogGroupException
Sample code to use the API:
CatalogGroupFacadeClient client = new CatalogGroupFacadeClient(businessContext,null);
Map response = client.updateCatalogGroupDescription(parameters);
String[] outCatGroupIds = (String[]) response.get("catGroupId");
parameters
- This contains the value(s) to be updated for the given catalog Group descriptions.
catGroupId : The internal reference ids of the catalog groups to be updated. identifier: The external reference ids of the catalog groups to be updated. languageId: The langeuage ids to be used to update the descriptions. name: The name to be updated for the given catalog Group description. sDesc: The short description to be updated for the given catalog Group description. lDesc : The long description to be updated for the given catalog Group description. tImage: The thumbnail image to be updated for the given catalog Group description. fImage: The full image to be updated for the given catalog Group description. keyword: The keyword value can be used for search.
CatalogGroupException
public java.util.Map createCatalogGroupDescription(java.util.Map parameters) throws AbstractBusinessObjectDocumentException
Sample code to use the API:
CatalogGroupFacadeClient client = new CatalogGroupFacadeClient(businessContext,null);
Map response = client.createCatalogGroupDescription(parameters);
String[] outCatGroupIds = (String[]) response.get("catGroupId");
parameters
- This contains the value(s) to be created for the given catalog Group descriptions.
identifier: The external reference ids of the catalog groups to be updated. languageId: The langeuage ids to be used to update the descriptions. name: The name to be updated for the given catalog Group description. sDesc: The short description to be updated for the given catalog Group description. lDesc : The long description to be updated for the given catalog Group description. tImage: The thumbnail image to be updated for the given catalog Group description. fImage: The full image to be updated for the given catalog Group description. keyword: The keyword value can be used for search.
AbstractBusinessObjectDocumentException
public RespondCatalogGroupDataAreaType createCatalogGroupDescription(CatalogGroupIdentifierType[] catGroupIds, CatalogDescriptionType[] catGroupDescs, CatalogGroupIdentifierType[] parentCatGroupIdentifiers) throws CatalogGroupException
catGroupIds
- The ids of the catalog Group for which cataloggroupdescription is createdcatGroupDescs
- The catalog Group description to be created.parentCatGroupIdentifiers
- The ids of the parent of the catalog GroupCatalogGroupException
public RespondCatalogGroupDataAreaType createCatalogGroupDescription(CatalogGroupIdentifierType catGroupId, CatalogDescriptionType[] catGroupDescs, CatalogGroupIdentifierType[] parentCatGroupIdentifiers) throws CatalogGroupException
catGroupId
- The id of the catalog Group.catGroupDescs
- The catalog Group description to be created.parentCatGroupIdentifiers
- The ids of the parent of the catalog GroupCatalogGroupException
public java.util.Map createCatalogGroup(java.util.Map parameters) throws AbstractBusinessObjectDocumentException
Sample code to use the API:
CatalogGroupFacadeClient client = new CatalogGroupFacadeClient(businessContext,null);
Map response = client.createCatalogGroup(parameters);
String[] outCatGroupIds = (String[]) response.get("catGroupId");
parameters
- This contains the value(s) to be created for the given catalog Group.AbstractBusinessObjectDocumentException
public AcknowledgeCatalogGroupDataAreaType createCatalogGroup(CatalogGroupIdentifierType[] catGroupIds, CatalogGroupIdentifierType[] parentCatGroupIdentifiers) throws CatalogGroupException
catGroupIds
- The ids of the catalog Group to be created.parentCatGroupIdentifiers
- The ids of the parent of the catalog GroupCatalogGroupException
public java.util.Map updateCatalogGroup(java.util.Map parameters) throws AbstractBusinessObjectDocumentException
Sample code to use the API:
CatalogGroupFacadeClient client = new CatalogGroupFacadeClient(businessContext,null);
Map response = client.updateCatalogGroup(parameters);
String[] outCatGroupIds = (String[]) response.get("catGroupId");
parameters
- This contains the value(s) to be updated for the given catalog GroupAbstractBusinessObjectDocumentException
public java.util.Map updateTopCatalogGroupSequence(java.util.Map parameters) throws AbstractBusinessObjectDocumentException
Sample code to use the API:
CatalogGroupFacadeClient client = new CatalogGroupFacadeClient(businessContext,null);
Map response = client.updateTopCatalogGroupSequence(parameters);
String[] outCatGroupIds = (String[]) response.get("catGroupId");
parameters
- This contains the value(s) to be updated for the given catalog GroupAbstractBusinessObjectDocumentException
public RespondCatalogGroupDataAreaType updateCatalogGroup(CatalogGroupIdentifierType[] catGroupIds, java.lang.String[] isTopCategory) throws CatalogGroupException
catGroupIds
- The ids of the catalog Group to be updated.isTopCategory
- The boolean values whether the catalog group is a top category or notCatalogGroupException
public RespondCatalogGroupDataAreaType updateCatalogGroup(CatalogGroupIdentifierType[] catGroupIds, java.lang.String[] isTopCategory, java.lang.String[] sequence) throws CatalogGroupException
catGroupIds
- The ids of the catalog Group to be updated.isTopCategory
- The boolean values whether the catalog group is a top category or notsequence
- The sequence value the top category should be updated with.CatalogGroupException
public AcknowledgeCatalogGroupDataAreaType processCatalogGroup(java.lang.String[] actionArray, CatalogGroupType[] catgroups, java.lang.String[] strXPaths) throws CatalogGroupException
actionArray
- the array actions to be applied to the catalog Group.catgroups
- the catalog Group to be processes.strXPaths
- the expression corresponding to each action in the list.CatalogGroupException
public AcknowledgeCatalogGroupType processCatalogGroup(ProcessCatalogGroupType argProcessCatGroup)
processCatalogGroup
in class AbstractCatalogFacadeClient
argProcessCatGroup
- The ProcessOrder request document.public java.util.Map updateCatalogGroupNavigationRelationship(java.util.Map parameters, boolean isChildProduct, boolean isChildCatalogGroup) throws CatalogGroupException
Sample code to use the API:
CatalogGroupFacadeClient client = new CatalogGroupFacadeClient(businessContext,null);
Map response = client.updateCatalogGroupNavigationRelationship(parameters);
String[] outCatGroupIds = (String[]) response.get("catGroupId");
parameters
- This contains the value(s) to be updated for the given catalog Group descriptions.isChildProduct
- True
if the children are catalog entries; false
otherwise.isChildCatalogGroup
- True
if the children are catalog groups; false
otherwise.CatalogGroupException
public RespondCatalogGroupDataAreaType updateCatalogGroupNavRel(CatalogGroupIdentifierType[] catGroupIds, NavigationRelationshipType[] catGroupNavRel) throws CatalogGroupException
The method will resolve the Catalog Group to be updated using the CatalogGroupIdentifier
passed in the BOD. The NavigationRelationship
in BOD contains the child object
of the navigational relationship. Depending on the object passed in the NavigationRelationship
,
the command will update the display sequence of the relationships mentioned above.
catGroupIds
- The ids of the catalog group to be updated.catGroupNavRel
- The catalog group description to be updated.CatalogGroupException
public RespondCatalogGroupDataAreaType updateCatalogGroupNavRel(java.util.List catGroupList) throws CatalogGroupException
The method will resolve the Catalog Group to be updated using the CatalogGroupIdentifier
passed in the BOD . The NavigationRelationship
in BOD contains the child object
of the navigational relationship. Depending on the object passed in the NavigationRelationship
,
the command will update the display sequence of the relationships mentioned above.
catGroupList
- List containing catalog group BODs for updating sequence.CatalogGroupException
public java.util.Map deleteCatalogGroup(java.util.Map parameters) throws AbstractBusinessObjectDocumentException
Sample code to use the API:
CatalogGroupFacadeClient client = new CatalogGroupFacadeClient(businessContext,null);
Map response = client.deleteCatalogGroup(parameters);
String[] outCatGroupIds = (String[]) response.get("catGroupId");
parameters
- This contains the details for the given catalog Group to be deletedAbstractBusinessObjectDocumentException
public AcknowledgeCatalogGroupDataAreaType deleteCatalogGroup(CatalogGroupIdentifierType[] catGroupIds) throws CatalogGroupException
catGroupIds
- The ids of the catalog Group to be deleted.CatalogGroupException
public RespondCatalogGroupDataAreaType updateCatalogGroupParent(CatalogGroupIdentifierType[] catGroupIdentifiers, CatalogGroupIdentifierType[] parentCatGrpIdentfiers, java.lang.String[] actions) throws CatalogGroupException
catGroupIdentifiers
- parentCatGrpIdentfiers
- actions
- RespondCatalogGroupDataAreaType
type.CatalogGroupException
public java.util.Map updateCatalogGroupParent(java.util.Map parameters) throws AbstractBusinessObjectDocumentException
parameters
- This contains the above value(s)AbstractBusinessObjectDocumentException
public java.util.Map addCatalogGroupParent(java.util.Map parameters) throws AbstractBusinessObjectDocumentException
parameters
- This contains the above value(s)AbstractBusinessObjectDocumentException
public java.util.Map deleteCatalogGroupParent(java.util.Map parameters) throws AbstractBusinessObjectDocumentException
parameters
- This contains the above value(s)AbstractBusinessObjectDocumentException
public RespondCatalogGroupDataAreaType updateCatalogGroupAttributes(CatalogGroupType[] catGrpArray, java.lang.String[] actions) throws CatalogGroupException
catGrpArray
- An array of catalog groups.
Each catgroup should contain the unique id or the identifier of the catgroup.
It should also contain the attributes to be updated.actions
- An array of actions to be performed on each attribute. Change action is supported.CatalogGroupException
public RespondCatalogGroupDataAreaType updateCatalogGroupIdentifier(CatalogGroupType[] catGrpArray, java.lang.String[] actions) throws CatalogGroupException
catGrpArray
- The array of catalog groups to be updated.
Each catgroup should contain the unique id and new identifier.actions
- to be performed on the noun part. Change action is allowed.CatalogGroupException
public RespondCatalogGroupDataAreaType updateCatalogGroupDescription(CatalogGroupType[] catGroups) throws CatalogGroupException
catGroups
- The catalog groups for which the description is to be updated.CatalogGroupException
public java.util.Hashtable getCatalogEntryWithPaging(java.lang.String expressionLanguage, java.lang.String expression, java.lang.String maxItems, java.lang.String refId, java.lang.String startNum) throws CatalogEntryException
expressionLanguage
- The expression language.expression
- The expression to return a list of base catalog entries.maxItems
- Specifies max no of records to be retrieved.refId
- The internal identifier for the result set, so that it can be resolved on a subsequent request.startNum
- The starting index from which to retrieve results from the result setHashtable
containing the list of catalog entries that matches the expression specified
and paging parameters. Following keys are used in the Hashtable
:
List
containing Catalog Entries.
CatalogEntryException