com.ibm.commerce.user.beans
Class UserDataBean

java.lang.Object
  |
  +--com.ibm.commerce.user.beansrc.UserDataBeanBase
        |
        +--com.ibm.commerce.user.beans.UserDataBean

public class UserDataBean
extends com.ibm.commerce.user.beansrc.UserDataBeanBase

Databean which wraps the UserAccessBean, to be used for displaying User information in JSPs.

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          IBM copyright notice field.
protected  CommandContext iCommandContext
          The command context within this bean.
protected  java.lang.String iDataBeanKeyMemberId
          The key of this data bean.
protected  TypedProperty iRequestProperties
          The request properties within this bean.
 
Constructor Summary
UserDataBean()
           
 
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()
          Gets the command context set within this bean.
 java.lang.String getDataBeanKeyMemberId()
          Gets the key (user id) of this data bean.
  TypedProperty getRequestProperties()
          Gets the request property set within this bean.
 void populate()
          Retrieves data from the database.
 void setCommandContext( CommandContext aCommandContext)
          Sets the command context within this bean.
 void setDataBeanKeyMemberId(java.lang.String aMemberId)
          Sets the key(member id) of this data bean.
 void setRequestProperties( TypedProperty aRequestProperty)
          Sets the request property within this bean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail
public static final java.lang.String COPYRIGHT
IBM copyright notice field.
See Also:
Constant Field Values

iCommandContext

protected CommandContext iCommandContext
The command context within this bean.

iRequestProperties

protected TypedProperty iRequestProperties
The request properties within this bean.

iDataBeanKeyMemberId

protected java.lang.String iDataBeanKeyMemberId
The key of this data bean.
Constructor Detail

UserDataBean

public UserDataBean()
Method Detail

getCommandContext

public CommandContext getCommandContext()
Gets the command context set within this bean.
Returns:
com.ibm.commerce.command.CommandContext

getDataBeanKeyMemberId

public java.lang.String getDataBeanKeyMemberId()
Gets the key (user id) of this data bean.
Returns:
The key of this data bean.

getRequestProperties

public TypedProperty getRequestProperties()
Gets the request property set within this bean.
Returns:
com.ibm.commerce.datatype.TypedProperty

populate

public void populate()
              throws java.lang.Exception
Retrieves data from the database.
Throws:
java.lang.Exception

setCommandContext

public void setCommandContext(CommandContext aCommandContext)
Sets the command context within this bean.
Parameters:
aCommandContext - com.ibm.commerce.command.CommandContext

setDataBeanKeyMemberId

public void setDataBeanKeyMemberId(java.lang.String aMemberId)
Sets the key(member id) of this data bean.
Parameters:
aMemberId - The key of this data bean.

setRequestProperties

public void setRequestProperties(TypedProperty aRequestProperty)
                          throws javax.ejb.CreateException,
                                 java.rmi.RemoteException,
                                 javax.naming.NamingException,
                                 javax.ejb.FinderException
Sets the request property within this bean.
Throws:
javax.ejb.CreateException
java.rmi.RemoteException
javax.naming.NamingException
javax.ejb.FinderException

fulfills

public boolean fulfills(java.lang.Long member,
                        java.lang.String relationship)
                 throws java.rmi.RemoteException,
                        java.lang.Exception
Determines if a given member fulfills a given relationship with the resource. In this case, this means that we determine if the current member has authority to perform some action on this databean object.
java.rmi.RemoteException
java.lang.Exception