public class StoreHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright field
|
Constructor and Description |
---|
StoreHelper() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Long |
findCatalogId(long buyerId,
long supplierId,
java.lang.Integer protocolId)
Finds the catalog in a store that belongs to a supplier, a buyer, and a protocol
through accessing the
B2BMAPPING table. |
static java.lang.Long |
findMemberGroupId(long buyerId,
long supplierId,
java.lang.Integer protocolId)
Finds the
memberGroup given the supplier ID, the buyer ID, and the protocol ID. |
static java.lang.Integer |
findStoreId(java.lang.Long supplierId,
java.lang.Long catalogId,
java.lang.Long contractId)
Find the store that the given catalog belongs to.
|
static java.lang.String |
getResponseErrorView(java.lang.String protocolId,
java.lang.String buyerId,
java.lang.String message)
This method 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)
This method gets the response view name based on a protocol, buyer, and message.
|
public static final java.lang.String COPYRIGHT
public static java.lang.Long findCatalogId(long buyerId, long supplierId, java.lang.Integer protocolId)
B2BMAPPING
table.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)
memberGroup
given the supplier ID, the buyer ID, and the protocol ID.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 organization 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 organization ID for the buyer organization.message
- a name used to identify a view.