org.elkoserver.server.context.users
Class DeviceUserMod

java.lang.Object
  extended by org.elkoserver.server.context.Mod
      extended by 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.


Constructor Summary
DeviceUserMod(String uuid)
          JSON-driven constructor.
 
Method Summary
 JSONLiteral encode(EncodeControl control)
          Encode this mod for transmission or persistence.
 String uuid()
          Get the Device UID
 
Methods inherited from class org.elkoserver.server.context.Mod
attachTo, clone, context, ensureHolding, ensureInContext, ensureReachable, ensureSameContext, ensureSameUser, holder, isEphemeral, markAsChanged, markAsEphemeral, object
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeviceUserMod

@JSONMethod(value="uuid")
public DeviceUserMod(String uuid)
JSON-driven constructor.

Parameters:
uuid - The Device specific user ID
Method Detail

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.