com.threerings.crowd.server
Class CrowdObjectAccess.PlaceAccessController
java.lang.Object
com.threerings.crowd.server.CrowdObjectAccess.PlaceAccessController
- All Implemented Interfaces:
- AccessController
- Direct Known Subclasses:
- CrowdObjectAccess.BureauAccessController
- Enclosing class:
- CrowdObjectAccess
public static class CrowdObjectAccess.PlaceAccessController
- extends Object
- implements AccessController
Provides access control for place objects. The default behavior is to allow place occupants
to subscribe to the place object and to use the PresentsObjectAccess.DEFAULT
modification policy.
|
Method Summary |
boolean |
allowDispatch(DObject object,
DEvent event)
Should return true if the supplied event is legal for dispatch on
the specified distributed object. |
boolean |
allowSubscribe(DObject object,
Subscriber<?> sub)
Should return true if the supplied subscriber is allowed to
subscribe to the specified object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_locator
@Inject
protected BodyLocator _locator
CrowdObjectAccess.PlaceAccessController
public CrowdObjectAccess.PlaceAccessController()
allowSubscribe
public boolean allowSubscribe(DObject object,
Subscriber<?> sub)
- Description copied from interface:
AccessController
- Should return true if the supplied subscriber is allowed to
subscribe to the specified object.
- Specified by:
allowSubscribe in interface AccessController
allowDispatch
public boolean allowDispatch(DObject object,
DEvent event)
- Description copied from interface:
AccessController
- Should return true if the supplied event is legal for dispatch on
the specified distributed object.
- Specified by:
allowDispatch in interface AccessController