Methods Summary |
---|
public boolean | checkPassword(java.lang.String userInput)Validate a given password against the user's.
// Nobody can login if a passwd hasn't been set yet.
if (getPassword() == null)
return false;
// Otherwise just see if they match.
// XXX TODO use encryption.
return getPassword().equals(userInput);
|
public void | ejbActivate()
|
public java.lang.String | ejbCreate(java.lang.String name)Construct a user with just the name, by delegating to the rest
ejbCreate(name, null, null, null, null, null, null);
return name;
|
public java.lang.String | ejbCreate(java.lang.String nick, java.lang.String pw, java.lang.String nam, java.lang.String em, java.lang.String cy, java.lang.String pr, java.lang.String co)Construct a user with all text fields.
After this method completes, the container enters
the fields we've set into the database.
setName(nick);
setPassword(pw);
setFullName(nam);
setEmail(em);
setCity(cy);
setProvince(pr);
setCountry(co);
setCreationDate(new Date());
setLastLoginDate(null);
return nick;
|
public java.lang.String | ejbCreate(java.lang.String nick, java.lang.String pw, java.lang.String nam, java.lang.String em, java.lang.String cy, java.lang.String pr, java.lang.String co, boolean edit, boolean adm)Construct a user with all text fields and privs as an int.
ejbCreate(nick, pw, nam, em, cy, pr, co);
setAdminPrivs(adm);
setEditPrivs(edit);
return nick;
|
public void | ejbLoad()
|
public void | ejbPassivate()
|
public void | ejbPostCreate(java.lang.String n)
|
public void | ejbPostCreate(java.lang.String nick, java.lang.String pw, java.lang.String nam, java.lang.String em, java.lang.String cy, java.lang.String pr, java.lang.String co)Post-create for all-string version.
Nothing to do.
|
public void | ejbPostCreate(java.lang.String nick, java.lang.String pw, java.lang.String nam, java.lang.String em, java.lang.String cy, java.lang.String pr, java.lang.String co, boolean edit, boolean adm)
|
public void | ejbPostCreate()
|
public void | ejbRemove()
|
public void | ejbStore()
|
public abstract boolean | getAdminPrivs()
|
public abstract java.lang.String | getCity()
|
public abstract java.lang.String | getCountry()
|
public abstract java.util.Date | getCreationDate()
|
public abstract boolean | getEditPrivs()
|
public abstract java.lang.String | getEmail()
|
public abstract java.lang.String | getFullName()
|
public abstract java.util.Date | getLastLoginDate()
|
public abstract java.lang.String | getName()
|
public abstract java.lang.String | getPassword()
|
public abstract java.lang.String | getProvince()
|
public abstract void | setAdminPrivs(boolean p)
|
public abstract void | setCity(java.lang.String arg)
|
public abstract void | setCountry(java.lang.String arg)
|
public abstract void | setCreationDate(java.util.Date arg)
|
public abstract void | setEditPrivs(boolean p)
|
public abstract void | setEmail(java.lang.String arg)
|
public void | setEntityContext(EntityContext x)
ctx = x;
|
public abstract void | setFullName(java.lang.String arg)
|
public abstract void | setLastLoginDate(java.util.Date arg)
|
public abstract void | setName(java.lang.String nick)
|
public abstract void | setPassword(java.lang.String arg)
|
public abstract void | setProvince(java.lang.String arg)
|
public java.lang.String | toString()Return a String representation.
return new StringBuffer("UserBean[").append(getName()).append(',").append(getFullName()).append(']").toString();
|
public void | unsetEntityContext()
ctx = null;
|