1 /**
2 * Copyright 2005-2012 The Kuali Foundation
3 *
4 * Licensed under the Educational Community License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.opensource.org/licenses/ecl2.php
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16 package org.kuali.rice.kew.framework.postprocessor;
17
18 import org.kuali.rice.kew.framework.postprocessor.IDocumentEvent;
19
20 /**
21 * @author Kuali Rice Team (rice.collab@kuali.org)
22 *
23 * Signal to the PostProcessor that the routeHeader is being deleted.
24 *
25 */
26 public class DeleteEvent implements IDocumentEvent {
27
28 /**
29 *
30 */
31 private static final long serialVersionUID = -1991987156524201870L;
32
33 private String appDocId;
34
35 private String documentId;
36
37 public DeleteEvent(String documentId, String appDocId) {
38 this.documentId = documentId;
39 this.appDocId = appDocId;
40 }
41
42 /*
43 * (non-Javadoc)
44 *
45 * @see org.kuali.rice.kew.IDocumentEvent#getDocumentEventCode()
46 */
47 public String getDocumentEventCode() {
48 return DELETE_CHANGE;
49 }
50
51 /*
52 * (non-Javadoc)
53 *
54 * @see org.kuali.rice.kew.IDocumentEvent#getDocumentId()
55 */
56 public String getDocumentId() {
57 return documentId;
58 }
59
60 /*
61 * (non-Javadoc)
62 *
63 * @see org.kuali.rice.kew.IDocumentEvent#getAppDocId()
64 */
65 public String getAppDocId() {
66 return this.appDocId;
67 }
68 }