View Javadoc

1   /**
2    * Copyright 2010 The Kuali Foundation 
3    *
4    * Licensed under the the Educational Community License, Version 1.0
5    * (the "License"); you may not use this file except in compliance
6    * with the License.  You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl1.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
13   * implied.  See the License for the specific language governing
14   * permissions and limitations under the License.
15   */
16  
17  package org.kuali.student.lum.lu.dto;
18  
19  import org.kuali.student.core.dto.HasAttributes;
20  import org.kuali.student.core.dto.Idable;
21  import org.kuali.student.core.dto.MetaInfo;
22  
23  import java.io.Serializable;
24  import java.util.Date;
25  import java.util.HashMap;
26  import java.util.Map;
27  
28  
29  /**
30   * This is a description of what this class does - hjohnson don't
31   * forget to fill this in.
32   *
33   * @author Kuali Student Team (kuali-student@googlegroups.com)
34   */
35  
36  public class AccreditationInfo implements Serializable, Idable, HasAttributes {
37  
38      private static final long serialVersionUID = 1L;
39  
40      private String id;
41  
42      private String orgId;
43  
44      private Date effectiveDate;
45  
46      private Date expirationDate;
47  
48      private Map<String, String> attributes;
49  
50      private MetaInfo metaInfo;
51  
52      /*
53       * Unique identifier for the organization responsible for the
54       * accreditation.
55       */
56  
57      public String getOrgId() {
58          return orgId;
59      }
60  
61      public void setOrgId(String orgId) {
62          this.orgId = orgId;
63      }
64  
65  
66      /*
67       * Date and time the accreditation became effective. 
68       */
69  
70      public Date getEffectiveDate() {
71          return effectiveDate;
72      }
73  
74      public void setEffectiveDate(Date effectiveDate) {
75          this.effectiveDate = effectiveDate;
76      }
77  
78  
79      /*
80       * Date and time the accreditation expires. 
81       */
82  
83      public Date getExpirationDate() {
84          return expirationDate;
85      }
86  
87      public void setExpirationDate(Date expirationDate) {
88          this.expirationDate = expirationDate;
89      }
90  
91  
92      /**
93       * List of key/value pairs, typically used for dynamic attributes.
94       */
95  
96      public Map<String, String> getAttributes() {
97          if (attributes == null) {
98              attributes = new HashMap<String, String>();
99          }
100         return attributes;
101     }
102 
103     public void setAttributes(Map<String, String> attributes) {
104         this.attributes = attributes;
105     }
106 
107 
108     /*
109     * Create and last update info for the structure.  This is
110     * optional and treated as read only since the data is set by the
111     * internals of the service during maintenance operations.
112     */
113 
114     public MetaInfo getMetaInfo() {
115         return metaInfo;
116     }
117 
118     public void setMetaInfo(MetaInfo metaInfo) {
119         this.metaInfo = metaInfo;
120     }
121 
122 
123     /*
124     * Unique identifier for the accreditation.
125     */
126 
127     public String getId() {
128         return id;
129     }
130 
131     public void setId(String id) {
132         this.id = id;
133     }
134 }