public class InfrastructureFacadeClient extends AbstractInfrastructureFacadeClient
This class provides common methods that this and other utility class to the Infrastructure facade can use. This class also provides a set of convenient Java API to represent particular Infrastructure operations. This set of Java API also include APIs for Web based requests to transform the name value pair request into the appropriate request documents.
CHANGE_VERB_ACTION_ADD, CHANGE_VERB_ACTION_CHANGE, CHANGE_VERB_ACTION_CREATE, CHANGE_VERB_ACTION_DELETE, CHANGE_VERB_ACTION_UPDATE
Constructor and Description |
---|
InfrastructureFacadeClient()
Creates an instance of the client to communicate with the Infrastructure facade.
|
InfrastructureFacadeClient(BusinessContextType businessContext,
javax.security.auth.callback.CallbackHandler callbackHandler)
Creates an instance of the client to communicate with the Infrastructure facade.
|
Modifier and Type | Method and Description |
---|---|
com.ibm.commerce.infrastructure.facade.datatypes.RespondOnlineStoreType |
addDefaultCatalog(java.lang.String storeId,
java.lang.String catalogId,
java.util.Map<java.lang.String,java.lang.String> customFields)
Creates the default catalog configuration for a store
|
com.ibm.commerce.infrastructure.facade.datatypes.RespondStorePageType |
addDefaultStorePageAssociation(com.ibm.commerce.infrastructure.facade.datatypes.ChangeStorePageType aChangeStorePage)
This method will communicate with the StorePage facade to add a
default Store page layout association.
|
com.ibm.commerce.infrastructure.facade.datatypes.RespondFolderType |
addFolderItem(java.lang.String folderId,
java.lang.String[] referenceId,
java.lang.String[] folderItemType,
java.lang.String[] storeId,
java.util.List<java.util.Map> customFieldList)
Add one or more folder items to a folder.
|
com.ibm.commerce.infrastructure.facade.datatypes.RespondOnlineStoreDataAreaType |
addSEOProperties(java.lang.String storeId,
java.lang.String objectId,
java.lang.String pageGroup,
java.util.List<com.ibm.commerce.foundation.common.datatypes.SEOPropertiesType> seoPropertiesList)
This method adds a list of SEO Properties for a given object with given page group for a given store.
|
com.ibm.commerce.infrastructure.facade.datatypes.RespondOnlineStoreDataAreaType |
addSEOURL(java.lang.String storeId,
java.lang.String objectId,
java.lang.String usage,
java.util.List<com.ibm.commerce.foundation.common.datatypes.SEOURLType> seoURLTypeList)
This method adds a list of SEO URLs for a given object with given usage for a given store.
|
com.ibm.commerce.infrastructure.facade.datatypes.RespondOnlineStoreType |
changeDefaultCatalog(java.lang.String store_id,
java.lang.String storedefcat_id,
java.util.Map<java.lang.String,java.lang.String> customFields)
Changes the default catalog configuration for a store
|
RespondMarketingSpotType |
changeFlow(ChangeMarketingSpotType aChangeFlow)
This method will communicate with the MarketingSpot facade and send the specified
ChangeMarketingSpot request for changing the flow.
|
com.ibm.commerce.infrastructure.facade.datatypes.RespondOnlineStoreDataAreaType |
changeSEOProperties(java.lang.String storeId,
java.lang.String[] actions,
com.ibm.commerce.foundation.common.datatypes.SEOPropertiesType[] seoPropertiesTypes,
java.lang.String[] expressions)
This method changes SEO Properties for a given store with the given actions and XPATH expressions.
|
com.ibm.commerce.infrastructure.facade.datatypes.RespondOnlineStoreDataAreaType |
changeSEOProperties(java.lang.String storeId,
java.lang.String objectId,
java.lang.String pageGroup,
java.util.List<com.ibm.commerce.foundation.common.datatypes.SEOPropertiesType> seoPropertiesList,
java.lang.String actionCode)
This method changes a list of SEO Properties for a given object with given page group for a given store with the given action code.
|
com.ibm.commerce.infrastructure.facade.datatypes.RespondOnlineStoreDataAreaType |
changeSEOURL(java.lang.String storeId,
java.lang.String[] actions,
com.ibm.commerce.foundation.common.datatypes.SEOURLType[] seoURLTypes,
java.lang.String[] expressions)
This method changes SEO URLs for a given store with the given actions and XPATH expressions.
|
com.ibm.commerce.infrastructure.facade.datatypes.RespondOnlineStoreDataAreaType |
changeSEOURL(java.lang.String storeId,
java.lang.String objectId,
java.lang.String usage,
java.util.List<com.ibm.commerce.foundation.common.datatypes.SEOURLType> seoURLTypeList,
java.lang.String actionCode)
This method changes a list of SEO URLs for a given object with given usage for a given store with the given action code.
|
com.ibm.commerce.infrastructure.facade.datatypes.AcknowledgeOnlineStoreType |
closeStore(java.lang.String[] storeIds)
This method composes a Process BOD with an Action of 'Close' and sends the BOD to WebSphere Commerce.
|
com.ibm.commerce.infrastructure.facade.datatypes.AcknowledgeFolderType |
createFolder(java.lang.String identifier,
java.lang.String usage,
java.lang.String description,
java.lang.String parentFolderId,
java.lang.String storeId,
java.util.Map customFieldMap)
Creates a new folder.
|
com.ibm.commerce.infrastructure.facade.datatypes.RespondOnlineStoreType |
deleteDefaultCatalog(java.lang.String storeId,
java.lang.String storedefcatId)
Deletes the default catalog configuration for the store
|
com.ibm.commerce.infrastructure.facade.datatypes.RespondOnlineStoreDataAreaType |
deleteSEOProperties(java.lang.String storeId,
java.lang.String objectId,
java.lang.String pageGroup,
java.util.List<com.ibm.commerce.foundation.common.datatypes.SEOPropertiesType> seoPropertiesList)
This method deletes a list of SEO Properties for a given object with given page group for a given store.
|
com.ibm.commerce.infrastructure.facade.datatypes.RespondOnlineStoreDataAreaType |
deleteSEOURL(java.lang.String storeId,
java.lang.String objectId,
java.lang.String usage,
java.util.List<com.ibm.commerce.foundation.common.datatypes.SEOURLType> seoURLTypeList)
This method deletes a list of SEO URLs for a given object with given usage for a given store.
|
ConfigurationType |
findConfigurationById(java.lang.String uniqueId)
This method composes a Get BOD with an expression to find a configuration by store ID and sends the BOD to the Infrastructure-Server.
|
OnlineStoreType |
findStoreById(java.lang.String storeId,
java.lang.String accessProfile)
This method composes a Get BOD with an expression to find a store by ID and sends the BOD to the Infrastructure-Server.
|
java.lang.String |
getConfigurationDescription(java.lang.String uniqueId)
This method returns the description of the requested configuration.
|
java.lang.String |
getConfigurationLanguageId(java.lang.String uniqueId)
This method returns the description language Id of the requested configuration.
|
java.util.Map |
getConfigurationUserData(java.lang.String uniqueId)
This method returns the description language Id of the requested configuration.
|
java.lang.String |
getConfigurationValue(java.lang.String uniqueId,
java.lang.String configName)
This method returns the value of a configuration attribute found in the requested configuration
by store ID.
|
java.lang.String[] |
getConfigurationValues(java.lang.String uniqueId,
java.lang.String configName)
This method returns the string array of values of a configuration attribute found in the requested configuration
by store ID.
|
com.ibm.commerce.infrastructure.facade.datatypes.ShowFolderDataAreaType |
getFolderById(java.lang.String folderId,
java.lang.String accessProfile)
Gets a folder through folder unique id.
|
com.ibm.commerce.infrastructure.facade.datatypes.RespondFolderType |
moveFolder(java.lang.String folderId,
java.lang.String parentFolderId)
Moves an existing folder to a new location.
|
com.ibm.commerce.infrastructure.facade.datatypes.AcknowledgeOnlineStoreType |
openStore(java.lang.String[] storeIds)
This method composes a Process BOD with an Action of 'Open' and sends the BOD to WebSphere Commerce.
|
com.ibm.commerce.infrastructure.facade.datatypes.RespondFolderType |
removeFolderItem(java.lang.String folderId,
java.lang.String[] folderItemId)
Remove one or more folder items from a folder.
|
com.ibm.commerce.infrastructure.facade.datatypes.RespondFolderType |
removeFolderItem(java.lang.String folderId,
java.lang.String[] referenceId,
java.lang.String[] folderItemType)
Remove one or more folder items from a folder.
|
void |
reset()
Reset the client to the initial state.
|
com.ibm.commerce.infrastructure.facade.datatypes.RespondStorePageType |
updateDefaultStorePageAssociation(com.ibm.commerce.infrastructure.facade.datatypes.ChangeStorePageType aChangeStorePage)
This method will communicate with the StorePage facade to update the
default Store page layout association.
|
com.ibm.commerce.infrastructure.facade.datatypes.RespondFolderType |
updateFolder(java.lang.String folderId,
java.lang.String identifier,
java.lang.String description,
java.util.Map customFieldMap)
Updates an existing folder.
|
com.ibm.commerce.infrastructure.facade.datatypes.RespondOnlineStoreDataAreaType |
updateSEOProperties(java.lang.String storeId,
java.lang.String objectId,
java.lang.String pageGroup,
java.util.List<com.ibm.commerce.foundation.common.datatypes.SEOPropertiesType> seoPropertiesList)
This method updates a list of SEO Properties for a given object with given page group for a given store.
|
com.ibm.commerce.infrastructure.facade.datatypes.RespondOnlineStoreDataAreaType |
updateSEOURL(java.lang.String storeId,
java.lang.String objectId,
java.lang.String usage,
java.util.List<com.ibm.commerce.foundation.common.datatypes.SEOURLType> seoURLTypeList)
This method updates a list of SEO URLs for a given object with given usage for a given store.
|
changeFolder, changeOnlineStore, changePageLayout, changeStorePage, getConfiguration, getConfiguration, getConfiguration, getExternalRule, getExternalRule, getExternalRule, getFolder, getFolder, getFolder, getOnlineStore, getOnlineStore, getOnlineStore, getPageLayout, getPageLayout, getPageLayout, getStorePage, getStorePage, getStorePage, getStorePageData, getStorePageData, getStorePageData, processFolder, processOnlineStore
createActionExpression, createChangeVerb, createGetVerb, createGetVerb, createProcessVerb, createSyncVerb
public InfrastructureFacadeClient()
public InfrastructureFacadeClient(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 com.ibm.commerce.infrastructure.facade.datatypes.AcknowledgeOnlineStoreType closeStore(java.lang.String[] storeIds)
storeIds
- The store Ids to close.public com.ibm.commerce.infrastructure.facade.datatypes.AcknowledgeOnlineStoreType openStore(java.lang.String[] storeIds)
storeIds
- The store Ids to open.public OnlineStoreType findStoreById(java.lang.String storeId, java.lang.String accessProfile) throws OnlineStoreException
storeId
- The string containing the store Id.accessProfile
- The access profile.OnlineStoreType
object.OnlineStoreException
- if an error is encountered.public ConfigurationType findConfigurationById(java.lang.String uniqueId) throws ConfigurationException
uniqueId
- The string containing configuration unique Id.ConfigurationType
object(s).ConfigurationException
- if an error is encountered.public java.lang.String getConfigurationValue(java.lang.String uniqueId, java.lang.String configName) throws ConfigurationException
uniqueId
- The unique Id representing the requested configuration.configName
- The configuration attribute name in the requested configuration.ConfigurationException
- if an error is encountered.public java.lang.String[] getConfigurationValues(java.lang.String uniqueId, java.lang.String configName) throws ConfigurationException
uniqueId
- The unique Id representing the requested configuration.configName
- The configuration attribute name in the requested configuration.ConfigurationException
- if an error is encountered.public java.lang.String getConfigurationDescription(java.lang.String uniqueId) throws ConfigurationException
uniqueId
- The unique Id representing the requested configuration.ConfigurationException
- if an error is encountered.public java.lang.String getConfigurationLanguageId(java.lang.String uniqueId) throws ConfigurationException
uniqueId
- The unique Id representing the requested configuration.ConfigurationException
- if an error is encountered.public java.util.Map getConfigurationUserData(java.lang.String uniqueId) throws ConfigurationException
uniqueId
- The unique Id representing the requested configuration.ConfigurationException
- if an error is encountered.public void reset()
public RespondMarketingSpotType changeFlow(ChangeMarketingSpotType aChangeFlow)
aChangeFlow
- The ChangeFlow request document.public com.ibm.commerce.infrastructure.facade.datatypes.RespondStorePageType updateDefaultStorePageAssociation(com.ibm.commerce.infrastructure.facade.datatypes.ChangeStorePageType aChangeStorePage)
aChangeStorePage
- The ChangeStorePage request document.public com.ibm.commerce.infrastructure.facade.datatypes.RespondStorePageType addDefaultStorePageAssociation(com.ibm.commerce.infrastructure.facade.datatypes.ChangeStorePageType aChangeStorePage)
aChangeStorePage
- The ChangeStorePage request document.public com.ibm.commerce.infrastructure.facade.datatypes.RespondOnlineStoreType addDefaultCatalog(java.lang.String storeId, java.lang.String catalogId, java.util.Map<java.lang.String,java.lang.String> customFields)
storeId
- The store id for which the default catalogId need to be setcatalogId
- The catalog id that need to be set ad default for the storecustomFields
- The custom fields ("Field1", "Field2" and "Field3") of the default catalog.
Field 1 is integer and Field 2 and Field 3 are string.public com.ibm.commerce.infrastructure.facade.datatypes.RespondOnlineStoreType changeDefaultCatalog(java.lang.String store_id, java.lang.String storedefcat_id, java.util.Map<java.lang.String,java.lang.String> customFields)
store_id
- The store id of the current storestoredefcat_id
- The primary key of the STOREDEFCAT tablecustomFields
- The custom fields ("Field1", "Field2" and "Field3") of the default catalog.
Field 1 is integer and Field 2 and Field 3 are string.public com.ibm.commerce.infrastructure.facade.datatypes.RespondOnlineStoreType deleteDefaultCatalog(java.lang.String storeId, java.lang.String storedefcatId)
storeId
- The store id whose default catalogId configuration need to be
deleted.storedefcatId
- The primary key of the STOREDEFCAT table.public com.ibm.commerce.infrastructure.facade.datatypes.RespondFolderType removeFolderItem(java.lang.String folderId, java.lang.String[] referenceId, java.lang.String[] folderItemType)
folderId
- The unique ID of the folder to remove the folder item from.referenceId
- The unique IDs of the objects these folder items reference, such as the px_promotion_id
in the case these folder items references a promotion.folderItemType
- The type of objects these folder items reference. For example "Promotion"
if these folder items reference a promotion.public com.ibm.commerce.infrastructure.facade.datatypes.RespondFolderType removeFolderItem(java.lang.String folderId, java.lang.String[] folderItemId)
folderId
- The unique ID of the folder to remove the folder item from.folderItemId
- The unique IDs of the folder items to remove from this folder.public com.ibm.commerce.infrastructure.facade.datatypes.RespondFolderType addFolderItem(java.lang.String folderId, java.lang.String[] referenceId, java.lang.String[] folderItemType, java.lang.String[] storeId, java.util.List<java.util.Map> customFieldList)
folderId
- The unique ID of the folder to add the folder item too.referenceId
- The unique ID of the objects this folder item references, such as the px_promotion_id
in the case this folder item references a promotion.folderItemType
- The type of object this folder item references. For example "Promotion"
if this folder item references a promotion.storeId
- The unique ID of the store that owns the object being referenced. For example, if
this folder item is referencing a promotion that is owned by store 10101 then this
storeId must also be 10101.customFieldList
- A list of maps where each map holds the values for field1, field2, and field3
to put into the FOLDERITEM table for a folder item.public com.ibm.commerce.infrastructure.facade.datatypes.AcknowledgeFolderType createFolder(java.lang.String identifier, java.lang.String usage, java.lang.String description, java.lang.String parentFolderId, java.lang.String storeId, java.util.Map customFieldMap)
identifier
- The identifier of the folder to be created.usage
- The usage of the folder to be created. For example, "IBM_PromotionFolder", "IBM_AttributeFolder", "IBM_ActivityFolder",
"IBM_EMarketingSpotFolder", "IBM_CustomerSegmentFolder", "IBM_ContentFolder".description
- The description of the folder.parentFolderId
- The unique id of the parent folder. Null means this folder is a top folder.storeId
- The unique id of the store this folder belongs to.customFieldMap
- A map holds the values for field1, field2, and field3
to put into the FOLDER table for a folder. Null means no changes to custom fields.public com.ibm.commerce.infrastructure.facade.datatypes.RespondFolderType updateFolder(java.lang.String folderId, java.lang.String identifier, java.lang.String description, java.util.Map customFieldMap)
folderId
- The unique id of the folder to be update.identifier
- The new identifier of the folder. Null means no change to identifierdescription
- The new description of the folder. Null means on change to description.customFieldMap
- A map holds the values for field1, field2, and field3
to put into the FOLDER table for a folder. Null means no changes to custom fields.public com.ibm.commerce.infrastructure.facade.datatypes.RespondFolderType moveFolder(java.lang.String folderId, java.lang.String parentFolderId)
folderId
- The unique id of the folder to be moved.parentFolderId
- The unique id of the new parent folder. Null means move folder as top folder.public com.ibm.commerce.infrastructure.facade.datatypes.ShowFolderDataAreaType getFolderById(java.lang.String folderId, java.lang.String accessProfile) throws com.ibm.commerce.infrastructure.facade.client.FolderException
folderId
- The unique id of the folders to get.accessProfile
- The access profile.FolderException
- The FolderException
is thrown if error
information is found in the specified ShowFolderDataArea
.
This will represent that there was a problem when performing the operation.public com.ibm.commerce.infrastructure.facade.datatypes.RespondOnlineStoreDataAreaType addSEOURL(java.lang.String storeId, java.lang.String objectId, java.lang.String usage, java.util.List<com.ibm.commerce.foundation.common.datatypes.SEOURLType> seoURLTypeList) throws OnlineStoreException
storeId
- The store Id.objectId
- The Object Id for which the SEO URLs belongs to.usage
- The usage type of the SEO URLs.seoURLTypeList
- The list of SEO URLs to be added.OnlineStoreException
public com.ibm.commerce.infrastructure.facade.datatypes.RespondOnlineStoreDataAreaType updateSEOURL(java.lang.String storeId, java.lang.String objectId, java.lang.String usage, java.util.List<com.ibm.commerce.foundation.common.datatypes.SEOURLType> seoURLTypeList) throws OnlineStoreException
storeId
- The store Id.objectId
- The Object Id for which the SEO URLs belongs to.usage
- The usage type of the SEO URLs.seoURLTypeList
- The list of SEO URLs to be updated.OnlineStoreException
public com.ibm.commerce.infrastructure.facade.datatypes.RespondOnlineStoreDataAreaType deleteSEOURL(java.lang.String storeId, java.lang.String objectId, java.lang.String usage, java.util.List<com.ibm.commerce.foundation.common.datatypes.SEOURLType> seoURLTypeList) throws OnlineStoreException
storeId
- The store Id.objectId
- The Object Id for which the SEO URLs belongs to.usage
- The usage type of the SEO URLs.seoURLTypeList
- The list of SEO URLs to be deleted.OnlineStoreException
public com.ibm.commerce.infrastructure.facade.datatypes.RespondOnlineStoreDataAreaType changeSEOURL(java.lang.String storeId, java.lang.String objectId, java.lang.String usage, java.util.List<com.ibm.commerce.foundation.common.datatypes.SEOURLType> seoURLTypeList, java.lang.String actionCode) throws OnlineStoreException
storeId
- The store id.objectId
- The Object Id for which the SEO URLs belongs to.usage
- The usage type of the SEO URLs.seoURLTypeList
- The list of SEO URLs to be changed.actionCode
- The action code to operate on the SEO URLs (Add, Change, Delete).OnlineStoreException
public com.ibm.commerce.infrastructure.facade.datatypes.RespondOnlineStoreDataAreaType changeSEOURL(java.lang.String storeId, java.lang.String[] actions, com.ibm.commerce.foundation.common.datatypes.SEOURLType[] seoURLTypes, java.lang.String[] expressions) throws OnlineStoreException
storeId
- The store id.actions
- The array of actions to operate on the SEO URLs.seoURLTypes
- The array of SEO URLs to be changed.expressions
- The array of request XPATH expressions for processing nouns.OnlineStoreException
public com.ibm.commerce.infrastructure.facade.datatypes.RespondOnlineStoreDataAreaType addSEOProperties(java.lang.String storeId, java.lang.String objectId, java.lang.String pageGroup, java.util.List<com.ibm.commerce.foundation.common.datatypes.SEOPropertiesType> seoPropertiesList) throws OnlineStoreException
storeId
- The store Id.objectId
- The Object Id for which the SEO Properties belongs to.pageGroup
- The Page Group of the Page Object.seoPropertiesList
- The list of SEO Properties to be added.OnlineStoreException
public com.ibm.commerce.infrastructure.facade.datatypes.RespondOnlineStoreDataAreaType updateSEOProperties(java.lang.String storeId, java.lang.String objectId, java.lang.String pageGroup, java.util.List<com.ibm.commerce.foundation.common.datatypes.SEOPropertiesType> seoPropertiesList) throws OnlineStoreException
storeId
- The store Id.objectId
- The Object Id for which the SEO Properties belongs to.pageGroup
- The Page Group of the Page Object.seoPropertiesList
- The list of SEO Properties to be updated.OnlineStoreException
public com.ibm.commerce.infrastructure.facade.datatypes.RespondOnlineStoreDataAreaType deleteSEOProperties(java.lang.String storeId, java.lang.String objectId, java.lang.String pageGroup, java.util.List<com.ibm.commerce.foundation.common.datatypes.SEOPropertiesType> seoPropertiesList) throws OnlineStoreException
storeId
- The store Id.objectId
- The Object Id for which the SEO Properties belongs to.pageGroup
- The Page Group of the Page Object.seoPropertiesList
- The list of SEO Properties to be deleted.OnlineStoreException
public com.ibm.commerce.infrastructure.facade.datatypes.RespondOnlineStoreDataAreaType changeSEOProperties(java.lang.String storeId, java.lang.String objectId, java.lang.String pageGroup, java.util.List<com.ibm.commerce.foundation.common.datatypes.SEOPropertiesType> seoPropertiesList, java.lang.String actionCode) throws OnlineStoreException
storeId
- The store Id.objectId
- The Object Id for which the SEO Properties belongs to.pageGroup
- The Page Group of the Page Object.seoPropertiesList
- The list of SEO Properties to be changed.actionCode
- The action code to operate on the SEO Properties (Add, Change, Delete).OnlineStoreException
public com.ibm.commerce.infrastructure.facade.datatypes.RespondOnlineStoreDataAreaType changeSEOProperties(java.lang.String storeId, java.lang.String[] actions, com.ibm.commerce.foundation.common.datatypes.SEOPropertiesType[] seoPropertiesTypes, java.lang.String[] expressions) throws OnlineStoreException
storeId
- The store id.actions
- The array of actions to operate on the SEO Properties.seoPropertiesTypes
- The array of SEO Properties to be changed.expressions
- The array of request XPATH expressions for processing nouns.OnlineStoreException