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.postprocessor;
18:
19: import edu.iu.uis.eden.ActionTakenEvent;
20: import edu.iu.uis.eden.DocumentRouteLevelChange;
21: import edu.iu.uis.eden.DocumentRouteStatusChange;
22: import edu.iu.uis.eden.clientapp.DeleteEvent;
23:
24: /**
25: * A simple default implementation of the PostProcessor which can be used
26: * as a superclass for post processor which don't want to implement all
27: * the methods on the interface. Simply returns a "true"
28: * ProcessDocReport for all events exception for deletion.
29: *
30: * @author ewestfal
31: */
32: public class DefaultPostProcessor implements PostProcessor {
33:
34: public ProcessDocReport doRouteStatusChange(
35: DocumentRouteStatusChange statusChangeEvent)
36: throws Exception {
37: return new ProcessDocReport(true, "");
38: }
39:
40: public ProcessDocReport doRouteLevelChange(
41: DocumentRouteLevelChange levelChangeEvent) throws Exception {
42: return new ProcessDocReport(true, "");
43: }
44:
45: public ProcessDocReport doDeleteRouteHeader(DeleteEvent event)
46: throws Exception {
47: return new ProcessDocReport(false, "");
48: }
49:
50: public ProcessDocReport doActionTaken(ActionTakenEvent event)
51: throws Exception {
52: return new ProcessDocReport(true, "");
53: }
54:
55: }
|