Provide an overridable notion of admin-ness.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@1959 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2006-10-23 18:38:09 +00:00
parent fecab56843
commit 9ca5ae6226
@@ -152,6 +152,15 @@ public class User
return (-1 != username.indexOf('='));
}
/**
* Returns true if this user is an admin, false otherwise. The default
* implementation does not track admin status and always returns false.
*/
public boolean isAdmin ()
{
return false;
}
/**
* Called by the repository to find out which fields have been
* modified since the object was loaded.