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