java.lang.Object | +--com.ibm.commerce.me.datatype.StoreHelper
contains utility methods related to the store and the catalog. Creation date: (5/2/01 8:04:59 PM)
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM Copyright field |
Constructor Summary | |
---|---|
StoreHelper() |
Method Summary | |
---|---|
static java.lang.Long |
findCatalogId(long buyerId, long supplierId,
java.lang.Integer protocolId) Finds the catalog in a store that belongs to a supplier and a buyer and a protocol has access to using the B2BMapping table. |
static java.lang.Long |
findMemberGroupId(long buyerId, long supplierId,
java.lang.Integer protocolId) Finds the memberGroup given the supplier id and the buyer id and protocol id |
static java.lang.Integer |
findStoreId(java.lang.Long supplierId, java.lang.Long catalogId,
java.lang.Long contractId) Find the store to which the given catalog belongs to. |
static java.lang.String |
getResponseErrorView(java.lang.String protocolId,
java.lang.String buyerId, java.lang.String message) Gets the response error view based on a protocol, buyer, and message |
static java.lang.String |
getResponseViewName(java.lang.String protocolId,
java.lang.String buyerId, java.lang.String message) Gets the response view namebased on a protocol, buyer, and message |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public StoreHelper()
Method Detail |
---|
public static java.lang.Long findCatalogId(long buyerId, long supplierId, java.lang.Integer protocolId)
buyerId
- the buyer Id used to find the catalogsupplierId
- the supplier Id used to find the catalogprotocolId
- the protocol ID used to find the catalogpublic static java.lang.Long findMemberGroupId(long buyerId, long supplierId, java.lang.Integer protocolId)
buyerId
- the buyer Id used to find the member groupsupplierId
- the supplier Id used to find the member
groupprotocolId
- the protocol Id used to find the member
grouppublic static java.lang.Integer findStoreId(java.lang.Long supplierId, java.lang.Long catalogId, java.lang.Long contractId)
supplierId
- the member ID for the Supplier.catalogId
- the id used to identify a catalog.contractId
- the id used to identify a specify contract.public static java.lang.String getResponseErrorView(java.lang.String protocolId, java.lang.String buyerId, java.lang.String message)
protocolId
- a code used to identify a specific protocol.buyerId
- the orgnaization ID for the buyer organization.message
- a name used to identify a view.public static java.lang.String getResponseViewName(java.lang.String protocolId, java.lang.String buyerId, java.lang.String message)
protocolId
- a code used to identify a specific protocol.buyerId
- the orgnaization ID for the buyer organization.message
- a name used to identify a view.