View Javadoc

1   /**
2    * Copyright 2011 The Kuali Foundation Licensed under the Educational Community
3    * License, Version 2.0 (the "License"); you may not use this file except in
4    * compliance with the License. You may obtain a copy of the License at
5    * http://www.osedu.org/licenses/ECL-2.0 Unless required by applicable law or
6    * agreed to in writing, software distributed under the License is distributed
7    * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
8    * express or implied. See the License for the specific language governing
9    * permissions and limitations under the License.
10   */
11  
12  package org.kuali.student.r2.lum.lo.dto;
13  
14  import org.kuali.student.r2.common.dto.RelationshipInfo;
15  import org.kuali.student.r2.lum.lo.infc.LoLoRelation;
16  
17  import javax.xml.bind.annotation.XmlAccessType;
18  import javax.xml.bind.annotation.XmlAccessorType;
19  import javax.xml.bind.annotation.XmlElement;
20  import javax.xml.bind.annotation.XmlType;
21  import java.io.Serializable;
22  
23  @XmlType(name = "LoLoRelationInfo", propOrder = {"id", "typeKey", "stateKey", "loId", "relatedLoId", "effectiveDate", "expirationDate", "meta", "attributes" })//, "_futureElements" }) TODO KSCM-372: Non-GWT translatable code})
24  @XmlAccessorType(XmlAccessType.FIELD)
25  public class LoLoRelationInfo extends RelationshipInfo implements LoLoRelation, Serializable {
26  
27      private static final long serialVersionUID = 1L;
28  
29      @XmlElement
30      private String loId;
31  
32      @XmlElement
33      private String relatedLoId;
34  
35      public LoLoRelationInfo() {
36  
37      }
38  
39      public LoLoRelationInfo(LoLoRelation loLoRelation) {
40          super(loLoRelation);
41          if (loLoRelation != null) {
42              this.loId = loLoRelation.getLoId();
43              this.relatedLoId = loLoRelation.getRelatedLoId();
44  
45          }
46      }
47  
48      @Override
49      public String getLoId() {
50          return loId;
51      }
52  
53      public void setLoId(String loId) {
54          this.loId = loId;
55      }
56  
57      @Override
58      public String getRelatedLoId() {
59          return relatedLoId;
60      }
61  
62      public void setRelatedLoId(String relatedLoId) {
63          this.relatedLoId = relatedLoId;
64      }
65  
66  }