01: package edu.iu.uis.eden;
02:
03: /**
04: * <p>
05: * <Title>
06: * </p>
07: * <p>
08: * <Description>
09: * </p>
10: * <p>
11: * <p>
12: * <p>
13: * Copyright: Copyright (c) 2002
14: * </p>
15: * <p>
16: * <p>
17: * Company: UIS - Indiana University
18: * </p>
19: *
20: * @author <a href="mailto:seiffert@indiana.edu">Kurt A. Seiffert</a>
21: * @version $Revision: 1.2 $ - $Date: 2006/05/01 20:33:42 $
22: */
23: public class DocumentRouteStatusChange implements IDocumentEvent {
24:
25: private static final long serialVersionUID = -5170568498563302803L;
26: private String appDocId;
27: private Long routeHeaderId;
28: private String newRouteStatus;
29: private String oldRouteStatus;
30:
31: public DocumentRouteStatusChange(Long routeHeaderId,
32: String appDocId, String oldStatus, String newStatus) {
33: this .routeHeaderId = routeHeaderId;
34: this .appDocId = appDocId;
35: this .newRouteStatus = newStatus;
36: this .oldRouteStatus = oldStatus;
37: }
38:
39: public String getDocumentEventCode() {
40: return ROUTE_STATUS_CHANGE;
41: }
42:
43: public Long getRouteHeaderId() {
44: return routeHeaderId;
45: }
46:
47: public String getNewRouteStatus() {
48: return newRouteStatus;
49: }
50:
51: public String getOldRouteStatus() {
52: return oldRouteStatus;
53: }
54:
55: public String toString() {
56: StringBuffer buffer = new StringBuffer();
57: buffer.append("RouteHeaderID ").append(routeHeaderId);
58: buffer.append(" changing from routeStatus ").append(
59: oldRouteStatus);
60: buffer.append(" to routeStatus ").append(newRouteStatus);
61:
62: return buffer.toString();
63: }
64:
65: /*
66: * (non-Javadoc)
67: *
68: * @see edu.iu.uis.eden.IDocumentEvent#getAppDocId()
69: */
70: public String getAppDocId() {
71: return this .appDocId;
72: }
73: }
74:
75: /*
76: * Copyright 2003 The Trustees of Indiana University. All rights reserved.
77: *
78: * This file is part of the EDEN software package. For license information, see
79: * the LICENSE file in the top level directory of the EDEN source distribution.
80: */
|