org.mycore.frontend
Class MCRWebsiteWriteProtection
java.lang.Object
org.mycore.frontend.MCRWebsiteWriteProtection
public final class MCRWebsiteWriteProtection
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MCR_CONFIG
static MCRConfiguration MCR_CONFIG
MCRWebsiteWriteProtection
public MCRWebsiteWriteProtection()
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