|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.concurrent.ConcurrentHashMap
com.zphinx.spine.utils.ActiveGroups
public class ActiveGroups
An ActiveGroups object encapsulates the logic behind the persistent group system which is used by the spine framework to capture the properties of Groups registered within the system.
copyright © Zphinx Software Solutions
HashMap,
Group,
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
ActiveGroups()
Public Constructor, set ups up a default group of non logged in users |
|
| Method Summary | |
|---|---|
void |
addGroup(Group group)
Add a new Group object to this map |
boolean |
exitGroup(long id)
The id of the member to remove from all groups |
int |
exitGroup(long groupId,
UserListBean lvb)
Method to call when user logs out of the system |
int |
getGroupSize(long groupId)
Get the number of users currently logged into a group |
List |
getGroupsList()
Gets the groups as a list of groups |
Locale |
getLocale()
Gets the Locale where the creator of this DTO is using the system |
String |
getSessionId()
Gets a unique ID for this transaction which is used to identify this object across multiple tiers |
ArrayList |
getUniqueList()
Get a unique list of users of this system |
int |
joinGroup(long groupId,
UserListBean lvb)
Method to call when user joins a group i.e logs into a group. |
Group |
removeGroup(long groupId)
remove a Group object from this map |
List |
subsidizedGroupsList()
Gets the groups as a list of groups |
int |
updateGroup(long groupId,
UserListBean lvb)
Method to call when user updates his session within a group. |
| Methods inherited from class java.util.concurrent.ConcurrentHashMap |
|---|
clear, contains, containsKey, containsValue, elements, entrySet, get, isEmpty, keys, keySet, put, putAll, putIfAbsent, remove, remove, replace, replace, size, values |
| Methods inherited from class java.util.AbstractMap |
|---|
clone, equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public ActiveGroups()
| Method Detail |
|---|
public List getGroupsList()
public List subsidizedGroupsList()
public int joinGroup(long groupId,
UserListBean lvb)
groupId - The group whose id to joinlvb - The UserListBean representing this User
public int updateGroup(long groupId,
UserListBean lvb)
groupId - The group whose id to User belongs tolvb - The UserListBean representing this User
public int exitGroup(long groupId,
UserListBean lvb)
groupId - The group whose id this user belongslvb - The LabelValueBean representing this User
public int getGroupSize(long groupId)
groupId - The group whose size we need
public void addGroup(Group group)
group - The group to add to this HashMappublic Group removeGroup(long groupId)
groupId - The group id of the group to remove
public ArrayList getUniqueList()
public boolean exitGroup(long id)
id - The id of member to remove from the group
public String getSessionId()
DataTransferObject
getSessionId in interface DataTransferObjectpublic Locale getLocale()
DataTransferObject
getLocale in interface DataTransferObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||