org.ow2.jasmine.agent.server.groups
Class GroupsManagerImpl

java.lang.Object
  extended by org.ow2.jasmine.agent.server.groups.GroupsManagerImpl
All Implemented Interfaces:
GroupsManager

public class GroupsManagerImpl
extends Object
implements GroupsManager

Singleton which implements the GroupsManager interface

Author:
Julien Vey

Method Summary
 void addGroup(Group g)
          Add a grouo
 Group getGroupFromID(String id)
          Get a group from its ID
 List<Group> getGroupList()
          Get the group list
static GroupsManagerImpl getInstance()
          Get the unique instance
 void removeGroup(Group g)
          Remove a group
 void setGroupList(List<Group> groupList)
           
 void updateGroup(Group g)
          Update a group
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static GroupsManagerImpl getInstance()
Get the unique instance

Returns:
the unique instance

getGroupList

public List<Group> getGroupList()
Description copied from interface: GroupsManager
Get the group list

Specified by:
getGroupList in interface GroupsManager
Returns:
the groupList

addGroup

public void addGroup(Group g)
Description copied from interface: GroupsManager
Add a grouo

Specified by:
addGroup in interface GroupsManager
Parameters:
g - the group to add

setGroupList

public void setGroupList(List<Group> groupList)
Parameters:
groupList - the groupList to set

removeGroup

public void removeGroup(Group g)
Description copied from interface: GroupsManager
Remove a group

Specified by:
removeGroup in interface GroupsManager
Parameters:
g - the group to remove

getGroupFromID

public Group getGroupFromID(String id)
Get a group from its ID

Parameters:
id - the ID of the group
Returns:
the group whose ID is id

updateGroup

public void updateGroup(Group g)
Description copied from interface: GroupsManager
Update a group

Specified by:
updateGroup in interface GroupsManager
Parameters:
g - the group to update


Copyright © 2012 OW2 Consortium. All Rights Reserved.