Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
MetaInfo |
|
| 1.0;1 |
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.core.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 | ||
26 | /** | |
27 | *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. | |
28 | */ | |
29 | @XmlAccessorType(XmlAccessType.FIELD) | |
30 | 0 | public class MetaInfo implements Serializable { |
31 | ||
32 | private static final long serialVersionUID = 1L; | |
33 | ||
34 | @XmlElement | |
35 | private String versionInd; | |
36 | ||
37 | @XmlElement | |
38 | private Date createTime; | |
39 | ||
40 | @XmlElement | |
41 | private String createId; | |
42 | ||
43 | @XmlElement | |
44 | private Date updateTime; | |
45 | ||
46 | @XmlElement | |
47 | private String updateId; | |
48 | ||
49 | /** | |
50 | * 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. | |
51 | */ | |
52 | public String getVersionInd() { | |
53 | 0 | return versionInd; |
54 | } | |
55 | ||
56 | public void setVersionInd(String versionInd) { | |
57 | 0 | this.versionInd = versionInd; |
58 | 0 | } |
59 | ||
60 | /** | |
61 | * The date and time the thing being described with this meta information was last updated | |
62 | */ | |
63 | public Date getCreateTime() { | |
64 | 0 | return createTime; |
65 | } | |
66 | ||
67 | public void setCreateTime(Date createTime) { | |
68 | 0 | this.createTime = createTime; |
69 | 0 | } |
70 | ||
71 | /** | |
72 | * The principal who created the thing being described with this meta information | |
73 | */ | |
74 | public String getCreateId() { | |
75 | 0 | return createId; |
76 | } | |
77 | ||
78 | public void setCreateId(String createId) { | |
79 | 0 | this.createId = createId; |
80 | 0 | } |
81 | ||
82 | /** | |
83 | * The date and time the thing being described with this meta information was last updated | |
84 | */ | |
85 | public Date getUpdateTime() { | |
86 | 0 | return updateTime; |
87 | } | |
88 | ||
89 | public void setUpdateTime(Date updateTime) { | |
90 | 0 | this.updateTime = updateTime; |
91 | 0 | } |
92 | ||
93 | /** | |
94 | * The principal who last updated the thing being described with this meta information | |
95 | */ | |
96 | public String getUpdateId() { | |
97 | 0 | return updateId; |
98 | } | |
99 | ||
100 | public void setUpdateId(String updateId) { | |
101 | 0 | this.updateId = updateId; |
102 | 0 | } |
103 | } |