1 /*
2 * #%L
3 * Coser :: Web
4 * %%
5 * Copyright (C) 2010 - 2011 Ifremer, Codelutin, Chatellier Eric, Chemit Tony
6 * %%
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU Affero General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU Affero General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 * #L%
20 */
21
22 package fr.ifremer.coser.web.actions.common;
23
24 import java.util.Map;
25
26 /**
27 * Facade list action.
28 *
29 * @author chatellier
30 * @version $Revision$
31 * <p/>
32 * Last update : $Date$
33 * By : $Author$
34 */
35 public abstract class CommonFacade extends AbstractCoserJspAction {
36
37 /** serialVersionUID. */
38 private static final long serialVersionUID = 3385467755357775199L;
39
40 protected Map<String, String> facades;
41
42 public Map<String, String> getFacades() {
43 return facades;
44 }
45
46 @Override
47 public String execute() {
48
49 facades = getService().getFacades();
50 return SUCCESS;
51 }
52
53 // @Override
54 // public String execute() {
55 //
56 // WebService webService = ServiceFactory.getWebService();
57 // try {
58 // // renvoi la liste des facadeid et leur label associƩ
59 // facades = webService.getFacades();
60 //
61 // } catch (CoserBusinessException ex) {
62 // throw new CoserWebException("Can't get facades", ex);
63 // }
64 //
65 // return SUCCESS;
66 // }
67 }