01: //$Header: $
02: /*---------------- FILE HEADER ------------------------------------------
03: This file is part of deegree.
04: Copyright (C) 2001-2008 by:
05: Department of Geography, University of Bonn
06: http://www.giub.uni-bonn.de/deegree/
07: lat/lon GmbH
08: http://www.lat-lon.de
09:
10: This library is free software; you can redistribute it and/or
11: modify it under the terms of the GNU Lesser General Public
12: License as published by the Free Software Foundation; either
13: version 2.1 of the License, or (at your option) any later version.
14:
15: This library is distributed in the hope that it will be useful,
16: but WITHOUT ANY WARRANTY; without even the implied warranty of
17: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18: Lesser General Public License for more details.
19:
20: You should have received a copy of the GNU Lesser General Public
21: License along with this library; if not, write to the Free Software
22: Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23:
24: Contact:
25:
26: Andreas Poth
27: lat/lon GmbH
28: Aennchenstr. 19
29: 53177 Bonn
30: Germany
31: E-Mail: poth@lat-lon.de
32:
33: Prof. Dr. Klaus Greve
34: Department of Geography
35: University of Bonn
36: Meckenheimer Allee 166
37: 53115 Bonn
38: Germany
39: E-Mail: greve@giub.uni-bonn.de
40:
41: ---------------------------------------------------------------------------*/
42:
43: package org.deegree.portal.portlet.modules.wfs.actions.portlets;
44:
45: import org.apache.jetspeed.portal.Portlet;
46: import org.apache.turbine.util.RunData;
47:
48: /**
49: * Removes a number of Features (listed by their ID). The actual implementation
50: * is done by the Perform class.
51: *
52: * @author <a href="mailto:taddei@lat-lon.de">Ugo Taddei</a>
53: * @author last edited by: $Author:$
54: *
55: * @version $Revision:$, $Date:$
56: */
57: public class RemoveAnnotationAction extends WFSClientPortletAction {
58:
59: /**
60: * Builds the portlet up.
61: *
62: * @param portlet
63: * @param data
64: * @throws Exception
65: */
66: protected void buildNormalContext(Portlet portlet, RunData data)
67: throws Exception {
68: RemoveAnnotationPerform arp = new RemoveAnnotationPerform(data
69: .getRequest(), portlet, data.getServletContext());
70: arp.buildNormalContext(data);
71: }
72:
73: /**
74: *
75: * Delegates to RemoveAnnotationPerform, which does the deleting.
76: *
77: * @param data
78: * @param portlet
79: * @throws Exception
80: */
81: public void doDeletetransaction(RunData data, Portlet portlet)
82: throws Exception {
83: try {
84: RemoveAnnotationPerform arp = new RemoveAnnotationPerform(
85: data.getRequest(), portlet, data
86: .getServletContext());
87: arp.doDeletetransaction(data);
88: } catch (Exception e) {
89: e.printStackTrace();
90: throw e;
91: }
92: }
93:
94: }
|