View Javadoc

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