01: /*
02: * Copyright 2005-2006 The Kuali Foundation.
03: *
04: *
05: * Licensed under the Educational Community License, Version 1.0 (the "License");
06: * you may not use this file except in compliance with the License.
07: * You may obtain a copy of the License at
08: *
09: * http://www.opensource.org/licenses/ecl1.php
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package edu.iu.uis.eden.clientapp.vo;
18:
19: /**
20: * Event passed to remote post processor when document changes route levels.
21: *
22: * @author ewestfal
23: */
24: public class DocumentRouteLevelChangeVO extends DocumentEventVO {
25:
26: private static final long serialVersionUID = 6822976938764899168L;
27: private Integer oldRouteLevel;
28: private Integer newRouteLevel;
29: private String oldNodeName;
30: private String newNodeName;
31: private Long oldNodeInstanceId;
32: private Long newNodeInstanceId;
33:
34: public DocumentRouteLevelChangeVO() {
35: super (ROUTE_LEVEL_CHANGE);
36: }
37:
38: public Integer getNewRouteLevel() {
39: return newRouteLevel;
40: }
41:
42: public void setNewRouteLevel(Integer newRouteLevel) {
43: this .newRouteLevel = newRouteLevel;
44: }
45:
46: public Integer getOldRouteLevel() {
47: return oldRouteLevel;
48: }
49:
50: public void setOldRouteLevel(Integer oldRouteLevel) {
51: this .oldRouteLevel = oldRouteLevel;
52: }
53:
54: public Long getNewNodeInstanceId() {
55: return newNodeInstanceId;
56: }
57:
58: public void setNewNodeInstanceId(Long newNodeInstanceId) {
59: this .newNodeInstanceId = newNodeInstanceId;
60: }
61:
62: public String getNewNodeName() {
63: return newNodeName;
64: }
65:
66: public void setNewNodeName(String newNodeName) {
67: this .newNodeName = newNodeName;
68: }
69:
70: public Long getOldNodeInstanceId() {
71: return oldNodeInstanceId;
72: }
73:
74: public void setOldNodeInstanceId(Long oldNodeInstanceId) {
75: this .oldNodeInstanceId = oldNodeInstanceId;
76: }
77:
78: public String getOldNodeName() {
79: return oldNodeName;
80: }
81:
82: public void setOldNodeName(String oldNodeName) {
83: this .oldNodeName = oldNodeName;
84: }
85:
86: public String toString() {
87: StringBuffer buffer = new StringBuffer();
88: buffer.append("RouteHeaderID ").append(getRouteHeaderId());
89: buffer.append(" changing from routeLevel ").append(
90: 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: }
|