info.aduna.gee.publication.servlets.cache
Class ZpadConfCache

java.lang.Object
  extended by info.aduna.gee.publication.servlets.cache.ZpadConfCache

public class ZpadConfCache
extends Object

Zpad Configuration File Cache


Field Summary
protected static HashMap _confPerHost
           
protected static HashMap _confTimePerHost
          Remember the time of the zpad.conf file.
 
Constructor Summary
ZpadConfCache()
           
 
Method Summary
protected static Properties _fillCache(String host)
           
static Properties ensureConfLoaded(String host)
           
static Properties get(String host)
           
static Properties getUserConf(javax.servlet.http.HttpServletRequest request, UserInfo userInfo)
          A conf file can be overruled by a user's personal .conf file.
static long lastModified(String host)
          Return the last modification time of the zpad.conf file.
static void refresh(String host)
           
static void setUserConf(javax.servlet.http.HttpServletRequest request, UserInfo userInfo, Properties userConf)
          A conf file can be overruled by a user's personal .conf file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_confPerHost

protected static HashMap _confPerHost

_confTimePerHost

protected static HashMap _confTimePerHost
Remember the time of the zpad.conf file. A change of the zpad.conf file will influence *all* lastModified's of Zpad generated files.

Constructor Detail

ZpadConfCache

public ZpadConfCache()
Method Detail

refresh

public static void refresh(String host)

ensureConfLoaded

public static Properties ensureConfLoaded(String host)

get

public static Properties get(String host)

_fillCache

protected static Properties _fillCache(String host)

getUserConf

public static Properties getUserConf(javax.servlet.http.HttpServletRequest request,
                                     UserInfo userInfo)
A conf file can be overruled by a user's personal .conf file. (Which of course can be set only by the system.)


setUserConf

public static void setUserConf(javax.servlet.http.HttpServletRequest request,
                               UserInfo userInfo,
                               Properties userConf)
A conf file can be overruled by a user's personal .conf file. (Which of course can be set only by the system.)


lastModified

public static long lastModified(String host)
Return the last modification time of the zpad.conf file. If this file has changed, a LOT of Zpad generated files are not valid any more. Therefore, ALL Zpad generated files are considered by be modified too.



Copyright © 1997-2008 Aduna. All Rights Reserved.