View Javadoc

1   /**
2    * Copyright 2010 The Kuali Foundation Licensed under the
3    * Educational Community License, Version 2.0 (the "License"); you may
4    * not use this file except in compliance with the License. You may
5    * obtain a copy of the License at
6    *
7    * http://www.osedu.org/licenses/ECL-2.0
8    *
9    * Unless required by applicable law or agreed to in writing,
10   * software distributed under the License is distributed on an "AS IS"
11   * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12   * or implied. See the License for the specific language governing
13   * permissions and limitations under the License.
14   */
15  
16  package org.kuali.student.common.dto;
17  
18  import java.io.Serializable;
19  import java.util.Date;
20  
21  import javax.xml.bind.annotation.XmlAccessType;
22  import javax.xml.bind.annotation.XmlAccessorType;
23  import javax.xml.bind.annotation.XmlElement;
24  
25  import org.kuali.student.common.infc.MetaInfc;
26  
27  
28  /**
29   *Create and last update info for the structure. This is optional and treated as read only since the data is set by the internals of the service during maintenance operations.
30   */ 
31  @XmlAccessorType(XmlAccessType.FIELD)
32  public class MetaInfo implements MetaInfc, Serializable {
33  
34      private static final long serialVersionUID = 1L;
35  
36      @XmlElement
37      private String versionInd;
38  
39      @XmlElement
40      private Date createTime;
41  
42      @XmlElement
43      private String createId;
44  
45      @XmlElement
46      private Date updateTime;
47  
48      @XmlElement
49      private String updateId;
50  
51      /**
52       * An indicator of the version of the thing being described with this meta information. This is set by the service implementation and will be used to determine conflicts in updates.
53       */
54      public String getVersionInd() {
55          return versionInd;
56      }
57  
58      public void setVersionInd(String versionInd) {
59          this.versionInd = versionInd;
60      }
61  
62      /**
63       * The date and time the thing being described with this meta information was last updated
64       */
65      public Date getCreateTime() {
66          return createTime;
67      }
68  
69      public void setCreateTime(Date createTime) {
70          this.createTime = createTime;
71      }
72  
73      /**
74       * The principal who created the thing being described with this meta information
75       */
76      public String getCreateId() {
77          return createId;
78      }
79  
80      public void setCreateId(String createId) {
81          this.createId = createId;
82      }
83  
84      /**
85       * The date and time the thing being described with this meta information was last updated
86       */
87      public Date getUpdateTime() {
88          return updateTime;
89      }
90  
91      public void setUpdateTime(Date updateTime) {
92          this.updateTime = updateTime;
93      }
94  
95      /**
96       * The principal who last updated the thing being described with this meta information
97       */
98      public String getUpdateId() {
99          return updateId;
100     }
101 
102     public void setUpdateId(String updateId) {
103         this.updateId = updateId;
104     }
105 }