1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
package org.kuali.rice.kew.dto; |
18 | |
|
19 | |
|
20 | |
|
21 | |
|
22 | |
|
23 | |
|
24 | |
|
25 | |
public class DocumentRouteLevelChangeDTO extends DocumentEventDTO { |
26 | |
|
27 | |
private static final long serialVersionUID = 6822976938764899168L; |
28 | |
private Integer oldRouteLevel; |
29 | |
private Integer newRouteLevel; |
30 | |
private String oldNodeName; |
31 | |
private String newNodeName; |
32 | |
private Long oldNodeInstanceId; |
33 | |
private Long newNodeInstanceId; |
34 | |
|
35 | |
public DocumentRouteLevelChangeDTO() { |
36 | 0 | super(ROUTE_LEVEL_CHANGE); |
37 | 0 | } |
38 | |
|
39 | |
public Integer getNewRouteLevel() { |
40 | 0 | return newRouteLevel; |
41 | |
} |
42 | |
|
43 | |
public void setNewRouteLevel(Integer newRouteLevel) { |
44 | 0 | this.newRouteLevel = newRouteLevel; |
45 | 0 | } |
46 | |
|
47 | |
public Integer getOldRouteLevel() { |
48 | 0 | return oldRouteLevel; |
49 | |
} |
50 | |
|
51 | |
public void setOldRouteLevel(Integer oldRouteLevel) { |
52 | 0 | this.oldRouteLevel = oldRouteLevel; |
53 | 0 | } |
54 | |
|
55 | |
public Long getNewNodeInstanceId() { |
56 | 0 | return newNodeInstanceId; |
57 | |
} |
58 | |
|
59 | |
public void setNewNodeInstanceId(Long newNodeInstanceId) { |
60 | 0 | this.newNodeInstanceId = newNodeInstanceId; |
61 | 0 | } |
62 | |
|
63 | |
public String getNewNodeName() { |
64 | 0 | return newNodeName; |
65 | |
} |
66 | |
|
67 | |
public void setNewNodeName(String newNodeName) { |
68 | 0 | this.newNodeName = newNodeName; |
69 | 0 | } |
70 | |
|
71 | |
public Long getOldNodeInstanceId() { |
72 | 0 | return oldNodeInstanceId; |
73 | |
} |
74 | |
|
75 | |
public void setOldNodeInstanceId(Long oldNodeInstanceId) { |
76 | 0 | this.oldNodeInstanceId = oldNodeInstanceId; |
77 | 0 | } |
78 | |
|
79 | |
public String getOldNodeName() { |
80 | 0 | return oldNodeName; |
81 | |
} |
82 | |
|
83 | |
public void setOldNodeName(String oldNodeName) { |
84 | 0 | this.oldNodeName = oldNodeName; |
85 | 0 | } |
86 | |
|
87 | |
public String toString() { |
88 | 0 | StringBuffer buffer = new StringBuffer(); |
89 | 0 | buffer.append("DocumentId ").append(getDocumentId()); |
90 | 0 | buffer.append(" changing from routeLevel ").append(oldRouteLevel); |
91 | 0 | buffer.append(" to routeLevel ").append(newRouteLevel); |
92 | 0 | buffer.append(", from node ").append(oldNodeName); |
93 | 0 | buffer.append(" to node ").append(newNodeName); |
94 | 0 | return buffer.toString(); |
95 | |
} |
96 | |
|
97 | |
} |