com.ibm.commerce.beans
Class SmartDataBeanImpl

java.lang.Object
  |
  +--com.ibm.commerce.beans.InputDataBeanImpl
        |
        +--com.ibm.commerce.beans.SmartDataBeanImpl
All Implemented Interfaces:
DataBean, InputDataBean, java.io.Serializable, SmartDataBean
Direct Known Subclasses:
AddressListDataBean, ApplicationTypeDataBean, AssignDiscount, AttributeListDataBean, AttributeValueListDataBean, BusinessLogicDataBean, CalculationCodeListDataBean, CampaignCollateralDataBeanBase, CampaignCollateralListDataBeanBase, CampaignCollateralTypeDataBean, CampaignCollateralTypeListDataBean, CampaignDataBeanBase, CampaignEmsDataBeanBase, CampaignEmsListDataBeanBase, CampaignInitiativeDataBeanBase, CampaignInitiativeListDataBeanBase, CampaignInitiativeScheduleDataBeanBase, CampaignInitiativeScheduleListDataBeanBase, CampaignListDataBeanBase, CatalogFilterDataBean, CategoryListDataBean, CategoryListResultsDataBean, CollateralListDataBean, ControllerCommandInvokerDataBean, CurrencyDataBean, CustomerGroupDataBeanBase, CustomerProfileDataBeanBase, CustomProductSetDataBean, DiscountCalculationCodeListBeanBase, DiscountChooseListBeanBase, DiscountDetailsBeanBase, EmailActivityDataBeanBase, EmailActivityListDataBeanBase, EmailActivitySummaryDataBeanBase, EmailActivityUrlHelperDataBeanBase, EmailConfigurationDataBeanBase, EmailConfigurationTimeDataBeanBase, EmailMessageDataBeanBase, EmailMessageListDataBeanBase, EmailUserReceiveDataBeanBase, EMarketingSpotBase, ErrorDataBean, FulfillmentCenterDataBean, InventoryAdjustmentCodeDataBean, MemberDataBean, MemberGroupDataBean, PaymentPolicyListDataBean, PayStatusListPMDataBean, PayStatusPMDataBean, PickBatchDataBean, PolicyDataBean, PolicyListDataBean, PriceTCMasterCatalogWithFilteringDataBean, ProductSearchListDataBean, QuantityUnitDataBean, RegistryItemsDataBean, ReturnReasonsListDataBean, RLDiscountDataBeanBase, RLDiscountListBeanBase, RLDiscountShippingModeDataBeanBase, RLProductDiscountDataBeanBase, RLPromotionBean, SchedulerCommandsDataBean, SchedulerItemsDataBean, SchedulerStatusDataBean, SearchBaseDataBean, SearchDataBean, SegmentAccountListDataBean, SegmentCountriesDataBean, SegmentCurrenciesDataBean, SegmentCustomerListDataBean, SegmentDataBeanBase, SegmentDefaultCurrencyDataBean, SegmentLanguagesDataBean, SegmentListDataBeanBase, SegmentMemberGroupsDataBean, SegmentStatesDataBean, SortedListBean, UrlRegistryItemsDataBean, UsablePaymentTCListDataBean, VendorDataBean, WcsAppDataBean

public class SmartDataBeanImpl
extends InputDataBeanImpl
implements SmartDataBean

A SmartDataBean is a DataBean that can populate itself without requiring a data bean command. The input command context and the request properties provide sufficient information for it to populate itself. Example of this is a DataBean that extends from an AccessBean.

See Also:
Serialized Form

Field Summary
protected  CommandContext commandContext
          The command context.
static java.lang.String COPYRIGHT
          IBM Copyright notice field.
 
Fields inherited from class com.ibm.commerce.beans. InputDataBeanImpl
requestProperties
 
Fields inherited from interface com.ibm.commerce.beans. DataBean
emptyString
 
Constructor Summary
SmartDataBeanImpl()
          Creates a Smart DataBean.
 
Method Summary
 boolean fulfills(java.lang.Long member, java.lang.String relationship)
          Determines if a given member fulfills a given relationship with the resource.
  CommandContext getCommandContext()
          Return the command context.
 java.lang.Object[] getResources()
          This method returns the resources resources accessed by this data bean It will return null if no resource if being accessed by this data bean.
 void populate()
          Populates the databean with elements.
 void setCommandContext( CommandContext context)
          Sets the command context.
 
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
public static final java.lang.String COPYRIGHT
IBM Copyright notice field.
See Also:
Constant Field Values

commandContext

protected CommandContext commandContext
The command context.
Constructor Detail

SmartDataBeanImpl

public SmartDataBeanImpl()
Creates a Smart DataBean.
Method Detail

getCommandContext

public CommandContext getCommandContext()
Return the command context.
Specified by:
getCommandContext in interface SmartDataBean
Returns:
The command context.

getResources

public java.lang.Object[] getResources()
                                throws ECException
This method returns the resources resources accessed by this data bean It will return null if no resource if being accessed by this data bean.
Returns:
Will always return null.
Throws:
ECException - should not happen since the method only returns null.

populate

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

setCommandContext

public void setCommandContext(CommandContext context)
Sets the command context.
Specified by:
setCommandContext in interface SmartDataBean
Parameters:
context - the command context.

fulfills

public boolean fulfills(java.lang.Long member,
                        java.lang.String relationship)
                 throws java.lang.Exception,
                        java.rmi.RemoteException
Determines if a given member fulfills a given relationship with the resource.
Parameters:
member - the identity of the member.
relationship - the relationship the member has with respect to the resource.
Returns:
Will always return false.
Throws:
java.rmi.RemoteException - should not happen since the method only returns false.
java.lang.Exception - should not happen since the method only returns false.