Package org.mycore.frontend
Class MCRWebsiteWriteProtection
java.lang.Object
org.mycore.frontend.MCRWebsiteWriteProtection
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
activate()
static void
static void
static Document
static boolean
isActive()
Checks if website protection is currently active.static boolean
printInfoPageIfNoAccess
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String baseURL)
-
Method Details
-
isActive
public static boolean isActive()Checks if website protection is currently active. If current user is super user this method always returns false.- Returns:
- true if write access is currently active, false if not
-
getMessage
- Throws:
JDOMException
IOException
-
activate
public static void activate() -
activate
-
deactivate
public static void deactivate() -
printInfoPageIfNoAccess
public static boolean printInfoPageIfNoAccess(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String baseURL) throws IOException - Throws:
IOException
-