public class SupplierHubUserEligibleBuyerContractRegistry
extends com.ibm.commerce.registry.AbstractManagedDynamicCacheRegistry
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
The IBM copyright string.
|
static java.lang.String |
REGISTRY_NAME
The name of this registry.
|
Constructor and Description |
---|
SupplierHubUserEligibleBuyerContractRegistry()
Constructor for SupplierHubUserEligibleBuyerContractRegistry.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
createKey(java.lang.String astrKey)
No-op.
|
java.lang.String |
createKeyString(com.ibm.commerce.datatype.TypedProperty aTypedProperty)
No-op.
|
java.lang.Long[] |
getEligibleBuyerContractIds(java.lang.Integer anSupplierHubStoreId,
java.lang.Long anUserId)
Returns the eligible buyer contract IDs, default contracts excluded.
|
java.lang.Long[] |
getEligibleContractIds(java.lang.Integer anSupplierHubStoreId,
java.lang.Long anUserId)
Returns the eligible contract IDs, default contracts included.
|
static SupplierHubUserEligibleBuyerContractRegistry |
getInstance()
Returns the unique instance of this registry.
|
void |
initialize()
Initializes this registry.
|
void |
populate(com.ibm.commerce.registry.LRUDynamicHashtable aCache)
No-op.
|
java.lang.Object |
retrieve(java.lang.Object aKey)
Returns the buyer contracts which a user is eligible for in supplier hosted stores
which a supplier hub is associated with.
|
addElement, findObject, getCache, getCacheSize, getElement, getElementCount, getElements, getEvictions, getHits, getKeys, getMisses, getUsedCacheSize, refresh, removeAllElements, removeElement, setCache, setCacheSize, setInitialCapacity, setLoadFactor, update
public static final java.lang.String COPYRIGHT
public static final java.lang.String REGISTRY_NAME
public SupplierHubUserEligibleBuyerContractRegistry()
public java.lang.Object createKey(java.lang.String astrKey) throws java.lang.Exception
createKey
in interface com.ibm.commerce.registry.ElementUpdate
createKey
in class com.ibm.commerce.registry.AbstractManagedDynamicCacheRegistry
astrKey
- java.lang.Exception
ElementUpdate#createKey(String)
public java.lang.String createKeyString(com.ibm.commerce.datatype.TypedProperty aTypedProperty) throws java.lang.Exception
createKeyString
in interface com.ibm.commerce.registry.ElementUpdate
createKeyString
in class com.ibm.commerce.registry.AbstractManagedDynamicCacheRegistry
aTypedProperty
- java.lang.Exception
ElementUpdate#createKeyString(TypedProperty)
public java.lang.Long[] getEligibleBuyerContractIds(java.lang.Integer anSupplierHubStoreId, java.lang.Long anUserId) throws com.ibm.commerce.exception.ECException
anSupplierHubStoreId
- the supplier hub store ID.anUserId
- the user ID.com.ibm.commerce.exception.ECException
public java.lang.Long[] getEligibleContractIds(java.lang.Integer anSupplierHubStoreId, java.lang.Long anUserId) throws com.ibm.commerce.exception.ECException
anSupplierHubStoreId
- the supplier hub store ID.anUserId
- the user ID.com.ibm.commerce.exception.ECException
public static SupplierHubUserEligibleBuyerContractRegistry getInstance()
public void initialize() throws java.lang.Exception
initialize
in interface com.ibm.commerce.registry.Registry
initialize
in class com.ibm.commerce.registry.AbstractManagedDynamicCacheRegistry
java.lang.Exception
public void populate(com.ibm.commerce.registry.LRUDynamicHashtable aCache) throws java.lang.Exception
populate
in class com.ibm.commerce.registry.AbstractManagedDynamicCacheRegistry
aCache
- java.lang.Exception
AbstractManagedDynamicCacheRegistry.populate(LRUDynamicHashtable)
public java.lang.Object retrieve(java.lang.Object aKey) throws java.lang.Exception
retrieve
in class com.ibm.commerce.registry.AbstractManagedDynamicCacheRegistry
aKey
- a list of key values (List
):
Integer
).Long
).Object
[]):
Long
[]).Timestamp
).java.lang.Exception
SupplyChainHelper.getEligibleBuyerContractIdsWithExpiryTime(Long, Integer)
,
AbstractManagedDynamicCacheRegistry.retrieve(Object)