com.threerings.presents.dobj
Interface AccessController


public interface AccessController

Used to validate distributed object subscription requests and event dispatches.

See Also:
DObject.setAccessController(com.threerings.presents.dobj.AccessController)

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<?> subscriber)
          Should return true if the supplied subscriber is allowed to subscribe to the specified object.
 

Method Detail

allowSubscribe

boolean allowSubscribe(DObject object,
                       Subscriber<?> subscriber)
Should return true if the supplied subscriber is allowed to subscribe to the specified object.


allowDispatch

boolean allowDispatch(DObject object,
                      DEvent event)
Should return true if the supplied event is legal for dispatch on the specified distributed object.