com.ibm.commerce.negotiation.beans
Class ControlRuleListBean

java.lang.Object
  com.ibm.commerce.beans.InputDataBeanImpl
      com.ibm.commerce.beans.SmartDataBeanImpl
          com.ibm.commerce.negotiation.beans.NegotiationListBean
              com.ibm.commerce.negotiation.beans.ControlRuleListBean
All Implemented Interfaces:
CommandDataBean, ControlRuleListInputDataBean, ControlRuleListSmartDataBean, DataBean, InputDataBean, NegotiationListInputDataBean, NegotiationListSmartDataBean, java.io.Serializable, SmartDataBean

public class ControlRuleListBean
extends NegotiationListBean
implements ControlRuleListInputDataBean, ControlRuleListSmartDataBean, CommandDataBean

Provides sorted lists of control rules.

See Also:
NegotiationListBean, CommandDataBean, Serialized Form

Field Summary
protected java.lang.String commandInterfaceName
protected ControlRuleAccessBean[] controlRuleList
static java.lang.String COPYRIGHT
protected ControlRuleDataBean[] fControlRules
java.lang.String ownerId
protected java.lang.String ruleName
protected java.lang.String ruleType
Fields inherited from class com.ibm.commerce.negotiation.beans.NegotiationListBean
listSize, sortingAtt
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
ControlRuleListBean()
Constructs a ControlRuleListBean, initializes fields to emptyString.
Method Summary
java.lang.String getCommandInterfaceName()
Gets the commandInterfaceName.
ControlRuleAccessBean[] getControlRuleList()
Fetches a list of bid control rules.
ControlRuleDataBean[] getControlRules()
Gets a sorted list of ControlRuleDataBean objects.
java.lang.String getOwnerId()
Gets the ownerId field.
TypedProperty getRequestProperties()
Gets the value of requestProperties; currently implemented to return null.
java.lang.String getRuleName()
Gets the rule name.
java.lang.String getRuleType()
Gets the ruleType.
void setCommandInterfaceName(java.lang.String ifname)
Sets the commandInterfaceName.
void setControlRuleList(ControlRuleAccessBean[] newControlRuleList)
Populates a list of bid control rules.
void setControlRules(ControlRuleDataBean[] newControlRules)
Loads the array of bid control rules.
void setOwnerId(java.lang.String newOwnerId)
Sets the ownerId field.
void setRequestProperties(TypedProperty param)
Currently does nothing.
void setRuleName(java.lang.String newRuleName)
Sets the ruleName.
void setRuleType(java.lang.String newRuleType)
Sets the rule type.
Methods inherited from class com.ibm.commerce.negotiation.beans.NegotiationListBean
getLength, getSortAtt, setSortAtt
Methods inherited from class com.ibm.commerce.beans.SmartDataBeanImpl
fulfills, getCommandContext, getResources, populate, setCommandContext
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Field Detail

ownerId

public java.lang.String ownerId

ruleType

protected java.lang.String ruleType

commandInterfaceName

protected java.lang.String commandInterfaceName

ruleName

protected java.lang.String ruleName

controlRuleList

protected ControlRuleAccessBean[] controlRuleList

fControlRules

protected ControlRuleDataBean[] fControlRules

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values
Constructor Detail

ControlRuleListBean

public ControlRuleListBean()
Constructs a ControlRuleListBean, initializes fields to emptyString.
Method Detail

getCommandInterfaceName

public java.lang.String getCommandInterfaceName()
Gets the commandInterfaceName.
Specified by:
getCommandInterfaceName in interface ControlRuleListSmartDataBean
Returns:
if not null, the commandInterfaceName; otherwise ControlRuleListBeanCmd.NAME.

getControlRuleList

public ControlRuleAccessBean[] getControlRuleList()
Fetches a list of bid control rules.
Specified by:
getControlRuleList in interface ControlRuleListSmartDataBean
Returns:
the list of ControlRuleAccessBean objects.

getControlRules

public ControlRuleDataBean[] getControlRules()
Gets a sorted list of ControlRuleDataBean objects.
Specified by:
getControlRules in interface ControlRuleListSmartDataBean
Returns:
array of ControlRuleDataBean.

getOwnerId

public java.lang.String getOwnerId()
Gets the ownerId field.
Specified by:
getOwnerId in interface ControlRuleListSmartDataBean
Returns:
the owner id.

getRequestProperties

public TypedProperty getRequestProperties()
Gets the value of requestProperties; currently implemented to return null.
Specified by:
getRequestProperties in interface InputDataBean
Overrides:
getRequestProperties in class InputDataBeanImpl
Returns:
always null

getRuleName

public java.lang.String getRuleName()
Gets the rule name.
Specified by:
getRuleName in interface ControlRuleListSmartDataBean
Returns:
the rule name.

getRuleType

public java.lang.String getRuleType()
Gets the ruleType.
Specified by:
getRuleType in interface ControlRuleListSmartDataBean
Returns:
the rule type.

setCommandInterfaceName

public void setCommandInterfaceName(java.lang.String ifname)
Sets the commandInterfaceName.
Specified by:
setCommandInterfaceName in interface ControlRuleListInputDataBean
Parameters:
ifname - the new command interface name.

setControlRuleList

public void setControlRuleList(ControlRuleAccessBean[] newControlRuleList)
Populates a list of bid control rules.
Specified by:
setControlRuleList in interface ControlRuleListInputDataBean
Parameters:
newControlRuleList - new list of ControlRuleAccessBean objects.

setControlRules

public void setControlRules(ControlRuleDataBean[] newControlRules)
Loads the array of bid control rules.
Specified by:
setControlRules in interface ControlRuleListInputDataBean
Parameters:
newControlRules - new array of ControlRuleDataBean objects.

setOwnerId

public void setOwnerId(java.lang.String newOwnerId)
Sets the ownerId field.
Specified by:
setOwnerId in interface ControlRuleListInputDataBean
Parameters:
newOwnerId - Id of the auction owner.

setRequestProperties

public void setRequestProperties(TypedProperty param)
Currently does nothing.
Specified by:
setRequestProperties in interface InputDataBean
Overrides:
setRequestProperties in class InputDataBeanImpl
Parameters:
param - a TypedProperty that is ignored.

setRuleName

public void setRuleName(java.lang.String newRuleName)
Sets the ruleName.
Specified by:
setRuleName in interface ControlRuleListInputDataBean
Parameters:
newRuleName - the new rule name.

setRuleType

public void setRuleType(java.lang.String newRuleType)
Sets the rule type.
Specified by:
setRuleType in interface ControlRuleListInputDataBean
Parameters:
newRuleType - the new rule type.

Feedback