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 | 0 | 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 | 0 | private List<FieldDTO> fields = new ArrayList<FieldDTO>(); |
45 | |
|
46 | |
public Timestamp getDocCreationDate() { |
47 | 0 | return docCreationDate; |
48 | |
} |
49 | |
public void setDocCreationDate(final Timestamp docCreationDate) { |
50 | 0 | this.docCreationDate = docCreationDate; |
51 | 0 | } |
52 | |
public String getDocCurrentNodeName() { |
53 | 0 | return docCurrentNodeName; |
54 | |
} |
55 | |
public void setDocCurrentNodeName(final String docCurrentNodeName) { |
56 | 0 | this.docCurrentNodeName = docCurrentNodeName; |
57 | 0 | } |
58 | |
public String getDocDescription() { |
59 | 0 | return docDescription; |
60 | |
} |
61 | |
public void setDocDescription(final String docDescription) { |
62 | 0 | this.docDescription = docDescription; |
63 | 0 | } |
64 | |
public String getDocId() { |
65 | 0 | return docId; |
66 | |
} |
67 | |
public String getDocInitiatorId() { |
68 | 0 | return docInitiatorId; |
69 | |
} |
70 | |
public void setDocInitiatorId(final String docInitiatorId) { |
71 | 0 | this.docInitiatorId = docInitiatorId; |
72 | 0 | } |
73 | |
public Timestamp getDocModificationDate() { |
74 | 0 | return docModificationDate; |
75 | |
} |
76 | |
public void setDocModificationDate(final Timestamp docModificationDate) { |
77 | 0 | this.docModificationDate = docModificationDate; |
78 | 0 | } |
79 | |
public String getDocRouteStatusCode() { |
80 | 0 | return docRouteStatusCode; |
81 | |
} |
82 | |
public void setDocRouteStatusCode(final String docRouteStatusCode) { |
83 | 0 | this.docRouteStatusCode = docRouteStatusCode; |
84 | 0 | } |
85 | |
public String getDocTypeName() { |
86 | 0 | return docTypeName; |
87 | |
} |
88 | |
public void setDocTypeName(final String docTypeName) { |
89 | 0 | this.docTypeName = docTypeName; |
90 | 0 | } |
91 | |
public Integer getLockVerNbr() { |
92 | 0 | return lockVerNbr; |
93 | |
} |
94 | |
public void setLockVerNbr(final Integer lockVerNbr) { |
95 | 0 | this.lockVerNbr = lockVerNbr; |
96 | 0 | } |
97 | |
public String getFormattedCreateDateTime() { |
98 | 0 | long time = getDocCreationDate().getTime(); |
99 | 0 | Calendar calendar = Calendar.getInstance(); |
100 | 0 | calendar.setTimeInMillis(time); |
101 | 0 | Date date = calendar.getTime(); |
102 | 0 | DateFormat dateFormat = new SimpleDateFormat(KewApiConstants.TIMESTAMP_DATE_FORMAT_PATTERN2); |
103 | 0 | return dateFormat.format(date); |
104 | |
} |
105 | |
|
106 | |
public String getFormattedCreateDate() { |
107 | 0 | long time = getDocCreationDate().getTime(); |
108 | 0 | Calendar calendar = Calendar.getInstance(); |
109 | 0 | calendar.setTimeInMillis(time); |
110 | 0 | Date date = calendar.getTime(); |
111 | 0 | DateFormat dateFormat = RiceConstants.getDefaultDateFormat(); |
112 | 0 | return dateFormat.format(date); |
113 | |
} |
114 | |
public void setDocId(final String docId) { |
115 | 0 | this.docId = docId; |
116 | 0 | } |
117 | |
|
118 | |
|
119 | |
public List<FieldDTO> getFields() { |
120 | 0 | return fields; |
121 | |
} |
122 | |
|
123 | |
public void setFields(final List<FieldDTO> fields) { |
124 | 0 | this.fields = fields; |
125 | 0 | } |
126 | |
|
127 | |
} |
128 | |
|