View Javadoc

1   /*
2    * Copyright 2007-2010 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.rice.core.xml.dto;
17  
18  import java.io.Serializable;
19  import java.util.ArrayList;
20  import java.util.List;
21  
22  import javax.xml.bind.annotation.XmlAccessType;
23  import javax.xml.bind.annotation.XmlAccessorType;
24  import javax.xml.bind.annotation.XmlElement;
25  import javax.xml.bind.annotation.XmlElementWrapper;
26  import javax.xml.bind.annotation.XmlRootElement;
27  import javax.xml.bind.annotation.XmlType;
28  
29  import org.kuali.rice.core.xml.CoreNamespaceConstants;
30  import org.kuali.rice.kim.xml.GroupXmlDto;
31  import org.kuali.rice.kim.xml.KimNamespaceConstants;
32  
33  /**
34   * This is a description of what this class does - g don't forget to fill this in. 
35   * 
36   * @author Kuali Rice Team (rice.collab@kuali.org)
37   *
38   */
39  @XmlRootElement(name = "data", namespace = CoreNamespaceConstants.CORE)
40  @XmlAccessorType(XmlAccessType.FIELD)
41  @XmlType(name="data",namespace=CoreNamespaceConstants.CORE)
42  public class DataXmlDto implements Serializable {
43  
44  	@XmlElementWrapper(name = "groups", namespace=KimNamespaceConstants.GROUP)
45  	@XmlElement(name = "group", namespace=KimNamespaceConstants.GROUP)
46  	List<GroupXmlDto> groups = new ArrayList<GroupXmlDto>();
47  
48  	public List<GroupXmlDto> getGroups() {
49  		return this.groups;
50  	}
51  
52  	public void setGroups(List<GroupXmlDto> groups) {
53  		this.groups = groups;
54  	}
55  
56  		
57  }