Domain User Group Context
API Interface
//Add a list of group members
DomainUserGroupContext add(List<String> userIds);
//Add one or more group members
DomainUserGroupContext add(String... userIds);
//Remove one or more group members
DomainUserGroupContext remove(String... userIds);
//Remove a list of group members
DomainUserGroupContext remove(List<String> userIds);
//Retreive the DomainUserGroup
DomainUserGroup get();
//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