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 fr.ifremer.coser.web.CoserWebConfig;
25
26 /**
27 * Toutes les actions de type *Jsp* doivent étendre celle ci. Contient le code commun
28 * récurent, et notamment les actions utilisé par le layout et devant
29 * être presentes sur toutes les pages.
30 *
31 * @author chatellier
32 * @version $Revision$
33 * <p/>
34 * Last update : $Date$
35 * By : $Author$
36 */
37 public abstract class AbstractCoserJspAction extends AbstractCoserAction {
38
39 /** serialVersionUID. */
40 private static final long serialVersionUID = 311574866032741326L;
41
42 /**
43 * Recupere l'email dans la configuration.
44 *
45 * @return admin email
46 */
47 public String getAdminEmail() {
48 CoserWebConfig config = getService().getConfig();
49 String email = config.getAdminEmail();
50 return email;
51 }
52
53 /**
54 * Recupere l'email dans la configuration.
55 *
56 * @return admin email
57 */
58 public String getApplicationVersion() {
59 CoserWebConfig config = getService().getConfig();
60 String email = config.getApplicationVersion();
61 return email;
62 }
63
64 /**
65 * Get analytics id from configuration.
66 *
67 * @return analytics id
68 */
69 public String getAnalyticsId() {
70 CoserWebConfig config = getService().getConfig();
71 String id = config.getAnalyticsId();
72 return id;
73 }
74 }