1 package fr.ifremer.quadrige3.batch.config; 2 3 /*- 4 * #%L 5 * Quadrige3 Core :: Quadrige3 Server Core 6 * $Id:$ 7 * $HeadURL:$ 8 * %% 9 * Copyright (C) 2017 Ifremer 10 * %% 11 * This program is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Affero General Public License as published by 13 * the Free Software Foundation, either version 3 of the License, or 14 * (at your option) any later version. 15 * 16 * This program is distributed in the hope that it will be useful, 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 * GNU General Public License for more details. 20 * 21 * You should have received a copy of the GNU Affero General Public License 22 * along with this program. If not, see <http://www.gnu.org/licenses/>. 23 * #L% 24 */ 25 26 import org.nuiton.config.ApplicationConfigProvider; 27 import org.nuiton.config.ConfigActionDef; 28 import org.nuiton.config.ConfigOptionDef; 29 30 import java.util.Locale; 31 32 import static org.nuiton.i18n.I18n.l; 33 34 /** 35 * Config provider (for site generation). 36 * 37 * @author Benoit Lavenier <benoit.lavenier@e-is.pro> 38 * @since 1.0 39 */ 40 public class BatchesServerConfigurationProvider implements ApplicationConfigProvider { 41 42 /** {@inheritDoc} */ 43 @Override 44 public String getName() { 45 return "quadrige3-batches-server-actions"; 46 } 47 48 /** {@inheritDoc} */ 49 @Override 50 public String getDescription(Locale locale) { 51 return l(locale, "quadrige3.batches.server.config.actions"); 52 } 53 54 /** {@inheritDoc} */ 55 @Override 56 public ConfigOptionDef[] getOptions() { 57 return new ConfigOptionDef[0]; 58 } 59 60 /** {@inheritDoc} */ 61 @Override 62 public ConfigActionDef[] getActions() { 63 return BatchesServerConfigurationAction.values(); 64 } 65 }