public class Flash
extends java.lang.Object
implements java.io.Serializable
Profile
class.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CATEGORY_DESC_PATH
The full path to the category description folder per the configured
values for "Site.Path" and "Category.Description".
|
static java.lang.String |
CATEGORY_IMG_PATH
The full path to the category image folder per the configured values for
"Site.Path" and "Category.Image".
|
static boolean |
ONETIME_SHIPTO_ALL
The value of the "Customer.OneTimeShipto" key in properties.
|
static boolean |
ONETIME_SHIPTO_MIX
The value of the "Customer.OneTimeShipto" key in properties.
|
static boolean |
ONETIME_SHIPTO_NONE
The value of the "Customer.OneTimeShipto" key in properties.
|
static boolean |
PERMIT_CUSTID
The value of the "Product.Catalog.Permit.Active" key in properties.
|
static boolean |
PERMIT_ENABLED
The value of the "Product.Catalog.Permit.Active" key in properties.
|
static boolean |
PERMIT_SHIPID
The value of the "Product.Catalog.Permit.Active" key in properties.
|
static boolean |
PERMIT_USERID
The value of the "Product.Catalog.Permit.Active" key in properties.
|
static java.lang.String |
PRODUCT_DESC_PATH_LARGE
The full path to the product large description folder per the configured
values for "Site.Path" and "Product.Description.Large".
|
static java.lang.String |
PRODUCT_DESC_PATH_SMALL
The full path to the product small description folder per the configured
values for "Site.Path" and "Product.Description.Small".
|
static boolean |
PRODUCT_DESC_TRANSLATE
The configured flag for performing translation for description file names.
|
static java.lang.String |
PRODUCT_IMG_PATH_LARGE
The full path to the product large image folder per the configured
values for "Site.Path" and "Product.Image.Large".
|
static java.lang.String |
PRODUCT_IMG_PATH_SMALL
The full path to the product small image folder per the configured
values for "Site.Path" and "Product.Image.Small".
|
static boolean |
PRODUCT_IMG_TRANSLATE
The configured flag for performing translation for image file names.
|
static boolean |
PRODUCT_MULTIPLEUOM
The value of the "Product.MultipleUOM" key in properties.
|
static boolean |
REALTIME_AVAILABILITY
Determine if realtime stock availability is turned on
|
static java.lang.String[] |
REALTIME_EXCLUDE
A list of classes that are excluded from realtime pricing/availability.
|
static boolean |
REALTIME_PRICING
Determine if realtime pricing is turned on
|
static boolean |
REALTIME_PRICING_DFLT_USER
Determine if realtime pricing is turned on for the default user
|
static boolean |
SECURITY_ENCRYPT_CCNO
The value of the "Security.Encrypt.CreditCardNumbers" key in properties.
|
static boolean |
SECURITY_ENCRYPT_PWD
The value of the "Security.Encrypt.Passwords" key in properties.
|
private static long |
serialVersionUID
The class' serialization version id.
|
static int |
STORE_PRICE_DECIMALS
The value of the "Store.Price.Decimals" key in properties.
|
static java.text.DecimalFormat |
STORE_PRICE_FMT1
A formatter for unit price.
|
static java.text.DecimalFormat |
STORE_PRICE_FMT2
A formatter for unit price.
|
static java.text.DecimalFormat |
STORE_PRICE_FMT3
A formatter for unit price.
|
static int |
STORE_QTY_DECIMALS
The value of the "Store.Qty.Decimals" key in properties.
|
static java.text.DecimalFormat |
STORE_QTY_FMT1
A formatter for quantity.
|
static java.text.DecimalFormat |
STORE_QTY_FMT2
A formatter for quantity.
|
static int |
STORE_STOCK_LOWQTY
Default low stock quantity for a product
|
static int |
STORE_STOCK_OUTQTY
Default out of stock quantity for a product
|
static int |
STORE_TOTAL_DECIMALS
The value of the "Store.Total.Decimals" key in properties.
|
static java.text.DecimalFormat |
STORE_TOTAL_FMT1
A formatter for extended amount or total amount.
|
static java.text.DecimalFormat |
STORE_TOTAL_FMT2
A formatter for extended amount or total amount.
|
static java.text.DecimalFormat |
STORE_TOTAL_FMT3
A formatter for extended amount or total amount.
|
static boolean |
STORE_TOTAL_TRUNCATE
The value of the "Store.ExtendedAmt.Truncate" key in properties.
|
static java.lang.String[] |
USER_TYPE_CODES
The value of the "User.Type.Codes" key in properties.
|
static java.lang.String[] |
USER_TYPE_NAMES
The value of the "User.Type.Names" key in properties.
|
Constructor and Description |
---|
Flash() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getAbsolutePath(java.lang.String key)
Returns the full path to the folder defined by the given properties key.
|
private static void |
modifyFormatter(java.text.DecimalFormat fmt,
int decimals,
boolean groups,
boolean symbol,
boolean useminus)
Modifies a decimal format's definition using the supplied parameters.
|
private static final long serialVersionUID
public static java.lang.String CATEGORY_DESC_PATH
public static java.lang.String CATEGORY_IMG_PATH
public static final boolean ONETIME_SHIPTO_ALL
public static final boolean ONETIME_SHIPTO_NONE
public static final boolean ONETIME_SHIPTO_MIX
public static final boolean PERMIT_ENABLED
public static final boolean PERMIT_CUSTID
public static final boolean PERMIT_SHIPID
public static final boolean PERMIT_USERID
public static java.lang.String PRODUCT_DESC_PATH_LARGE
public static java.lang.String PRODUCT_DESC_PATH_SMALL
public static final boolean PRODUCT_DESC_TRANSLATE
public static java.lang.String PRODUCT_IMG_PATH_LARGE
public static java.lang.String PRODUCT_IMG_PATH_SMALL
public static final boolean PRODUCT_IMG_TRANSLATE
public static final boolean PRODUCT_MULTIPLEUOM
public static java.lang.String[] REALTIME_EXCLUDE
public static boolean REALTIME_PRICING
public static boolean REALTIME_PRICING_DFLT_USER
public static boolean REALTIME_AVAILABILITY
public static final boolean SECURITY_ENCRYPT_CCNO
public static final boolean SECURITY_ENCRYPT_PWD
public static final int STORE_PRICE_DECIMALS
public static final java.text.DecimalFormat STORE_PRICE_FMT1
public static final java.text.DecimalFormat STORE_PRICE_FMT2
public static final java.text.DecimalFormat STORE_PRICE_FMT3
public static final int STORE_QTY_DECIMALS
public static final java.text.DecimalFormat STORE_QTY_FMT1
public static final java.text.DecimalFormat STORE_QTY_FMT2
public static final int STORE_STOCK_LOWQTY
public static final int STORE_STOCK_OUTQTY
public static final int STORE_TOTAL_DECIMALS
public static final java.text.DecimalFormat STORE_TOTAL_FMT1
public static final java.text.DecimalFormat STORE_TOTAL_FMT2
public static final java.text.DecimalFormat STORE_TOTAL_FMT3
public static final boolean STORE_TOTAL_TRUNCATE
STORE_TOTAL_DECIMALS
.public static final java.lang.String[] USER_TYPE_CODES
public static final java.lang.String[] USER_TYPE_NAMES
public static java.lang.String getAbsolutePath(java.lang.String key)
key
- (String) The properties key for a folder's relative path.private static void modifyFormatter(java.text.DecimalFormat fmt, int decimals, boolean groups, boolean symbol, boolean useminus)
fmt
- (DecimalFormat) The format to modify.decimals
- (int) The number of decimal positions.groups
- (boolean) true
if groupings separators are to
be included, otherwise false
.symbol
- (boolean) true
if the currency symbol is to be
included, otherwise false
. Note that this method will
only remove the currency symbol from a format. It will not add
a currency symbol.useminus
- (boolean) true
if negative numbers should be
denoted with a trailing minus sign, otherwise false
.