public class ProductTreeDataBean
extends java.lang.Object
implements com.ibm.commerce.tools.common.ui.DynamicTreeUserDataBean
com.ibm.commerce.tools.common.ui.DynamicTreeUserDataBean
class to create the catalog browser used in campaign creation.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CATENTRY_TYPE_BUNDLE
Catalog entry type constants.
|
static java.lang.String |
CATENTRY_TYPE_DYNAMIC_KIT
Catalog entry type constants.
|
static java.lang.String |
CATENTRY_TYPE_ITEM
Catalog entry type constants.
|
static java.lang.String |
CATENTRY_TYPE_PACKAGE
Catalog entry type constants.
|
static java.lang.String |
CATENTRY_TYPE_PRODUCT
Catalog entry type constants.
|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
static java.lang.String |
QUERY_TYPE_FIND_CATALOG_BY_STORE
Query type constants.
|
static java.lang.String |
QUERY_TYPE_FIND_CATENTRY_BY_CATGROUP
Query type constants.
|
static java.lang.String |
QUERY_TYPE_FIND_CATGROUP_BY_CATALOG
Query type constants.
|
static java.lang.String |
QUERY_TYPE_FIND_CHILD_CATENTRY_BY_PARENT_CATENTRY
Query type constants.
|
static java.lang.String |
QUERY_TYPE_FIND_CHILD_CATGROUP_BY_PARENT_CATGROUP
Query type constants.
|
Constructor and Description |
---|
ProductTreeDataBean()
Constructs a ProductTreeDataBean object.
|
Modifier and Type | Method and Description |
---|---|
com.ibm.commerce.tools.common.ui.DynamicTreeNode |
buildCatalogNode(java.util.Vector catalogRow)
Builds a catalog node for the dynamic tree.
|
com.ibm.commerce.tools.common.ui.DynamicTreeNode |
buildCategoryNode(java.util.Vector categoryRow)
Builds a category node for the dynamic tree.
|
com.ibm.commerce.tools.common.ui.DynamicTreeNode |
buildCatentryNode(java.util.Vector catentryRow)
Builds a catalog entry node for the dynamic tree.
|
java.lang.String |
buildQuery()
Constructs the database query that is used to fetch tree node data.
|
java.lang.String |
getCatalogId()
Gets the catalog ID defined in the root of this product tree.
|
java.lang.String |
getCategoryId()
Gets the category ID of the selected tree node.
|
java.lang.String |
getCatentryId()
Gets the catalog entry ID of the selected tree node.
|
com.ibm.commerce.command.CommandContext |
getCommandContext()
Gets the command context associated with the data bean.
|
java.lang.String |
getDefaultLanguageId()
Gets the language identifier for the language in which to search.
|
java.util.Vector |
getIconInfo()
Gets the icon information of the dynamic tree node, represented by a
Vector object. |
java.lang.String |
getLanguageId()
Gets the language identifier for the language in which to fetch.
|
java.lang.String |
getLocationType()
Gets the location type of this product tree, where different locations represent different
search type.
|
java.util.Vector |
getMenuInfo()
Gets the menu information of the dynamic tree node, represented by a
Vector object. |
java.util.Vector |
getNodeInfo()
Gets the node information of the dynamic tree node, represented by a
Vector object. |
java.lang.String |
getQueryType()
Gets the query type of the current tree level, where different types map to a query that
finds different types of result (catalog, category or catalog entry).
|
com.ibm.commerce.datatype.TypedProperty |
getRequestProperties()
Gets the request properties associated with the data bean.
|
java.lang.String |
getSelectionType()
Gets the selection type of this product tree, which identifies whether this tree is used
for category selection, catalog entry selection, or both.
|
java.lang.String |
getStoreId()
Gets the ID of the store that is currently logged on to.
|
java.lang.String |
getStoreIds()
Gets the store identifiers for all the related stores in the store path.
|
java.lang.String |
getStoreRelType()
Gets the store relationship type in the store path.
|
void |
populate()
Populates all nodes info and append to the nodeInfo vector, which will be later retrieved
by a caller data bean through getNodeInfo() method.
|
void |
setCatalogId(java.lang.String newCatalogId)
Sets the catalog ID defined in the root of this product tree.
|
void |
setCategoryId(java.lang.String newCategoryId)
Sets the category ID of the selected tree node.
|
void |
setCatentryId(java.lang.String newCatentryId)
Sets the catalog entry ID of the selected tree node.
|
void |
setCommandContext(com.ibm.commerce.command.CommandContext cc)
Sets the command context associated with the data bean.
|
void |
setLanguageId(java.lang.String newLanguageId)
Sets the language identifier for the language in which to fetch.
|
void |
setLocationType(java.lang.String newLocationType)
Sets the location type of this product tree, where different locations represent different
search type.
|
void |
setQueryType(java.lang.String newQueryType)
Sets the query type of the current tree level, where different types map to a query that
finds different types of result (catalog, category or catalog entry).
|
void |
setRequestProperties(com.ibm.commerce.datatype.TypedProperty param)
Sets the request properties associated with the data bean.
|
void |
setSelectionType(java.lang.String newSelectionType)
Sets the selection type of this product tree, which identifies whether this tree is used
for category selection, catalog entry selection, or both.
|
void |
setStoreId(java.lang.String newStoreId)
Sets the ID of the store that is currently logged on to.
|
void |
setStoreIds(java.lang.String newStoreIds)
Sets the store identifiers for all the related stores in the store path.
|
void |
setStoreRelType(java.lang.String newStoreRelType)
Sets the store relationship type in the store path.
|
public static final java.lang.String CATENTRY_TYPE_BUNDLE
public static final java.lang.String CATENTRY_TYPE_DYNAMIC_KIT
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 static final java.lang.String COPYRIGHT
public static final java.lang.String QUERY_TYPE_FIND_CATALOG_BY_STORE
public static final java.lang.String QUERY_TYPE_FIND_CATENTRY_BY_CATGROUP
public static final java.lang.String QUERY_TYPE_FIND_CATGROUP_BY_CATALOG
public static final java.lang.String QUERY_TYPE_FIND_CHILD_CATENTRY_BY_PARENT_CATENTRY
public static final java.lang.String QUERY_TYPE_FIND_CHILD_CATGROUP_BY_PARENT_CATGROUP
public ProductTreeDataBean()
public com.ibm.commerce.tools.common.ui.DynamicTreeNode buildCatalogNode(java.util.Vector catalogRow)
catalogRow
- A Vector containing the catalog unique ID, the catalog identifier, and the catalog name.DynamicTreeNode
object that represents a catalog node.public com.ibm.commerce.tools.common.ui.DynamicTreeNode buildCategoryNode(java.util.Vector categoryRow)
categoryRow
- A Vector containing the category unique ID, the category identifier, and the category name.DynamicTreeNode
object that represents a category node.public com.ibm.commerce.tools.common.ui.DynamicTreeNode buildCatentryNode(java.util.Vector catentryRow)
catentryRow
- A Vector containing the catalog entry unique ID, the catalog entry partnumber, and the catalog entry name.DynamicTreeNode
object that represents a catalog entry node.public java.lang.String buildQuery() throws java.lang.Exception
java.lang.Exception
- Thrown whenever an exception is encountered.public java.lang.String getCatalogId() throws com.ibm.commerce.exception.ECSystemException
com.ibm.commerce.exception.ECSystemException
- Thrown whenever an EC system exception is encountered.public java.lang.String getCategoryId() throws com.ibm.commerce.exception.ECSystemException
com.ibm.commerce.exception.ECSystemException
- Thrown whenever an EC system exception is encountered.public java.lang.String getCatentryId() throws com.ibm.commerce.exception.ECSystemException
com.ibm.commerce.exception.ECSystemException
- Thrown whenever an EC system exception is encountered.public com.ibm.commerce.command.CommandContext getCommandContext()
getCommandContext
in interface com.ibm.commerce.beans.SmartDataBean
public java.lang.String getDefaultLanguageId() throws java.lang.Exception
java.lang.Exception
- Thrown whenever an exception is encountered.public java.util.Vector getIconInfo() throws com.ibm.commerce.exception.ECSystemException
Vector
object.getIconInfo
in interface com.ibm.commerce.tools.common.ui.DynamicTreeUserDataBean
com.ibm.commerce.exception.ECSystemException
- Thrown whenever an EC system exception is encountered.public java.lang.String getLanguageId() throws com.ibm.commerce.exception.ECSystemException
com.ibm.commerce.exception.ECSystemException
- Thrown whenever an EC system exception is encountered.public java.lang.String getLocationType() throws com.ibm.commerce.exception.ECSystemException
com.ibm.commerce.exception.ECSystemException
- Thrown whenever an EC system exception is encountered.public java.util.Vector getMenuInfo() throws com.ibm.commerce.exception.ECSystemException
Vector
object.getMenuInfo
in interface com.ibm.commerce.tools.common.ui.DynamicTreeUserDataBean
com.ibm.commerce.exception.ECSystemException
- Thrown whenever an EC system exception is encountered.public java.util.Vector getNodeInfo() throws com.ibm.commerce.exception.ECSystemException
Vector
object.getNodeInfo
in interface com.ibm.commerce.tools.common.ui.DynamicTreeUserDataBean
com.ibm.commerce.exception.ECSystemException
- Thrown whenever an EC system exception is encountered.public java.lang.String getQueryType() throws com.ibm.commerce.exception.ECSystemException
com.ibm.commerce.exception.ECSystemException
- Thrown whenever an EC system exception is encountered.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
- Thrown whenever an EC system exception is encountered.public java.lang.String getStoreId() throws com.ibm.commerce.exception.ECSystemException
com.ibm.commerce.exception.ECSystemException
- Thrown whenever an EC system exception is encountered.public 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 java.lang.String getStoreRelType() throws com.ibm.commerce.exception.ECSystemException
com.ibm.commerce.exception.ECSystemException
- Thrown whenever an EC system exception is encountered.public void populate() throws java.lang.Exception
populate
in interface com.ibm.commerce.beans.SmartDataBean
java.lang.Exception
- Thrown whenever an exception is encountered.public void setCatalogId(java.lang.String newCatalogId)
newCatalogId
- The catalog ID defined in the root of this product tree.public void setCategoryId(java.lang.String newCategoryId)
newCategoryId
- The category ID of the selected tree node.public void setCatentryId(java.lang.String newCatentryId)
newCatentryId
- The catalog entry ID of the selected tree node.public void setCommandContext(com.ibm.commerce.command.CommandContext cc)
DataBeanManager
during the activate method.setCommandContext
in interface com.ibm.commerce.beans.SmartDataBean
cc
- The command context passed to the JSP page that invokes this data bean.public void setLanguageId(java.lang.String newLanguageId)
newLanguageId
- The language identifier.public void setLocationType(java.lang.String newLocationType)
newLocationType
- The location type of this product tree.public void setQueryType(java.lang.String newQueryType)
newQueryType
- The query type of the current tree level.public void setRequestProperties(com.ibm.commerce.datatype.TypedProperty param)
DataBeanManager
during the activate method.setRequestProperties
in interface com.ibm.commerce.beans.InputDataBean
param
- The set of properties passed to the JSP page that invokes this data bean.public void setSelectionType(java.lang.String newSelectionType)
newSelectionType
- The selection type of this product tree.public void setStoreId(java.lang.String newStoreId)
newStoreId
- The current store ID.public void setStoreIds(java.lang.String newStoreIds)
newStoreIds
- The store identifiers.public void setStoreRelType(java.lang.String newStoreRelType)
newStoreRelType
- Store relationship type.