Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.RuntimeCollective.webapps.bean
Interface User  view User download User.java

All Superinterfaces:
EntityBean, java.io.Serializable
All Known Subinterfaces:
Actor, TrackedUser
All Known Implementing Classes:
SimpleActor, SimpleTrackedUser, SimpleUser

public interface User
extends EntityBean

Interface for all objects that represent a registered user of a Runtime Webapp. SimpleUser provides a basic implementation of this interface. Different modules will want to add to the properties of a user: the school module has Students and Staff, the content management system will have Authors etc. These should be implemented as wrappers of User that implement the Actor interface.

Version:
$Id: User.java,v 1.13 2003/09/30 15:13:10 joe Exp $

Field Summary
static java.lang.String DATABASE_TABLE
          Not sure we need this, but EBS complains otherwise
 
Fields inherited from interface com.RuntimeCollective.webapps.bean.EntityBean
INTERFACE_BEAN, NULL_ID
 
Method Summary
 void addRole(int role)
           
 Address getAddress()
           
 java.lang.Object getAttribute(java.lang.String name)
          Get the value of an attribute.
 java.util.Date getCreateDate()
           
 java.lang.String getEmail()
           
 java.lang.String getFirstName()
           
 java.lang.String getLastName()
           
 java.lang.String getPassword()
           
 int[] getRoles()
           
 boolean hasRole(int role)
           
 void removeRole(int role)
           
 void setAddress(Address address)
           
 void setAttribute(java.lang.String name, java.lang.Object value)
          Set the value of an attribute.
 void setCreateDate(java.util.Date createDate)
           
 void setEmail(java.lang.String email)
           
 void setFirstName(java.lang.String firstName)
           
 void setLastName(java.lang.String lastName)
           
 void setPassword(java.lang.String password)
           
 void setRoles(int[] roles)
           
 
Methods inherited from interface com.RuntimeCollective.webapps.bean.EntityBean
delete, getId, save, setId
 

Field Detail

DATABASE_TABLE

public static final java.lang.String DATABASE_TABLE
Not sure we need this, but EBS complains otherwise

See Also:
Constant Field Values
Method Detail

setEmail

public void setEmail(java.lang.String email)

getEmail

public java.lang.String getEmail()

setPassword

public void setPassword(java.lang.String password)

getPassword

public java.lang.String getPassword()

getFirstName

public java.lang.String getFirstName()

setFirstName

public void setFirstName(java.lang.String firstName)

getLastName

public java.lang.String getLastName()

setLastName

public void setLastName(java.lang.String lastName)

setCreateDate

public void setCreateDate(java.util.Date createDate)

getCreateDate

public java.util.Date getCreateDate()

setRoles

public void setRoles(int[] roles)

getRoles

public int[] getRoles()

hasRole

public boolean hasRole(int role)

setAddress

public void setAddress(Address address)

getAddress

public Address getAddress()

addRole

public void addRole(int role)
             throws java.sql.SQLException

removeRole

public void removeRole(int role)
                throws java.sql.SQLException

getAttribute

public java.lang.Object getAttribute(java.lang.String name)
Get the value of an attribute. Note that these attributes held on here should be relevant to all users of the system, such as bookmarks or webfolders. If there is an attribute that is specific to a particular type of user, or actor, then it should be held on the relevant Actor object.


setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.Object value)
Set the value of an attribute. Note that these attributes held on here should be relevant to all users of the system, such as bookmarks or webfolders. If there is an attribute that is specific to a particular type of user, or actor, then it should be held on the relevant Actor object.