1 /* 2 * #%L 3 * Coser :: Web 4 * %% 5 * Copyright (C) 2010 - 2012 Ifremer, Codelutin, Chatellier Eric 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.source; 23 24 import fr.ifremer.coser.result.request.GetZonesForExtractRawDataRequest; 25 import fr.ifremer.coser.web.actions.common.CommonZone; 26 27 /** 28 * Affiche la liste des sous zones (zone). 29 * 30 * @author chatellier 31 * @version $Revision$ 32 * <p/> 33 * Last update : $Date$ 34 * By : $Author$ 35 */ 36 public class ZoneAction extends CommonZone { 37 38 /** serialVersionUID. */ 39 private static final long serialVersionUID = 3385467755357775199L; 40 41 @Override 42 protected GetZonesForExtractRawDataRequest createZonesRequest() { 43 GetZonesForExtractRawDataRequest request = 44 requestBuilder(GetZonesForExtractRawDataRequest.class). 45 addFacade(facade). 46 toRequest(); 47 return request; 48 } 49 50 // @Override 51 // public String execute() { 52 // 53 // WebService webService = ServiceFactory.getWebService(); 54 // 55 // Locale locale = getLocale(); 56 // 57 // try { 58 // // renvoi la liste des id subzone-survey et leurs label associƩ 59 // zones = webService.getZoneForFacade(facade, true, false); 60 // zonesPictures = webService.getZonePictures(); 61 // zonesMetaInfo = webService.getZoneMetaInfo(locale); 62 // } catch (CoserBusinessException ex) { 63 // throw new CoserWebException("Can't get zone map", ex); 64 // } 65 // 66 // return SUCCESS; 67 // } 68 }