1   
2   
3   
4   
5   
6   
7   
8   
9   
10  
11  
12  
13  
14  
15  
16  package org.kuali.student.lum.lo.dto;
17  
18  import java.io.Serializable;
19  import java.util.Date;
20  import java.util.HashMap;
21  import java.util.Map;
22  
23  import javax.xml.bind.annotation.XmlAccessType;
24  import javax.xml.bind.annotation.XmlAccessorType;
25  import javax.xml.bind.annotation.XmlAttribute;
26  import javax.xml.bind.annotation.XmlElement;
27  import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
28  
29  import org.kuali.student.core.dto.HasAttributes;
30  import org.kuali.student.core.dto.Idable;
31  import org.kuali.student.core.dto.MetaInfo;
32  import org.kuali.student.core.dto.RichTextInfo;
33  import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter;
34  
35  
36  
37  
38  
39  
40  
41  
42  
43  
44  @XmlAccessorType(XmlAccessType.FIELD)
45  public class LoRepositoryInfo implements Serializable, Idable, HasAttributes {
46  
47      private static final long serialVersionUID = 1L;
48  
49      @XmlElement
50      private String name;
51  
52      @XmlElement
53      private RichTextInfo desc;
54  
55      @XmlElement
56      private String rootLoId;
57  
58      @XmlElement
59      private Date effectiveDate;
60  
61      @XmlElement
62      private Date expirationDate;
63  
64      @XmlElement
65      @XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class)
66      private Map<String, String> attributes;
67  
68      @XmlElement
69      private MetaInfo metaInfo;
70  
71      @XmlAttribute(name="key")
72      private String id;
73  
74      
75  
76  
77      public String getName() {
78          return name;
79      }
80  
81      public void setName(String name) {
82          this.name = name;
83      }
84  
85      
86  
87  
88      public RichTextInfo getDesc() {
89          return desc;
90      }
91  
92      public void setDesc(RichTextInfo desc) {
93          this.desc = desc;
94      }
95  
96      
97  
98  
99      public String getRootLoId() {
100         return rootLoId;
101     }
102 
103     public void setRootLoId(String rootLoId) {
104         this.rootLoId = rootLoId;
105     }
106 
107     
108 
109 
110     public Date getEffectiveDate() {
111         return effectiveDate;
112     }
113 
114     public void setEffectiveDate(Date effectiveDate) {
115         this.effectiveDate = effectiveDate;
116     }
117 
118     
119 
120 
121     public Date getExpirationDate() {
122         return expirationDate;
123     }
124 
125     public void setExpirationDate(Date expirationDate) {
126         this.expirationDate = expirationDate;
127     }
128 
129     
130 
131 
132     public Map<String, String> getAttributes() {
133         if (attributes == null) {
134             attributes = new HashMap<String, String>();
135         }
136         return attributes;
137     }
138 
139     public void setAttributes(Map<String, String> attributes) {
140         this.attributes = attributes;
141     }
142 
143     
144 
145 
146     public MetaInfo getMetaInfo() {
147         return metaInfo;
148     }
149 
150     public void setMetaInfo(MetaInfo metaInfo) {
151         this.metaInfo = metaInfo;
152     }
153 
154     
155 
156 
157     public String getId() {
158         return id;
159     }
160 
161     public void setId(String id) {
162         this.id = id;
163     }
164 }