public abstract class BaseTag
extends javax.servlet.jsp.tagext.TagSupport
This class also provides access to useful, common objects like the CommandContext, the BIConfigRegistry, and Collator.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
BaseTag()
Upon construction, get the global configuration object and save it for later use
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.StringBuilder | appendJsonParameter(java.lang.StringBuilder sb, java.lang.String key, java.lang.String value)
Helper method to prepare JSON output.
|
protected java.lang.StringBuilder | appendJsonParameter(java.lang.StringBuilder sb, java.lang.String key, java.lang.String value, boolean lastValue)
Helper method to prepare JSON output.
|
int | doStartTag()
Executed when the tag is first reached.
|
java.lang.String | getBiprovider()
Gets the BI provider as set on the tag
|
java.lang.String | getCategoryIdForProduct(java.lang.String catEntryId)
Deprecated.
Use com.ibm.commerce.bi.taglib.TagUtils.findCategoryId( Long catEntryId, HttpServletRequest request, CommandContext ctx)
|
com.ibm.icu.text.Collator | getCollator()
Returns the Collator of the current request in the current Locale.
|
CommandContext | getCommandContext()
Returns the CommandContext of the current request.
|
BIConfigRegistry | getConfig()
Gets the instance of the global BI configuration object.
|
com.ibm.icu.text.NumberFormat | getNumberFormat()
Returns a NumberFormat instance which can be used for formatting purposes
|
java.lang.String | getOptionValue(java.lang.String option)
Returns the value of the given option.
|
java.lang.String | getStoreId()
Returns the store identifier
|
boolean | isDebug()
Whether or not debug output will be shown on the JSP.
|
protected boolean | isJavaScriptDebug()
This method is for IBM internal use only.
|
boolean | isOptionDisabled(java.lang.String option)
Returns true if the given option is disabled.
|
boolean | isOptionEnabled(java.lang.String option)
Returns true if the given option is enabled.
|
protected java.lang.String | selectBIProvider()
Gets the BI provider that needs to be used for this tag.
|
void | setBiprovider(java.lang.String biProvider)
Sets the BI provider
|
void | setDebug(boolean d)
Turns debugging information on or off for this particular tag instance.
|
public static final java.lang.String COPYRIGHT
public BaseTag()
public int doStartTag() throws javax.servlet.jsp.JspException
public boolean isDebug()
protected boolean isJavaScriptDebug()
public void setDebug(boolean d)
public CommandContext getCommandContext()
public BIConfigRegistry getConfig()
public com.ibm.icu.text.Collator getCollator()
public java.lang.String getStoreId()
public com.ibm.icu.text.NumberFormat getNumberFormat()
public java.lang.String getCategoryIdForProduct(java.lang.String catEntryId)
protected java.lang.String selectBIProvider()
public java.lang.String getBiprovider()
public void setBiprovider(java.lang.String biProvider)
public java.lang.String getOptionValue(java.lang.String option)
public boolean isOptionEnabled(java.lang.String option)
public boolean isOptionDisabled(java.lang.String option)
protected java.lang.StringBuilder appendJsonParameter(java.lang.StringBuilder sb, java.lang.String key, java.lang.String value)
protected java.lang.StringBuilder appendJsonParameter(java.lang.StringBuilder sb, java.lang.String key, java.lang.String value, boolean lastValue)