public final class CampaignInitiativeCache extends java.lang.Object implements CampaignConstants
Modifier and Type | Class and Description |
---|---|
static class | CampaignInitiativeCache.CachedEMarketingSpot
The inner class CachedEMarketingSpot contains the content of the cached e-Marketing Spot.
|
static class | CampaignInitiativeCache.CachedInitiative
The inner class CachedInitiative contains the content of the cached initiative.
|
Modifier and Type | Field and Description |
---|---|
static boolean | cacheEMarketingSpotNameIdMapping
Disable the caching of the e-Marketing Spot Name to ID relationship if this information is not required because full page caching is used.
|
static boolean | clearLocalCacheAndCreateBroadcastJob
Disable clearing the campaign initiative cache when business users make changes in Accelerator, and do not create a broadcast job to clear the cache on all servers.
|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
CampaignInitiativeCache() |
Modifier and Type | Method and Description |
---|---|
static CampaignInitiativeCache.CachedInitiative | getCachedInitiative(java.lang.Integer initiativeId)
This function takes the initiative ID, and returns the cached initiative object.
|
static java.util.Vector | getCachedInitiatives(java.lang.Integer eMarketingSpotId)
This function takes the e-Marketing Spot ID, and according to the initiative schedule, populates the content of the initiatives that will be shown to this e-Marketing Spot to the cached initiative inner class.
|
static java.util.Vector | getCachedInitiatives(java.lang.Integer eMarketingSpotId, java.sql.Timestamp currentTime)
This function takes the e-Marketing Spot ID, and according to the initiative schedule, populates the content of the initiatives that will be shown to this e-Marketing Spot to the cached initiative inner class.
|
static java.util.Vector | getCachedInitiatives(java.lang.String eMarketingSpotName, java.lang.Integer storeId)
This function takes an e-Marketing Spot name and store ID, and according to the initiative schedule, populates the content of the initiatives that will be shown to this e-Marketing Spot to the cached initiative inner class.
|
static java.util.Vector | getCachedInitiatives(java.lang.String eMarketingSpotName, java.lang.Integer emsStoreId, java.lang.Integer currentStoreId)
This function takes an e-Marketing Spot name and store ID, and according to the initiative schedule, populates the content of the initiatives that will be shown to this e-Marketing Spot to the cached initiative inner class.
|
static java.util.Vector | getCachedInitiatives(java.lang.String eMarketingSpotName, java.lang.Integer emsStoreId, java.lang.Integer currentStoreId, java.sql.Timestamp currentTime)
This function takes an e-Marketing Spot name and store ID, and according to the initiative schedule, populates the content of the initiatives that will be shown to this e-Marketing Spot to the cached initiative inner class.
|
static java.util.Vector | getCachedInitiatives(java.lang.String eMarketingSpotName, java.lang.Integer storeId, java.sql.Timestamp currentTime)
This function takes an e-Marketing Spot name and store ID, and according to the initiative schedule, populates the content of the initiatives that will be shown to this e-Marketing Spot to the cached initiative inner class.
|
static CampaignInitiativeCache.CachedEMarketingSpot | getEMarketingSpot(java.lang.String eMarketingSpotName, java.lang.Integer storeId)
This function takes an e-Marketing Spot name and store ID, and returns the cached e-Marketing Spot object.
|
static java.lang.Integer | getEMarketingSpotId(java.lang.String eMarketingSpotName, java.lang.Integer storeId)
This function takes an e-Marketing Spot name and store ID, and returns an e-Marketing Spot ID.
|
static boolean | localRefresh()
Performs a refresh of the local cache.
|
static void | refresh(CommandContext commandContext)
Performs a refresh of the initiative cache.
|
public static final java.lang.String COPYRIGHT
public static boolean cacheEMarketingSpotNameIdMapping
public static boolean clearLocalCacheAndCreateBroadcastJob
public static boolean localRefresh()
public static void refresh(CommandContext commandContext) throws ECException
public static CampaignInitiativeCache.CachedInitiative getCachedInitiative(java.lang.Integer initiativeId)
public static java.util.Vector getCachedInitiatives(java.lang.Integer eMarketingSpotId)
public static java.util.Vector getCachedInitiatives(java.lang.Integer eMarketingSpotId, java.sql.Timestamp currentTime)
public static java.util.Vector getCachedInitiatives(java.lang.String eMarketingSpotName, java.lang.Integer storeId)
public static java.util.Vector getCachedInitiatives(java.lang.String eMarketingSpotName, java.lang.Integer storeId, java.sql.Timestamp currentTime)
public static java.util.Vector getCachedInitiatives(java.lang.String eMarketingSpotName, java.lang.Integer emsStoreId, java.lang.Integer currentStoreId)
public static java.util.Vector getCachedInitiatives(java.lang.String eMarketingSpotName, java.lang.Integer emsStoreId, java.lang.Integer currentStoreId, java.sql.Timestamp currentTime)
public static java.lang.Integer getEMarketingSpotId(java.lang.String eMarketingSpotName, java.lang.Integer storeId)
public static CampaignInitiativeCache.CachedEMarketingSpot getEMarketingSpot(java.lang.String eMarketingSpotName, java.lang.Integer storeId)