public class SupplyChainHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
The IBM copyright string.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
getCatalogEntryRelatedStoreId(java.lang.Long anCatalogEntryId)
Returns the store which a catalog entry is related to through the STORECENT table.
|
java.lang.Integer |
getCategoryRelatedStoreId(java.lang.Long anCategoryId)
Returns the store which a category is related to through the STORECGRP table.
|
java.lang.Object[] |
getEligibleBuyerContractIdsWithExpiryTime(java.lang.Long anUserId,
java.lang.Integer anSupplierHubStoreId)
Returns the buyer contracts which a user is eligible for in supplier hosted stores
which a supplier hub is associated with.
|
com.ibm.commerce.contract.objects.TradingAgreementAccessBean[] |
getEligibleContracts(java.lang.Integer anStoreId,
java.lang.Long anUserId)
Returns the contracts which a user is eligible to in a (supplier hosted) store.
|
com.ibm.commerce.contract.objects.TradingAgreementAccessBean[] |
getEligibleContracts(java.lang.Integer anStoreId,
java.lang.Long anUserId,
com.ibm.commerce.command.CommandContext cc)
Returns the contracts which a user is eligible to in a (supplier hosted) store.
|
static SupplyChainHelper |
getInstance()
Returns the unique instance of this class.
|
java.lang.Integer[] |
getSupplierHostedStoreIds(java.lang.Integer anSupplierHubStoreId)
Returns the supplier hosted stores which a supplier hub is associated with.
|
boolean |
isCatalogEntryEntitled(java.lang.Long anCatalogEntryId,
java.lang.Long anUserId)
Returns whether a user is entitled to a catalog entry.
|
boolean |
isCatalogEntryEntitled(java.lang.Long anCatalogEntryId,
java.lang.Long anUserId,
com.ibm.commerce.command.CommandContext cc)
Returns whether a user is entitled to a catalog entry.
|
boolean |
isSupplierHostedStore(java.lang.Integer anStoreId)
Returns whether a store is a supplier hosted store.
|
boolean |
isSupplierHub(java.lang.Integer anStoreId)
Returns whether a store is a supplier hub.
|
public static final java.lang.String COPYRIGHT
public java.lang.Integer getCatalogEntryRelatedStoreId(java.lang.Long anCatalogEntryId) throws com.ibm.commerce.exception.ECException
anCatalogEntryId
- the catalog entry ID.com.ibm.commerce.exception.ECException
public java.lang.Integer getCategoryRelatedStoreId(java.lang.Long anCategoryId) throws com.ibm.commerce.exception.ECException
anCategoryId
- the category ID.com.ibm.commerce.exception.ECException
public java.lang.Object[] getEligibleBuyerContractIdsWithExpiryTime(java.lang.Long anUserId, java.lang.Integer anSupplierHubStoreId) throws com.ibm.commerce.exception.ECException
SupplierHubUserEligibleBuyerContractRegistry.getEligibleBuyerContractIds(Integer, Long)
whenever possible.anUserId
- the user ID.anSupplierHubStoreId
- the supplier hub store ID.Object
[]):
Long
[]).Timestamp
).com.ibm.commerce.exception.ECException
SupplierHubUserEligibleBuyerContractRegistry.getEligibleBuyerContractIds(Integer, Long)
public com.ibm.commerce.contract.objects.TradingAgreementAccessBean[] getEligibleContracts(java.lang.Integer anStoreId, java.lang.Long anUserId) throws com.ibm.commerce.exception.ECException
anStoreId
- the (supplier hosted) store ID.anUserId
- the user ID.com.ibm.commerce.exception.ECException
public com.ibm.commerce.contract.objects.TradingAgreementAccessBean[] getEligibleContracts(java.lang.Integer anStoreId, java.lang.Long anUserId, com.ibm.commerce.command.CommandContext cc) throws com.ibm.commerce.exception.ECException
anStoreId
- the (supplier hosted) store ID.anUserId
- the user ID.cc
- the command contextcom.ibm.commerce.exception.ECException
public static SupplyChainHelper getInstance()
public java.lang.Integer[] getSupplierHostedStoreIds(java.lang.Integer anSupplierHubStoreId) throws com.ibm.commerce.exception.ECException
anSupplierHubStoreId
- the supplier hub store ID.com.ibm.commerce.exception.ECException
public boolean isCatalogEntryEntitled(java.lang.Long anCatalogEntryId, java.lang.Long anUserId) throws com.ibm.commerce.exception.ECException
anCatalogEntryId
- the catalog entry ID.anUserId
- the user ID.com.ibm.commerce.exception.ECException
public boolean isCatalogEntryEntitled(java.lang.Long anCatalogEntryId, java.lang.Long anUserId, com.ibm.commerce.command.CommandContext cc) throws com.ibm.commerce.exception.ECException
anCatalogEntryId
- the catalog entry ID.anUserId
- the user ID.com.ibm.commerce.exception.ECException
public boolean isSupplierHostedStore(java.lang.Integer anStoreId) throws com.ibm.commerce.exception.ECException
anStoreId
- the store ID.com.ibm.commerce.exception.ECException
public boolean isSupplierHub(java.lang.Integer anStoreId) throws com.ibm.commerce.exception.ECException
anStoreId
- the store ID.com.ibm.commerce.exception.ECException