- 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 $
DATABASE_TABLE
public static final java.lang.String DATABASE_TABLE
- Not sure we need this, but EBS complains otherwise
- See Also:
- Constant Field Values
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.