Mercurial > hg > LGServer
comparison 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 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:7682c04c63a8 |
---|---|
1 package de.mpiwg.web; | |
2 | |
3 import java.io.Serializable; | |
4 | |
5 import org.apache.log4j.Logger; | |
6 | |
7 import de.mpiwg.gazetteer.utils.PropertiesUtils; | |
8 | |
9 public class ApplicationBean implements Serializable{ | |
10 | |
11 private static final long serialVersionUID = 804932192506497432L; | |
12 | |
13 private static Logger logger = Logger.getLogger(ApplicationBean.class); | |
14 | |
15 public static final String BEAN_NAME = "appBean"; | |
16 | |
17 public String getExtractionInterfaceUrl(){ | |
18 String value = null; | |
19 try { | |
20 value = PropertiesUtils.getPropValue("extraction_interface"); | |
21 } catch (Exception e) { | |
22 e.printStackTrace(); | |
23 } | |
24 return value; | |
25 } | |
26 | |
27 public String getRootServer(){ | |
28 String value = null; | |
29 try { | |
30 value = PropertiesUtils.getPropValue("root_server"); | |
31 } catch (Exception e) { | |
32 e.printStackTrace(); | |
33 } | |
34 return value; | |
35 } | |
36 | |
37 public String getDvnRootServer(){ | |
38 String value = null; | |
39 try { | |
40 value = PropertiesUtils.getPropValue("dvn_server"); | |
41 } catch (Exception e) { | |
42 e.printStackTrace(); | |
43 } | |
44 return value; | |
45 } | |
46 | |
47 public String getShowImage(){ | |
48 return getRootServer() + "/resources/images/show_16.png"; | |
49 } | |
50 | |
51 public String getEditImage(){ | |
52 return getRootServer() + "/resources/images/edit_16.png"; | |
53 } | |
54 | |
55 public String getPublishImage(){ | |
56 return getRootServer() + "/resources/images/publish_16.png"; | |
57 } | |
58 | |
59 public String getBranchDetailsImage(){ | |
60 return getRootServer() + "/resources/images/branch_details_16.png"; | |
61 } | |
62 | |
63 public String getNewBranchImage(){ | |
64 return getRootServer() + "/resources/images/new_branch_16.png"; | |
65 } | |
66 | |
67 public String getEditBranchImage(){ | |
68 return getRootServer() + "/resources/images/edit_branch_16.png"; | |
69 } | |
70 | |
71 public String getSearchImage(){ | |
72 return getRootServer() + "/resources/images/search_32.png"; | |
73 } | |
74 | |
75 public String getJSConfirmationDelete(){ | |
76 return "if(!confirm('Do you really want to delete this?')){ return false; };"; | |
77 } | |
78 | |
79 public String getJSConfirmationSave(){ | |
80 return "if(!confirm('Do you really want to save this?')){ return false; };"; | |
81 } | |
82 } |