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:
ApprovalApproversLightListBean, ApprovalSubmittersLightListBean, ApprovalTaskLightListBean, CampaignCollateralTypeDataBean, CampaignCollateralTypeListDataBean, ControllerCommandInvokerDataBean, ECouponPromotionListBeanBase, EMarketingSpotBase, ErrorDataBean, InventoryAdjustmentCodeDataBean, MemberGroupDataBean, NegotiationListBean, PickBatchDataBean, ReportDataBean, SegmentAccountListDataBean, SegmentCountriesDataBean, SegmentCurrenciesDataBean, SegmentCustomerListDataBean, SegmentDefaultCurrencyDataBean, SegmentLanguagesDataBean, SegmentMemberGroupsDataBean, SegmentStatesDataBean, SortedListBean, UTFListBean, 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
           
 
Fields inherited from class com.ibm.commerce.beans.InputDataBeanImpl
requestProperties
 
Fields inherited from interface com.ibm.commerce.beans.SmartDataBean
COPYRIGHT
 
Fields inherited from interface com.ibm.commerce.beans.DataBean
emptyString
 
Constructor Summary
SmartDataBeanImpl()
          SmartDataBeanImpl constructor.
 
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 CommandContext
 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()
          populate the databean
 void setCommandContext(CommandContext context)
          Set CommandContext.
 
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

commandContext

protected CommandContext commandContext
Constructor Detail

SmartDataBeanImpl

public SmartDataBeanImpl()
SmartDataBeanImpl constructor.
Method Detail

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 - Member id of the member
relationship - The relationship the member has with respect to the resource
Returns:
true if the member fulfills the relationship with the resource

getCommandContext

public CommandContext getCommandContext()
Return the CommandContext
Specified by:
getCommandContext in interface SmartDataBean

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:
Object[] - an array of protectable resources

populate

public void populate()
              throws java.lang.Exception
populate the databean
Specified by:
populate in interface SmartDataBean

setCommandContext

public void setCommandContext(CommandContext context)
Set CommandContext.
Specified by:
setCommandContext in interface SmartDataBean