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.com;
23
24 import fr.ifremer.coser.result.request.GetIndicatorsForCommunityIndicatorResultRequest;
25 import fr.ifremer.coser.result.request.GetZonesForCommunityIndicatorResultRequest;
26 import fr.ifremer.coser.web.actions.common.CommonIndicator;
27
28 /**
29 * Action index, recupere la liste des indicateurs.
30 *
31 * @author chatellier
32 * @version $Revision$
33 * <p/>
34 * Last update : $Date$
35 * By : $Author$
36 */
37 public class IndicatorAction extends CommonIndicator {
38
39 /** serialVersionUID. */
40 private static final long serialVersionUID = 1663244944108703571L;
41
42 @Override
43 protected GetIndicatorsForCommunityIndicatorResultRequest createIndicatorsRequest() {
44 return requestBuilder(GetIndicatorsForCommunityIndicatorResultRequest.class).
45 addFacade(facade).
46 addZone(zone).
47 toRequest();
48 }
49
50 @Override
51 protected GetZonesForCommunityIndicatorResultRequest createZonesRequest() {
52 return requestBuilder(GetZonesForCommunityIndicatorResultRequest.class).
53 addFacade(facade).
54 toRequest();
55 }
56 }