com.threerings.crowd.data
Class BodyObject.CrowdPermissionPolicy

java.lang.Object
  extended by com.threerings.presents.data.ClientObject.PermissionPolicy
      extended by com.threerings.crowd.data.BodyObject.CrowdPermissionPolicy
All Implemented Interfaces:
InvocationCodes
Enclosing class:
BodyObject

protected class BodyObject.CrowdPermissionPolicy
extends ClientObject.PermissionPolicy


Field Summary
 
Fields inherited from interface com.threerings.presents.data.InvocationCodes
ACCESS_DENIED, E_ACCESS_DENIED, E_INTERNAL_ERROR, GLOBAL_GROUP, INTERNAL_ERROR
 
Constructor Summary
protected BodyObject.CrowdPermissionPolicy()
           
 
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
 

Constructor Detail

BodyObject.CrowdPermissionPolicy

protected BodyObject.CrowdPermissionPolicy()
Method Detail

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.