Mercurial > hg > LGServer
view src/main/java/de/mpiwg/web/ApplicationBean.java @ 0:7682c04c63a8
First commit of the source code!
author | "jurzua <jurzua@mpiwg-berlin.mpg.de>" |
---|---|
date | Tue, 10 Mar 2015 14:50:41 +0100 |
parents | |
children | 5316e79f9a27 |
line wrap: on
line source
package de.mpiwg.web; import java.io.Serializable; import org.apache.log4j.Logger; import de.mpiwg.gazetteer.utils.PropertiesUtils; public class ApplicationBean implements Serializable{ private static final long serialVersionUID = 804932192506497432L; private static Logger logger = Logger.getLogger(ApplicationBean.class); public static final String BEAN_NAME = "appBean"; public String getExtractionInterfaceUrl(){ String value = null; try { value = PropertiesUtils.getPropValue("extraction_interface"); } catch (Exception e) { e.printStackTrace(); } return value; } public String getRootServer(){ String value = null; try { value = PropertiesUtils.getPropValue("root_server"); } catch (Exception e) { e.printStackTrace(); } return value; } public String getDvnRootServer(){ String value = null; try { value = PropertiesUtils.getPropValue("dvn_server"); } catch (Exception e) { e.printStackTrace(); } return value; } public String getShowImage(){ return getRootServer() + "/resources/images/show_16.png"; } public String getEditImage(){ return getRootServer() + "/resources/images/edit_16.png"; } public String getPublishImage(){ return getRootServer() + "/resources/images/publish_16.png"; } public String getBranchDetailsImage(){ return getRootServer() + "/resources/images/branch_details_16.png"; } public String getNewBranchImage(){ return getRootServer() + "/resources/images/new_branch_16.png"; } public String getEditBranchImage(){ return getRootServer() + "/resources/images/edit_branch_16.png"; } public String getSearchImage(){ return getRootServer() + "/resources/images/search_32.png"; } public String getJSConfirmationDelete(){ return "if(!confirm('Do you really want to delete this?')){ return false; };"; } public String getJSConfirmationSave(){ return "if(!confirm('Do you really want to save this?')){ return false; };"; } }