com.ibm.commerce.tools.contract.beans
Class CustomProductSetDataBean

java.lang.Object
  com.ibm.commerce.beans.InputDataBeanImpl
      com.ibm.commerce.beans.SmartDataBeanImpl
          com.ibm.commerce.tools.contract.beans.CustomProductSetDataBean
All Implemented Interfaces:
DataBean, InputDataBean, java.io.Serializable, SmartDataBean

public class CustomProductSetDataBean
extends SmartDataBeanImpl

Retrieve all the data associated with a Custom Product Set

See Also:
Serialized Form

Field Summary
protected java.util.Vector _catalogEntries
protected java.util.Vector _catalogGroups
protected java.lang.Long _id
protected java.lang.String _productSetName
protected java.lang.String _productSetXMLdefinition
Fields inherited from class com.ibm.commerce.beans.SmartDataBeanImpl
commandContext
Fields inherited from class com.ibm.commerce.beans.InputDataBeanImpl
requestProperties
Fields inherited from interface com.ibm.commerce.beans.DataBean
emptyString
Constructor Summary
CustomProductSetDataBean()
Method Summary
java.util.Vector buildCatalogEntries(org.w3c.dom.Document xmlDoc)
Create the catalog entries in the custom product set
java.util.Vector buildCatalogGroups(org.w3c.dom.Document xmlDoc)
Create the catalog groups in the custom product set
java.util.Vector getCatalogEntries()
Get all the catalog entries in the custom product set
CatalogEntryAccessBean getCatalogEntry(int i)
Get a catalog entry in the custom product set
CatalogGroupAccessBean getCatalogGroup(int i)
Get a catalog group in the custom product set
java.util.Vector getCatalogGroups()
Get the catalog groups in the custom product set
java.lang.Long getId()
Get the contract identifier for the contract this term and condition is in
java.lang.Long getMemberId(org.w3c.dom.Element memberElement, boolean isDTD)
Get member identifier of the owner of the custom product set
java.lang.String getProductSetName()
Get the name of the custom product set
java.lang.String getProductSetXMLdefinition()
Get the XML definition describing the custom product set
org.w3c.dom.Document getXMLdocument(java.lang.String xmlString)
Get the XML document describing the custom product set
void populate()
Populates the databean with elements.
void setId(java.lang.Long id)
Set the identifier of the custom product set
void setProductSetName(java.lang.String productSetName)
Set the name of the custom product set
void setProductSetXMLdefinition(java.lang.String productSetXMLdefinition)
Set the XML definition of the custom product set
Methods inherited from class com.ibm.commerce.beans.SmartDataBeanImpl
fulfills, getCommandContext, getResources, setCommandContext
Methods inherited from class com.ibm.commerce.beans.InputDataBeanImpl
getRequestProperties, setRequestProperties
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.ibm.commerce.beans.InputDataBean
getRequestProperties, setRequestProperties
Field Detail

_id

protected java.lang.Long _id

_catalogEntries

protected java.util.Vector _catalogEntries

_catalogGroups

protected java.util.Vector _catalogGroups

_productSetName

protected java.lang.String _productSetName

_productSetXMLdefinition

protected java.lang.String _productSetXMLdefinition
Constructor Detail

CustomProductSetDataBean

public CustomProductSetDataBean()
Method Detail

buildCatalogEntries

public java.util.Vector buildCatalogEntries(org.w3c.dom.Document xmlDoc)
Create the catalog entries in the custom product set
Parameters:
xmlDoc - Document
Returns:
Vector

buildCatalogGroups

public java.util.Vector buildCatalogGroups(org.w3c.dom.Document xmlDoc)
Create the catalog groups in the custom product set
Parameters:
xmlDoc - Document
Returns:
Vector

getCatalogEntries

public java.util.Vector getCatalogEntries()
Get all the catalog entries in the custom product set
Returns:
Vector

getCatalogEntry

public CatalogEntryAccessBean getCatalogEntry(int i)
Get a catalog entry in the custom product set
Parameters:
i - int
Returns:
CatalogEntryAccessBean

getCatalogGroup

public CatalogGroupAccessBean getCatalogGroup(int i)
Get a catalog group in the custom product set
Parameters:
i - int
Returns:
CatalogEntryAccessBean

getCatalogGroups

public java.util.Vector getCatalogGroups()
Get the catalog groups in the custom product set
Returns:
Vector

getId

public java.lang.Long getId()
Get the contract identifier for the contract this term and condition is in
Returns:
Long

getMemberId

public java.lang.Long getMemberId(org.w3c.dom.Element memberElement,
                                  boolean isDTD)
Get member identifier of the owner of the custom product set
Parameters:
memberElement - Element
Returns:
Long

getProductSetName

public java.lang.String getProductSetName()
Get the name of the custom product set
Returns:
String

getProductSetXMLdefinition

public java.lang.String getProductSetXMLdefinition()
Get the XML definition describing the custom product set
Returns:
String

getXMLdocument

public org.w3c.dom.Document getXMLdocument(java.lang.String xmlString)
Get the XML document describing the custom product set
Returns:
Document

populate

public void populate()
              throws java.lang.Exception
Description copied from class: SmartDataBeanImpl
Populates the databean with elements.
Specified by:
populate in interface SmartDataBean
Overrides:
populate in class SmartDataBeanImpl
Throws:
java.lang.Exception - should not happen since there is no data retrieved to populate the databean.

setId

public void setId(java.lang.Long id)
Set the identifier of the custom product set
Parameters:
id - Long

setProductSetName

public void setProductSetName(java.lang.String productSetName)
Set the name of the custom product set
Parameters:
productSetName - String

setProductSetXMLdefinition

public void setProductSetXMLdefinition(java.lang.String productSetXMLdefinition)
Set the XML definition of the custom product set
Parameters:
productSetXMLdefinition - String

Feedback