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: * A document event representing the transition of a document from one status to another.
21: *
22: * @author ewestfal
23: *
24: * @workflow.webservice-object
25: */
26: public class DocumentRouteStatusChangeVO extends DocumentEventVO {
27:
28: private static final long serialVersionUID = 3969488320690393356L;
29: private String newRouteStatus;
30: private String oldRouteStatus;
31:
32: public DocumentRouteStatusChangeVO() {
33: super (ROUTE_STATUS_CHANGE);
34: }
35:
36: public String getNewRouteStatus() {
37: return newRouteStatus;
38: }
39:
40: public void setNewRouteStatus(String newRouteStatus) {
41: this .newRouteStatus = newRouteStatus;
42: }
43:
44: public String getOldRouteStatus() {
45: return oldRouteStatus;
46: }
47:
48: public void setOldRouteStatus(String oldRouteStatus) {
49: this .oldRouteStatus = oldRouteStatus;
50: }
51:
52: public String toString() {
53: StringBuffer buffer = new StringBuffer();
54: buffer.append("RouteHeaderID ").append(getRouteHeaderId());
55: buffer.append(" changing from routeStatus ").append(
56: oldRouteStatus);
57: buffer.append(" to routeStatus ").append(newRouteStatus);
58:
59: return buffer.toString();
60: }
61:
62: }
|