info.magnolia.cms.security
Class Lock

java.lang.Object
  extended by info.magnolia.cms.security.Lock

public final class Lock
extends Object

Used to lock a session or the system. Currently checked in the URISecurityFilter. Should only be used with care.

Version:
$Revision: 41137 $ ($Author: gjoseph $)

Method Summary
static boolean isSessionLocked(javax.servlet.http.HttpServletRequest request)
          Returns true if this session is locked.
static boolean isSystemLocked()
          Return true if system is locked.
static void resetSessionLock(javax.servlet.http.HttpServletRequest request)
          Reset session lock.
static void resetSystemLock()
          Reset system wide lock.
static void setSessionLock(javax.servlet.http.HttpServletRequest request)
          Set session based lock.
static void setSystemLock()
          Set system wide lock.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setSessionLock

public static void setSessionLock(javax.servlet.http.HttpServletRequest request)
Set session based lock.

Parameters:
request -

isSessionLocked

public static boolean isSessionLocked(javax.servlet.http.HttpServletRequest request)
Returns true if this session is locked.

Parameters:
request -
Returns:
a boolean

resetSessionLock

public static void resetSessionLock(javax.servlet.http.HttpServletRequest request)
Reset session lock.

Parameters:
request -

setSystemLock

public static void setSystemLock()
Set system wide lock.


resetSystemLock

public static void resetSystemLock()
Reset system wide lock.


isSystemLocked

public static boolean isSystemLocked()
Return true if system is locked.

Returns:
a boolean


Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.