java.lang.Object | +--com.ibm.commerce.beans.InputDataBeanImpl | +--com.ibm.commerce.beans.SmartDataBeanImpl
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.
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
protected CommandContext commandContext
Constructor Detail |
---|
public SmartDataBeanImpl()
Method Detail |
---|
public CommandContext getCommandContext()
getCommandContext
in interface
SmartDataBean
public java.lang.Object[] getResources() throws ECException
ECException
- should not happen since the method only returns null.public void populate() throws java.lang.Exception
populate
in interface
SmartDataBean
java.lang.Exception
- should not happen since there is no data
retrieved to populate the databean.public void setCommandContext(CommandContext context)
setCommandContext
in interface
SmartDataBean
context
- the command context.public boolean fulfills(java.lang.Long member, java.lang.String relationship) throws java.lang.Exception, java.rmi.RemoteException
member
- the identity of the member.relationship
- the relationship the member has with respect to
the resource.java.rmi.RemoteException
- should not happen since the method
only returns false.java.lang.Exception
- should not happen since the method only
returns false.