Added isDeleted().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1479 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user