User Group Context
API Interface
//Add one or more users to this Group
int add(String... userIds);
//Add a list of users to this Group
int add(List<String> userIds);
//Remove a list of users from this Group
void remove(List<String> userIds);
//Remove one or more users from this Group
void remove(String... userIds);
//Retreive the UserGroup
UserGroup get();
//Send an email to this Group
void sendEmail(String subject, String content);
//Send an SMS to this Group
void sendSms(String content);
//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