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 super(ROUTE_LEVEL_CHANGE);
37 }
38
39 public Integer getNewRouteLevel() {
40 return newRouteLevel;
41 }
42
43 public void setNewRouteLevel(Integer newRouteLevel) {
44 this.newRouteLevel = newRouteLevel;
45 }
46
47 public Integer getOldRouteLevel() {
48 return oldRouteLevel;
49 }
50
51 public void setOldRouteLevel(Integer oldRouteLevel) {
52 this.oldRouteLevel = oldRouteLevel;
53 }
54
55 public Long getNewNodeInstanceId() {
56 return newNodeInstanceId;
57 }
58
59 public void setNewNodeInstanceId(Long newNodeInstanceId) {
60 this.newNodeInstanceId = newNodeInstanceId;
61 }
62
63 public String getNewNodeName() {
64 return newNodeName;
65 }
66
67 public void setNewNodeName(String newNodeName) {
68 this.newNodeName = newNodeName;
69 }
70
71 public Long getOldNodeInstanceId() {
72 return oldNodeInstanceId;
73 }
74
75 public void setOldNodeInstanceId(Long oldNodeInstanceId) {
76 this.oldNodeInstanceId = oldNodeInstanceId;
77 }
78
79 public String getOldNodeName() {
80 return oldNodeName;
81 }
82
83 public void setOldNodeName(String oldNodeName) {
84 this.oldNodeName = oldNodeName;
85 }
86
87 public String toString() {
88 StringBuffer buffer = new StringBuffer();
89 buffer.append("RouteHeaderID ").append(getRouteHeaderId());
90 buffer.append(" changing from routeLevel ").append(oldRouteLevel);
91 buffer.append(" to routeLevel ").append(newRouteLevel);
92 buffer.append(", from node ").append(oldNodeName);
93 buffer.append(" to node ").append(newNodeName);
94 return buffer.toString();
95 }
96
97 }