package org.igniterealtime.restclient.entity;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

/**
 * The Class GroupEntity.
 */
@XmlRootElement(name = "group")
@XmlType(propOrder = { "name", "description" })
public class GroupEntity {

	/** The name. */
	private String name;

	/** The description. */
	private String description;

	/**
	 * Instantiates a new group entity.
	 */
	public GroupEntity() {
	}

	/**
	 * Instantiates a new group entity.
	 *
	 * @param name
	 *            the name
	 * @param description
	 *            the description
	 */
	public GroupEntity(String name, String description) {
		this.name = name;
		this.description = description;
	}

	/**
	 * Gets the name.
	 *
	 * @return the name
	 */
	@XmlElement
	public String getName() {
		return name;
	}

	/**
	 * Sets the name.
	 *
	 * @param name
	 *            the new name
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * Gets the description.
	 *
	 * @return the description
	 */
	@XmlElement
	public String getDescription() {
		return description;
	}

	/**
	 * Sets the description.
	 *
	 * @param description
	 *            the new description
	 */
	public void setDescription(String description) {
		this.description = description;
	}

}

@@ -77,32 +77,84 @@
 ion.XmlElement;%0A
+import javax.xml.bind.annotation.XmlElementWrapper;%0A
 import javax.xml
@@ -178,32 +178,32 @@
 XmlRootElement;%0A
-
 import javax.xml
@@ -227,16 +227,39 @@
 XmlType;
+%0Aimport java.util.List;
 %0A%0A/**%0A *
@@ -362,16 +362,37 @@
 ription%22
+ ,%22admins%22 ,%22members%22
  %7D)%0Apubl
@@ -511,16 +511,79 @@
 ption;%0A%0A
+%09private List%3CString%3E admins;%0A%0A%09private List%3CString%3E members;%0A%0A
 %09/**%0A%09 *
@@ -899,32 +899,226 @@
 escription;%0A%09%7D%0A%0A
+%09public GroupEntity(String name,String description,List%3CString%3E admins,List%3CString%3E members)%7B%0A%09%09this.name=name;%0A%09%09this.description=description;%0A%09%09this.admins=admins;%0A%09%09this.members=members;%0A%09%7D%0A%0A
 %09/**%0A%09 * Gets th
@@ -1678,10 +1678,409 @@
 on;%0A%09%7D%0A%0A
+%09@XmlElementWrapper(name = %22admins%22)%0A%09@XmlElement(name = %22admin%22)%0A%09public List%3CString%3E getAdmins() %7B%0A%09%09return admins;%0A%09%7D%0A%0A%09public void setAdmins(List%3CString%3E admins) %7B%0A%09%09this.admins = admins;%0A%09%7D%0A%0A%09@XmlElementWrapper(name = %22members%22)%0A%09@XmlElement(name = %22member%22)%0A%09public List%3CString%3E getMembers() %7B%0A%09%09return members;%0A%09%7D%0A%0A%09public void setMembers(List%3CString%3E members) %7B%0A%09%09this.members = members;%0A%09%7D%0A
 %7D%0A

add group member info