|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.web.admin.groups.parsers.Group
public class Group
This is a data class to store the group information from the groups.xml file
| Field Summary | |
|---|---|
static String |
GROUP_NAME_PROPERTY
|
| Constructor Summary | |
|---|---|
Group()
Default constructor, intializes the users list |
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
|
void |
addUser(String aUser)
Adds a username to the list of users |
void |
clearUsers()
Removes all users from the group. |
Group |
clone()
|
String |
getGroupComments()
Returns the comments for the group |
GroupInfo |
getGroupInfo()
Returns the group information for this group |
String |
getGroupName()
Returns the group name |
int |
getUserCount()
Returns a count of the users in the list |
List<String> |
getUsers()
Returns the list of users |
boolean |
hasUser(String aUser)
Returns whether the group has this user in its users list |
void |
removePropertyChangeListener(PropertyChangeListener listener)
|
void |
removeUser(String aUser)
Removes a username from the list of users |
void |
setGroupComments(String someComments)
Sets the comments for the group |
void |
setGroupInfo(GroupInfo someInfo)
Sets the group information for this group |
void |
setGroupName(String aName)
Sets the group name |
String |
toString()
Returns a String representation of the group, used primarily for debugging. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String GROUP_NAME_PROPERTY
| Constructor Detail |
|---|
public Group()
| Method Detail |
|---|
public Group clone()
clone in class Objectpublic void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public GroupInfo getGroupInfo()
public void setGroupInfo(GroupInfo someInfo)
someInfo - the group infopublic void setGroupName(String aName)
aName - the name of the grouppublic String getGroupName()
public void setGroupComments(String someComments)
someComments - the comments for the grouppublic String getGroupComments()
public boolean hasUser(String aUser)
public void addUser(String aUser)
aUser - a new usernamepublic void removeUser(String aUser)
aUser - the user to removepublic void clearUsers()
public List<String> getUsers()
public int getUserCount()
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||