public class ProductTreeDataBean
extends java.lang.Object
implements com.ibm.commerce.tools.common.ui.DynamicTreeUserDataBean
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CATENTRY_TYPE_BUNDLE
Catentry type constants
|
static java.lang.String |
CATENTRY_TYPE_ITEM
Catentry type constants
|
static java.lang.String |
CATENTRY_TYPE_PACKAGE
Catentry type constants
|
static java.lang.String |
CATENTRY_TYPE_PRODUCT
Catentry type constants
|
Constructor and Description |
---|
ProductTreeDataBean()
Constructs a ProductTreeDataBean
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
buildCategoryExclusionQuery(java.lang.String contractId,
java.lang.String catalogId)
Builds the query to excluded the excluded categories
|
java.lang.String |
buildProductExclusionQuery(java.lang.String contractId)
Builds the query to excluded the excluded catentries
|
java.lang.String |
getCatalogId()
Gets the catalog identifier for the tree
|
java.lang.String |
getCategoryId()
Gets the category identifier for the tree
|
com.ibm.commerce.command.CommandContext |
getCommandContext()
Gets the command context
|
java.lang.String |
getContractId()
Gets the contract identifier for the tree
|
java.lang.String |
getDefaultLanguageId()
Gets the language identifier for the language in which to search
|
java.lang.String |
getExcludedProductSets(java.lang.String contractId)
Finds the excluded product sets from the base contract
|
java.util.Vector |
getIconInfo()
Gets the information for the icons in the tree
|
java.lang.String |
getLanguageId()
Gets the language identifier for the language in which to fetch.
|
java.util.Vector |
getMenuInfo()
Gets the information for the menu
|
java.util.Vector |
getNodeInfo()
Gets the information for the nodes in the tree
|
com.ibm.commerce.datatype.TypedProperty |
getRequestProperties()
Gets the request properties
|
java.lang.String |
getSelectionType()
Gets the selection type
|
java.lang.String |
getStoreId()
Gets the store identifier
|
java.lang.String |
getStoreIds()
Gets the store identifiers for all the related stores in the store path
|
void |
populate()
This method is used to populate the data bean.
|
void |
setCommandContext(com.ibm.commerce.command.CommandContext cc)
Sets the command context
|
void |
setRequestProperties(com.ibm.commerce.datatype.TypedProperty param)
Sets the requestProperties associated with the data bean.
|
public static final java.lang.String CATENTRY_TYPE_BUNDLE
public static final java.lang.String CATENTRY_TYPE_ITEM
public static final java.lang.String CATENTRY_TYPE_PACKAGE
public static final java.lang.String CATENTRY_TYPE_PRODUCT
public ProductTreeDataBean()
public java.lang.String buildCategoryExclusionQuery(java.lang.String contractId, java.lang.String catalogId)
contractId
- java.lang.StringcatalogId
- java.lang.Stringpublic java.lang.String buildProductExclusionQuery(java.lang.String contractId)
contractId
- java.lang.Stringpublic java.lang.String getCatalogId() throws com.ibm.commerce.exception.ECSystemException
com.ibm.commerce.exception.ECSystemException
public java.lang.String getCategoryId() throws com.ibm.commerce.exception.ECSystemException
com.ibm.commerce.exception.ECSystemException
public com.ibm.commerce.command.CommandContext getCommandContext()
getCommandContext
in interface com.ibm.commerce.beans.SmartDataBean
public java.lang.String getContractId() throws com.ibm.commerce.exception.ECSystemException
com.ibm.commerce.exception.ECSystemException
public java.lang.String getDefaultLanguageId() throws java.lang.Exception
java.lang.Exception
- - Thrown whenever an exception is encountered.public java.lang.String getExcludedProductSets(java.lang.String contractId)
contractId
- java.lang.Stringpublic java.util.Vector getIconInfo() throws com.ibm.commerce.exception.ECSystemException
getIconInfo
in interface com.ibm.commerce.tools.common.ui.DynamicTreeUserDataBean
com.ibm.commerce.exception.ECSystemException
public java.lang.String getLanguageId() throws java.lang.Exception
java.lang.Exception
- - Thrown whenever an exception is encountered.public java.util.Vector getMenuInfo() throws com.ibm.commerce.exception.ECSystemException
getMenuInfo
in interface com.ibm.commerce.tools.common.ui.DynamicTreeUserDataBean
com.ibm.commerce.exception.ECSystemException
public java.util.Vector getNodeInfo() throws com.ibm.commerce.exception.ECSystemException
getNodeInfo
in interface com.ibm.commerce.tools.common.ui.DynamicTreeUserDataBean
com.ibm.commerce.exception.ECSystemException
public com.ibm.commerce.datatype.TypedProperty getRequestProperties()
getRequestProperties
in interface com.ibm.commerce.beans.InputDataBean
public java.lang.String getSelectionType() throws com.ibm.commerce.exception.ECSystemException
com.ibm.commerce.exception.ECSystemException
public java.lang.String getStoreId() throws java.lang.Exception
java.lang.Exception
- - Thrown whenever an exception is encountered while retrieving store Idpublic java.lang.String getStoreIds() throws java.lang.Exception
java.lang.Exception
- - Thrown whenever an exception is encountered while retrieving related stores using the store access bean.public void populate() throws java.lang.Exception
DataBeanManager.activate()
runs.populate
in interface com.ibm.commerce.beans.SmartDataBean
java.lang.Exception
public void setCommandContext(com.ibm.commerce.command.CommandContext cc)
setCommandContext
in interface com.ibm.commerce.beans.SmartDataBean
cc
- com.ibm.commerce.command.CommandContextpublic void setRequestProperties(com.ibm.commerce.datatype.TypedProperty param) throws java.lang.Exception
setRequestProperties
in interface com.ibm.commerce.beans.InputDataBean
param
- - the set of properties passed to the JSP
page that invokes this data bean,java.lang.Exception