public interface PortletStorePlugIn extends PortletPlugIn
In WebSphere Commerce an online store is the place where all transactions for your online business occur. All online stores created with WebSphere Commerce include at least one of the following types of assets:
If a store contains all three types of assets, that is storefront assets, business logic, and store data, it is a fully operational store. If a store contains only a subset of the assets, that is it contains storefront assets and business logic, or store data and business logic, or just store data, it is known in WebSphere Commerce as an asset store.
Asset stores are collections of sharable resources (business artifacts, business processes and storefront assets) that can be leveraged in other stores. An asset store is usually composed of the assets that can be used by multiple stores. Typically, an asset store does not have a storefront.
This asset sharing concept can also be used in the WebSphere Portal environment, with the aid of this Store Plug-in Extension. It leverages the MVC Portlet plug-in framework so that a customized version can be specified. The store plug-in must implement the com.ibm.commerce.foundation.client.portal.services.PortletStorePlugIn interface which can be initialized and destroyed along with the MVC portlet.
A default implementation has been provided - com.ibm.commerce.foundation.client.portal.services.MVCPortletStoreService.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String | getAssetStoreId(javax.portlet.PortletRequest portletRequest)
Returns the asset store Id based on the current store Id defined in the business context; if the given store Id is not associated with any other asset store, then the same store Id is returned.
|
java.lang.String | getStoreDirectory(javax.portlet.PortletRequest portletRequest)
Returns the store directory based on the current store Id in the business context, such as "ConsumerDirectory".
|
java.lang.String | getStoreId(javax.portlet.PortletRequest portletRequest)
Returns the WebSphere Commerce store Id based on the current business context.
|
java.lang.String | getStoreLocalURLPrefix(javax.portlet.PortletRequest portletRequest)
Returns the store local URL prefix based on the current store Id in the business context; this is typically a relative directory location within the portlet application, such as "jsp/html".
|
java.lang.String | getStoreRemoteURLPrefix(javax.portlet.PortletRequest portletRequest)
Returns the store remote URL prefix based on the current store Id in the business context; this is typically the former part of an external URL request, such as "http://hostname:port/wcsstore".
|
boolean | hasAssetStore(javax.portlet.PortletRequest portletRequest)
Returns whether the current store Id in the business context has an associated Commerce asset store.
|
static final java.lang.String COPYRIGHT
java.lang.String getStoreId(javax.portlet.PortletRequest portletRequest)
java.lang.String getAssetStoreId(javax.portlet.PortletRequest portletRequest)
java.lang.String getStoreLocalURLPrefix(javax.portlet.PortletRequest portletRequest)
java.lang.String getStoreRemoteURLPrefix(javax.portlet.PortletRequest portletRequest)
java.lang.String getStoreDirectory(javax.portlet.PortletRequest portletRequest)
boolean hasAssetStore(javax.portlet.PortletRequest portletRequest)