Added isDeleted().

git-svn-id: https://samskivert.googlecode.com/svn/trunk@1479 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
ray
2004-08-10 20:06:00 +00:00
parent 458274a58b
commit 8e42b2030b
@@ -115,6 +115,15 @@ public class User
this.password.equals(oldpasswd));
}
/**
* @return true if this User has been "deleted".
*/
public boolean isDeleted ()
{
// a deleted account has an "=" in the username
return (-1 != username.indexOf('='));
}
/**
* Called by the repository to find out which fields have been
* modified since the object was loaded.