View Javadoc

1   /**
2    * Copyright 2012 The Kuali Foundation 
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the
5    * "License"); you may not use this file except in compliance with the
6    * License. You may obtain a copy of the License at
7    *
8    * http://www.osedu.org/licenses/ECL-2.0
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
13   * implied. See the License for the specific language governing
14   * permissions and limitations under the License.
15   */
16  
17  package org.kuali.student.enrollment.roster.dto;
18  
19  import java.io.Serializable;
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.XmlAnyElement;
25  import javax.xml.bind.annotation.XmlElement;
26  import javax.xml.bind.annotation.XmlType;
27  
28  import org.kuali.student.enrollment.roster.infc.LprRosterEntry;
29  import org.kuali.student.r2.common.dto.RelationshipInfo;
30  import org.w3c.dom.Element;
31  
32  @XmlAccessorType(XmlAccessType.FIELD)
33  @XmlType(name = "LprRosterEntryInfo", propOrder = {
34                  "id", "typeKey", "stateKey", 
35                  "effectiveDate", "expirationDate",
36                  "lprRosterId", "lprId", "position", 
37                  "meta", "attributes", "_futureElements"})
38  
39  public class LprRosterEntryInfo 
40      extends RelationshipInfo 
41      implements LprRosterEntry, Serializable {
42  
43      private static final long serialVersionUID = 1L;
44  
45      @XmlElement
46      private String lprRosterId;
47  
48      @XmlElement
49      private String lprId;
50  
51      @XmlElement
52      private Integer position;
53  
54      @XmlAnyElement
55      private List<Element> _futureElements;
56  
57  
58      /**
59       *  Constructs a new LprRosterEntryInfo.
60       */
61      public LprRosterEntryInfo() {
62      }
63  
64      /**
65       *  Constructs a new LprRosterEntryInfo from anotehr
66       *  LprRosterEntry.
67       *
68       *  @param entry the LprRosterEntry to copy
69       */
70      public LprRosterEntryInfo(LprRosterEntry entry) {
71          super();
72          
73          if (entry != null) {
74              this.lprRosterId = entry.getLprRosterId();
75              this.lprId = entry.getLprId();
76              this.position = entry.getPosition();
77          }
78      }
79  
80      @Override
81      public String getLprRosterId() {
82          return lprRosterId;
83      }
84  
85      public void setLprRosterId(String lprRosterId) {
86          this.lprRosterId = lprRosterId;
87      }
88  
89      @Override
90      public String getLprId() {
91          return lprId;
92      }
93  
94      public void setLprId(String lprId) {
95          this.lprId = lprId;
96      }
97  
98      @Override
99      public Integer getPosition() {
100         return position;
101     }
102 
103     public void setPosition(Integer position) {
104         this.position = position;
105     }
106 }