org.elkoserver.server.context.users
Class DeviceUserMod
java.lang.Object
org.elkoserver.server.context.Mod
org.elkoserver.server.context.users.DeviceUserMod
- All Implemented Interfaces:
- Cloneable, DispatchTarget, Encodable, UserMod
public class DeviceUserMod
- extends Mod
- implements UserMod
This Mod holds device specific identity information for a user.
| Methods inherited from class org.elkoserver.server.context.Mod |
attachTo, clone, context, ensureHolding, ensureInContext, ensureReachable, ensureSameContext, ensureSameUser, holder, isEphemeral, markAsChanged, markAsEphemeral, object |
DeviceUserMod
@JSONMethod(value="uuid")
public DeviceUserMod(String uuid)
- JSON-driven constructor.
- Parameters:
uuid - The Device specific user ID
uuid
public String uuid()
- Get the Device UID
encode
public JSONLiteral encode(EncodeControl control)
- Encode this mod for transmission or persistence. This mod is
persisted but never transmitted to a client.
- Specified by:
encode in interface Encodable
- Parameters:
control - Encode control determining what flavor of encoding
should be done.
- Returns:
- a JSONLiteral representing the encoded state of this mod.