com.threerings.crowd.data
Class BodyObject.CrowdPermissionPolicy
java.lang.Object
com.threerings.presents.data.ClientObject.PermissionPolicy
com.threerings.crowd.data.BodyObject.CrowdPermissionPolicy
- All Implemented Interfaces:
- InvocationCodes
- Enclosing class:
- BodyObject
protected class BodyObject.CrowdPermissionPolicy
- extends ClientObject.PermissionPolicy
|
Method Summary |
String |
checkAccess(Permission perm,
Object context)
Returns null if the specified client has the specified permission, an error code
explaining the lack of access if they do not. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BodyObject.CrowdPermissionPolicy
protected BodyObject.CrowdPermissionPolicy()
checkAccess
public String checkAccess(Permission perm,
Object context)
- Description copied from class:
ClientObject.PermissionPolicy
- Returns null if the specified client has the specified permission, an error code
explaining the lack of access if they do not.
InvocationCodes.ACCESS_DENIED
should be returned if no more specific explanation is available.
- Overrides:
checkAccess in class ClientObject.PermissionPolicy
- Parameters:
perm - the permission to be checked.context - a potential context for the request, if any.