001    /**
002     * Copyright 2005-2012 The Kuali Foundation
003     *
004     * Licensed under the Educational Community License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     * http://www.opensource.org/licenses/ecl2.php
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    package org.kuali.rice.kew.framework.postprocessor;
017    
018    import org.kuali.rice.kew.framework.postprocessor.IDocumentEvent;
019    
020    /**
021     * @author Kuali Rice Team (rice.collab@kuali.org)
022     * 
023     * Signal to the PostProcessor that the routeHeader is being deleted.
024     * 
025     */
026    public class DeleteEvent implements IDocumentEvent {
027    
028            /**
029             * 
030             */
031            private static final long serialVersionUID = -1991987156524201870L;
032    
033            private String appDocId;
034    
035            private String documentId;
036    
037            public DeleteEvent(String documentId, String appDocId) {
038                    this.documentId = documentId;
039                    this.appDocId = appDocId;
040            }
041    
042            /*
043             * (non-Javadoc)
044             * 
045             * @see org.kuali.rice.kew.IDocumentEvent#getDocumentEventCode()
046             */
047            public String getDocumentEventCode() {
048                    return DELETE_CHANGE;
049            }
050    
051            /*
052             * (non-Javadoc)
053             * 
054             * @see org.kuali.rice.kew.IDocumentEvent#getDocumentId()
055             */
056            public String getDocumentId() {
057                    return documentId;
058            }
059    
060            /*
061             * (non-Javadoc)
062             * 
063             * @see org.kuali.rice.kew.IDocumentEvent#getAppDocId()
064             */
065            public String getAppDocId() {
066                    return this.appDocId;
067            }
068    }