1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.edl.framework.extract;
17
18 import org.kuali.rice.core.api.util.RiceConstants;
19 import org.kuali.rice.kew.api.KewApiConstants;
20
21 import java.io.Serializable;
22 import java.sql.Timestamp;
23 import java.text.DateFormat;
24 import java.text.SimpleDateFormat;
25 import java.util.ArrayList;
26 import java.util.Calendar;
27 import java.util.Date;
28 import java.util.List;
29
30 public class DumpDTO implements Serializable {
31
32 private static final long serialVersionUID = -6136544551121011531L;
33
34 private String docId;
35 private String docTypeName;
36 private String docRouteStatusCode;
37 private Timestamp docModificationDate;
38 private Timestamp docCreationDate;
39 private String docDescription;
40 private String docInitiatorId;
41 private String docCurrentNodeName;
42 private Integer lockVerNbr;
43
44 private List<FieldDTO> fields = new ArrayList<FieldDTO>();
45
46 public Timestamp getDocCreationDate() {
47 return docCreationDate;
48 }
49 public void setDocCreationDate(final Timestamp docCreationDate) {
50 this.docCreationDate = docCreationDate;
51 }
52 public String getDocCurrentNodeName() {
53 return docCurrentNodeName;
54 }
55 public void setDocCurrentNodeName(final String docCurrentNodeName) {
56 this.docCurrentNodeName = docCurrentNodeName;
57 }
58 public String getDocDescription() {
59 return docDescription;
60 }
61 public void setDocDescription(final String docDescription) {
62 this.docDescription = docDescription;
63 }
64 public String getDocId() {
65 return docId;
66 }
67 public String getDocInitiatorId() {
68 return docInitiatorId;
69 }
70 public void setDocInitiatorId(final String docInitiatorId) {
71 this.docInitiatorId = docInitiatorId;
72 }
73 public Timestamp getDocModificationDate() {
74 return docModificationDate;
75 }
76 public void setDocModificationDate(final Timestamp docModificationDate) {
77 this.docModificationDate = docModificationDate;
78 }
79 public String getDocRouteStatusCode() {
80 return docRouteStatusCode;
81 }
82 public void setDocRouteStatusCode(final String docRouteStatusCode) {
83 this.docRouteStatusCode = docRouteStatusCode;
84 }
85 public String getDocTypeName() {
86 return docTypeName;
87 }
88 public void setDocTypeName(final String docTypeName) {
89 this.docTypeName = docTypeName;
90 }
91 public Integer getLockVerNbr() {
92 return lockVerNbr;
93 }
94 public void setLockVerNbr(final Integer lockVerNbr) {
95 this.lockVerNbr = lockVerNbr;
96 }
97 public String getFormattedCreateDateTime() {
98 long time = getDocCreationDate().getTime();
99 Calendar calendar = Calendar.getInstance();
100 calendar.setTimeInMillis(time);
101 Date date = calendar.getTime();
102 DateFormat dateFormat = new SimpleDateFormat(KewApiConstants.TIMESTAMP_DATE_FORMAT_PATTERN2);
103 return dateFormat.format(date);
104 }
105
106 public String getFormattedCreateDate() {
107 long time = getDocCreationDate().getTime();
108 Calendar calendar = Calendar.getInstance();
109 calendar.setTimeInMillis(time);
110 Date date = calendar.getTime();
111 DateFormat dateFormat = RiceConstants.getDefaultDateFormat();
112 return dateFormat.format(date);
113 }
114 public void setDocId(final String docId) {
115 this.docId = docId;
116 }
117
118
119 public List<FieldDTO> getFields() {
120 return fields;
121 }
122
123 public void setFields(final List<FieldDTO> fields) {
124 this.fields = fields;
125 }
126
127 }
128