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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
commandContext
protected CommandContext commandContext
SmartDataBeanImpl
public SmartDataBeanImpl()
- SmartDataBeanImpl constructor.
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 memberrelationship
- 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