org.mycore.frontend
Class MCRWebsiteWriteProtection

java.lang.Object
  extended by org.mycore.frontend.MCRWebsiteWriteProtection

public final class MCRWebsiteWriteProtection
extends Object


Field Summary
(package private) static MCRConfiguration MCR_CONFIG
           
 
Constructor Summary
MCRWebsiteWriteProtection()
           
 
Method Summary
static void activate()
           
static void activate(String message)
           
static void deactivate()
           
static Document getMessage()
           
static boolean isActive()
          speed up the check
static boolean printInfoPageIfNoAccess(HttpServletRequest request, HttpServletResponse response, String baseURL)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MCR_CONFIG

static MCRConfiguration MCR_CONFIG
Constructor Detail

MCRWebsiteWriteProtection

public MCRWebsiteWriteProtection()
Method Detail

isActive

public static final boolean isActive()
speed up the check

Returns:
true if write access is currently active, false if not

getMessage

public static final Document getMessage()
                                 throws JDOMException,
                                        IOException
Throws:
JDOMException
IOException

activate

public static final void activate()

activate

public static final void activate(String message)

deactivate

public static final void deactivate()

printInfoPageIfNoAccess

public static final boolean printInfoPageIfNoAccess(HttpServletRequest request,
                                                    HttpServletResponse response,
                                                    String baseURL)
                                             throws IOException
Throws:
IOException