public class CampaignUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
Copyright.
|
Constructor and Description |
---|
CampaignUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String[] | getActivityViewByStoreType(java.lang.String storeType)
This method returns all activity views that a store with the given store type is allowed to access.
|
static java.lang.Integer | getCalcodeIdByIdentifier(java.lang.String calcodeCode, java.lang.Integer calcodeUsage, java.lang.Integer storeId)
This method returns the calculation code ID given the code, usage and store ID.
|
static java.lang.Long[] | getCatalogMemberIds(java.lang.Integer storeId)
This method returns all the catalog member IDs in the store path given the current store ID.
|
static java.lang.Integer[] | getCatalogStoreIds(java.lang.Integer storeId)
Deprecated.
Replaced by com.ibm.commerce.common.helpers.StoreUtil.getStorePath(storeId, com.ibm.commerce.server.ECConstants.EC_STRELTYP_CATALOG). This method returns all the catalog related store IDs in the store path given the current store ID.
|
static java.lang.Long | getCatentryIdByPartNumber(java.lang.String partNumber, java.lang.Integer storeId)
This method returns the catalog entry ID given the catalog entry part number and the current store ID.
|
static java.lang.Long | getCatentryIdByPartNumber(java.lang.String partNumber, java.lang.String DN)
This method returns the catalog entry ID given the catalog entry part number and the organization distinguish name.
|
static java.lang.Long | getCatgroupIdByIdentifier(java.lang.String identifier, java.lang.Integer storeId)
This method returns the catalog group ID given the catalog group identifier and the current store ID.
|
static java.lang.Long | getCatgroupIdByIdentifier(java.lang.String identifier, java.lang.String DN)
This method returns the catalog group ID given the catalog group identifier and the organization distinguish name.
|
static java.lang.String | getCatgroupIdentifierById(java.lang.Long catgroupId)
This method returns the catalog group identifier given the catalog group ID.
|
static java.util.Vector | getChildCatgroupIdsByParentCatgroupId(java.lang.Long catgroupId, java.util.Vector currentList)
This method returns all the child catalog groups in all levels of the given parent catalog group.
|
static java.lang.Integer | getLanguageIdFromLocaleName(java.lang.String localeName)
The getLanguageIdFromLocaleName method takes the locale, and returns the relative language ID.
|
static java.lang.String | getLocaleNameFromLanguageId(java.lang.String languageId)
The getLocaleNameFromLanguageId method takes the language ID, and returns the relative locale name.
|
static java.lang.String | getOrderStoreIds(java.lang.Integer storeId)
Deprecated.
Replaced by com.ibm.commerce.common.helpers.StoreUtil.getStorePath(storeId, com.ibm.commerce.server.ECConstants.EC_STRELTYP_REFERRAL). Gets all the order related store IDs in string format found in the store path given the current store ID.
|
static java.lang.String[] | getPromotionByInitiativeId(java.lang.Integer initiativeId, java.lang.Integer storeId)
This method gets the promotion usage, name and code that is associated with the given initiative.
|
static java.lang.String[] | getPromotionByInitiativeRule(Rule initiativeRule, java.lang.Integer storeId)
This method gets the promotion usage, name and code that is associated with the given initiative rule.
|
static java.lang.Integer | getPromotionIdByInitiativeRule(Rule initiativeRule, java.lang.Integer storeId)
This method parses an initiative rule and gets the ID of promotion if the displaying content of the given initiative is a promotion.
|
static java.lang.Integer[] | getReferralStoreIds(java.lang.Integer storeId)
Deprecated.
Replaced by com.ibm.commerce.common.helpers.StoreUtil.getStorePath(storeId, com.ibm.commerce.server.ECConstants.EC_STRELTYP_REFERRAL). Gets all the referral related store IDs found in the store path given the current store ID.
|
static java.lang.Integer | getStoreIdByIdentifier(java.lang.String storeIdentifier, java.lang.String DN)
This method returns the store entity ID given the store identifier and member distinguish name.
|
static boolean | isEmsEditable(java.lang.String storeType)
This method determines whether e-Marketing Spot is editable or not, given the current store type.
|
static boolean | isItemsRelated(CatalogEntryDataBean itemDataBean1, CatalogEntryDataBean itemDataBean2)
This method determines whether the two given items are related to the same product.
|
static boolean | isItemsRelated(ItemDataBean itemDataBean1, ItemDataBean itemDataBean2)
This method determines whether the two given items are related to the same product.
|
static boolean | isProductItemRelated(CatalogEntryDataBean productDataBean, CatalogEntryDataBean itemDataBean)
This method determines whether the given item belongs to the given product.
|
static boolean | isProductItemRelated(ProductDataBean productDataBean, ItemDataBean itemDataBean)
This method determines whether the given item belongs to the given product.
|
static boolean | isPromotionAccessible(java.lang.String storeType)
This method determines whether campaign can access promotion or not, given the current store type.
|
static java.lang.String | normalizeStringDate(java.lang.String stringDate)
The normalizeStringDate method takes the date in string format, and normalize it.
|
static java.lang.String | stripBrackets(java.lang.String s)
The stripBrackets method takes the string, and removes its bracket wrapped around it.
|
static java.lang.String | stripQuotes(java.lang.String s)
The stripQuotes method takes the string, and removes its quotes wrapped around it.
|
static java.lang.String | stripSingleQuotes(java.lang.String s)
The stripSingleQuotes method takes the string, and removes its single quotes wrapped around it.
|
static java.lang.String | substitute(java.lang.String message, int arg1)
Substitutes message parameters with arguments.
|
static java.lang.String | substitute(java.lang.String message, int arg1, int arg2)
Substitutes message parameters with arguments.
|
static java.lang.String | substitute(java.lang.String message, java.lang.Object[] arguments)
Substitutes message parameters with arguments.
|
static java.lang.String | substitute(java.lang.String message, java.lang.String arg1)
Substitutes message parameters with arguments.
|
static java.lang.String | substitute(java.lang.String message, java.lang.String arg1, java.lang.String arg2)
Substitutes message parameters with arguments.
|
static java.math.BigDecimal | toBigDecimal(java.lang.String value)
Converts a string value to BigDecimal.
|
static boolean | toBoolean(java.lang.String value)
Converts a string value to boolean.
|
static java.lang.Integer | toInteger(java.lang.String value)
Converts a string value to Ingeger.
|
static java.lang.Long | toLong(java.lang.String value)
Converts a string value to Long.
|
static java.util.Vector | toVector(java.lang.Object value)
Converts an object to a Vector.
|
public static final java.lang.String COPYRIGHT
public static java.lang.String[] getActivityViewByStoreType(java.lang.String storeType)
public static java.lang.Integer getCalcodeIdByIdentifier(java.lang.String calcodeCode, java.lang.Integer calcodeUsage, java.lang.Integer storeId)
public static java.lang.Long getCatentryIdByPartNumber(java.lang.String partNumber, java.lang.String DN)
public static java.lang.Long getCatentryIdByPartNumber(java.lang.String partNumber, java.lang.Integer storeId)
public static java.lang.Long getCatgroupIdByIdentifier(java.lang.String identifier, java.lang.String DN)
public static java.lang.Long getCatgroupIdByIdentifier(java.lang.String identifier, java.lang.Integer storeId)
public static java.lang.String getCatgroupIdentifierById(java.lang.Long catgroupId)
public static java.lang.Long[] getCatalogMemberIds(java.lang.Integer storeId)
public static java.lang.Integer[] getCatalogStoreIds(java.lang.Integer storeId)
public static java.util.Vector getChildCatgroupIdsByParentCatgroupId(java.lang.Long catgroupId, java.util.Vector currentList)
public static java.lang.Integer getLanguageIdFromLocaleName(java.lang.String localeName)
public static java.lang.String getLocaleNameFromLanguageId(java.lang.String languageId)
public static java.lang.String getOrderStoreIds(java.lang.Integer storeId)
public static java.lang.String[] getPromotionByInitiativeId(java.lang.Integer initiativeId, java.lang.Integer storeId)
public static java.lang.String[] getPromotionByInitiativeRule(Rule initiativeRule, java.lang.Integer storeId)
public static java.lang.Integer getPromotionIdByInitiativeRule(Rule initiativeRule, java.lang.Integer storeId)
public static java.lang.Integer[] getReferralStoreIds(java.lang.Integer storeId)
public static java.lang.Integer getStoreIdByIdentifier(java.lang.String storeIdentifier, java.lang.String DN)
public static boolean isEmsEditable(java.lang.String storeType)
public static boolean isPromotionAccessible(java.lang.String storeType)
public static boolean isItemsRelated(CatalogEntryDataBean itemDataBean1, CatalogEntryDataBean itemDataBean2)
public static boolean isItemsRelated(ItemDataBean itemDataBean1, ItemDataBean itemDataBean2)
public static boolean isProductItemRelated(CatalogEntryDataBean productDataBean, CatalogEntryDataBean itemDataBean)
public static boolean isProductItemRelated(ProductDataBean productDataBean, ItemDataBean itemDataBean)
public static java.lang.String normalizeStringDate(java.lang.String stringDate)
public static java.lang.String stripBrackets(java.lang.String s)
public static java.lang.String stripQuotes(java.lang.String s)
public static java.lang.String stripSingleQuotes(java.lang.String s)
public static java.lang.String substitute(java.lang.String message, java.lang.Object[] arguments)
public static java.lang.String substitute(java.lang.String message, int arg1)
public static java.lang.String substitute(java.lang.String message, int arg1, int arg2)
public static java.lang.String substitute(java.lang.String message, java.lang.String arg1)
public static java.lang.String substitute(java.lang.String message, java.lang.String arg1, java.lang.String arg2)
public static java.math.BigDecimal toBigDecimal(java.lang.String value)
public static boolean toBoolean(java.lang.String value)
public static java.lang.Integer toInteger(java.lang.String value)
public static java.lang.Long toLong(java.lang.String value)
public static java.util.Vector toVector(java.lang.Object value)