public class ClientObject extends DObject
Streamable.Closure| Modifier and Type | Field and Description |
|---|---|
static String |
CLOBJ_CHANGED
The name of a message event delivered to the client when they switch usernames (and
therefore user objects).
|
DSet<InvocationReceiver.Registration> |
receivers
Used to publish all invocation service receivers registered on this client.
|
static String |
RECEIVERS
The field name of the
receivers field. |
Name |
username
This client's authentication username.
|
static String |
USERNAME
The field name of the
username field. |
| Constructor and Description |
|---|
ClientObject() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToReceivers(InvocationReceiver.Registration elem)
Requests that the specified entry be added to the
receivers set. |
String |
checkAccess(Permission perm)
A version of
checkAccess(Permission,Object) that provides no context. |
String |
checkAccess(Permission perm,
Object context)
Checks whether or not this client has the specified permission.
|
boolean |
hasAccess(Permission perm)
Convenience wrapper around
checkAccess(Permission) that simply returns a boolean
indicating whether or not this client has the permission rather than an explanation. |
boolean |
hasAccess(Permission perm,
Object context)
Convenience wrapper around
checkAccess(Permission,Object) that simply returns a
boolean indicating whether or not this client has the permission rather than an explanation. |
void |
reference()
Used for reference counting client objects, adds a reference to this object.
|
boolean |
release()
Used for reference counting client objects, releases a reference to
this object.
|
void |
removeFromReceivers(Comparable<?> key)
Requests that the entry matching the supplied key be removed from
the
receivers set. |
void |
setReceivers(DSet<InvocationReceiver.Registration> value)
Requests that the
receivers field be set to the
specified value. |
void |
setUsername(Name value)
Requests that the
username field be set to the
specified value. |
void |
updateReceivers(InvocationReceiver.Registration elem)
Requests that the specified entry be updated in the
receivers set. |
String |
who()
Returns a short string identifying this client.
|
acquireLock, addListener, addListener, addSubscriber, addToSet, cancelTransaction, changeAttribute, checkPermissions, checkPermissions, commitTransaction, destroy, getAccessController, getAttribute, getLocal, getLocals, getManager, getOid, getSet, inTransaction, isActive, notifyListeners, notifyProxies, postEvent, postMessage, postMessage, releaseLock, removeFromSet, removeListener, removeSubscriber, setAccessController, setAttribute, setDestroyOnLastSubscriberRemoved, setLocal, setManager, setOid, startTransaction, toString, updateSet, which@Generated(value="com.threerings.presents.tools.GenDObjectTask") public static final String USERNAME
username field.@Generated(value="com.threerings.presents.tools.GenDObjectTask") public static final String RECEIVERS
receivers field.public static final String CLOBJ_CHANGED
public Name username
public DSet<InvocationReceiver.Registration> receivers
public String who()
public String checkAccess(Permission perm, Object context)
ClientObject.PermissionPolicypublic String checkAccess(Permission perm)
checkAccess(Permission,Object) that provides no context.public boolean hasAccess(Permission perm, Object context)
checkAccess(Permission,Object) that simply returns a
boolean indicating whether or not this client has the permission rather than an explanation.public boolean hasAccess(Permission perm)
checkAccess(Permission) that simply returns a boolean
indicating whether or not this client has the permission rather than an explanation.public void reference()
public boolean release()
@Generated(value="com.threerings.presents.tools.GenDObjectTask") public void setUsername(Name value)
username field be set to the
specified value. The local value will be updated immediately and an
event will be propagated through the system to notify all listeners
that the attribute did change. Proxied copies of this object (on
clients) will apply the value change when they received the
attribute changed notification.@Generated(value="com.threerings.presents.tools.GenDObjectTask") public void addToReceivers(InvocationReceiver.Registration elem)
receivers set. The set will not change until the event is
actually propagated through the system.@Generated(value="com.threerings.presents.tools.GenDObjectTask") public void removeFromReceivers(Comparable<?> key)
receivers set. The set will not change until the
event is actually propagated through the system.@Generated(value="com.threerings.presents.tools.GenDObjectTask") public void updateReceivers(InvocationReceiver.Registration elem)
receivers set. The set will not change until the event is
actually propagated through the system.@Generated(value="com.threerings.presents.tools.GenDObjectTask") public void setReceivers(DSet<InvocationReceiver.Registration> value)
receivers field be set to the
specified value. Generally one only adds, updates and removes
entries of a distributed set, but certain situations call for a
complete replacement of the set value. The local value will be
updated immediately and an event will be propagated through the
system to notify all listeners that the attribute did
change. Proxied copies of this object (on clients) will apply the
value change when they received the attribute changed notification.Copyright © 2015. All rights reserved.