java.lang.Objectcom.ibm.commerce.tools.campaigns.CampaignUtil
The CampaignUtil class provides some utility methods that are used by campaigns.
Field Summary | |
static java.lang.String | COPYRIGHT Copyright. |
Constructor Summary | |
CampaignUtil() |
Method Summary | |
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) This method returns all the catalog related store IDs in the store path given the current store ID. |
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 | 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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String COPYRIGHT
Constructor Detail |
public CampaignUtil()
Method Detail |
public static java.lang.Long[] getCatalogMemberIds(java.lang.Integer storeId)
public static java.lang.Integer[] getCatalogStoreIds(java.lang.Integer storeId)
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 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)
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.