User Asset Group Context
API Interface
//Add a list of group members
UserAssetGroupContext add(List<String> assetIds);
//Add one or more group members
UserAssetGroupContext add(String... assetIds);
//Remove one or more group members
UserAssetGroupContext remove(String... assetIds);
//Remove a list of group members
UserAssetGroupContext remove(List<String> assetIds);
//Retreive the UserAssetGroup
UserAssetGroup get();
//Sends a well formatted command with JSON header and data (*Boodskap preferred)
void send(int commandId, Map<Object, Object> jsonMap);
//Send a raw string data
void send(String data);
//Send a raw binary data
void send(byte[] data);
//Send a map as JSON string data
void send(Map<Object, Object> jsonMap);
//Retreive a stored lookup value in its original format
Object get(String name);
//Retreive a stored lookup value in its original format, if not found returns the passed def value
Object get(String name, Object def);
//Store a String value in the lookup table
BaseLookupContext put(String name, String value);
//Store a long value in the lookup table
BaseLookupContext put(String name, long value);
//Store a double value in the lookup table
BaseLookupContext put(String name, double value);
//Store a float value in the lookup table
BaseLookupContext put(String name, float value);
//Store a UUID value in the lookup table
BaseLookupContext put(String name, UUID value);
//Store a byte[] value in the lookup table
BaseLookupContext put(String name, byte[] value);
//Store a Map<String,Object> value in the lookup table
BaseLookupContext put(String name, Map<String,Object> value);
//Store a boolean value in the lookup table
BaseLookupContext put(String name, boolean value);
//Store a byte value in the lookup table
BaseLookupContext put(String name, byte value);
//Store a short value in the lookup table
BaseLookupContext put(String name, short value);
//Store a integer value in the lookup table
BaseLookupContext put(String name, int value);
//Retreive a stored property, return data is formatted if a format is specified while storing
Object getProperty(String name, String def);
//Store a named property
void property(String name, String value);
//Retreive a stored property, return data is formatted if a format is specified while storing
Object property(String name);
//Store a named property as JSON
void property(String name, Map<String, Object> value);
//Store a named property with one of the formats <JSON, HEX, BASE64>. Upon retreival
//JSON properties are returned as Map<String,Object>
//HEX properties a hex decoded and returned as byte[]
//BASE64 properties a base64 decoded and returned as byte[]
void property(String format, String name, String value);
Updated about 3 years ago