Extract our permission policy into a separate class so that a system can more

easily make use of different permission policies in different circumstances
(one can imagine a hypothetical partner who has different access control
requirements, perhaps).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5118 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2008-05-22 13:12:40 +00:00
parent 86dd4d75c7
commit 591dc1541a
8 changed files with 135 additions and 27 deletions
@@ -26,12 +26,11 @@ import com.threerings.io.SimpleStreamableObject;
/**
* Defines access control tokens that convey certain privileges to users.
*
* @see BodyObject#checkAccess
* @see CrowdPermissionPolicy
*/
public class TokenRing extends SimpleStreamableObject
{
/** Indicates that this user is an administrator and can do things like broadcast, shutdown the
* server and whatnot. */
/** Indicates that this user is an administrator. */
public static final int ADMIN = (1 << 0);
/**