Author: dpillot
Date: Wed Aug 16 15:49:36 2006
New Revision: 14914

URL: https://svndev.jahia.net/websvn/listing.php?sc=1&rev=14914&repname=jahia
Log:
http://www.jahia.net/jira/browse/JAHIA-55
added error specific document page for each site, added site.error.enabled 
property

Modified:
    trunk/core/src/java/org/jahia/settings/SettingsBean.java

Modified: trunk/core/src/java/org/jahia/settings/SettingsBean.java
URL: 
https://svndev.jahia.net/websvn/diff.php?path=/trunk/core/src/java/org/jahia/settings/SettingsBean.java&rev=14914&repname=jahia
==============================================================================
--- trunk/core/src/java/org/jahia/settings/SettingsBean.java (original)
+++ trunk/core/src/java/org/jahia/settings/SettingsBean.java Wed Aug 16 
15:49:36 2006
@@ -297,6 +297,7 @@
     private String siteServerNameTestURLExpr;
     private int siteServerNameTestConnectTimeout;
     private int siteURLPortOverride = -1;
+    private boolean isSiteErrorEnabled;
 
     private String jetspeedDeploymentDirectory;
 
@@ -671,7 +672,7 @@
             logoutRedirectUrl = getString("logoutRedirectUrl",null);
 
             statisticsEnabled = getBoolean("statisticsEnabled", false);
-
+            isSiteErrorEnabled = getBoolean("site.error.enabled",false);
             String tmp = getString("freeMemoryLimit",new 
Double((Runtime.getRuntime().maxMemory()*0.2)/ (1024*1024)).longValue() + "MB");
             if(tmp.indexOf("MB")>=0) {
                 freeMemoryLimit = tmp;
@@ -1673,7 +1674,7 @@
     public String getSlideContentDiskPath() {
         return slideContentDiskPath;
     }
-  public String getTmpContentDiskPath() {
+    public String getTmpContentDiskPath() {
     return tmpContentDiskPath;
   }
     public long getTemplatesObserverInterval() {
@@ -1814,4 +1815,12 @@
     public boolean isDevelopmentMode() {
         return developmentMode;
     }
+
+    /**
+     * to get the Site errors page behavior
+     * @return a boolean
+     */
+    public boolean getSiteErrorEnabled() {
+        return isSiteErrorEnabled;
+    }
 }

Reply via email to