org.opencms.main
Class A_CmsAuthorizationHandler

java.lang.Object
  extended by org.opencms.main.A_CmsAuthorizationHandler
All Implemented Interfaces:
I_CmsAuthorizationHandler
Direct Known Subclasses:
CmsDefaultAuthorizationHandler

public abstract class A_CmsAuthorizationHandler
extends java.lang.Object
implements I_CmsAuthorizationHandler

Abstract class to grant the needed access to the session manager.

Since:
6.5.4
Version:
$Revision: 1.8 $
Author:
Michael Moossen, Carsten Weinholz

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.opencms.security.I_CmsAuthorizationHandler
I_CmsAuthorizationHandler.I_PrivilegedLoginAction
 
Field Summary
protected static org.apache.commons.logging.Log LOG
          The static log object for this class.
protected  java.util.Map m_parameters
          Additional parameters.
 
Constructor Summary
A_CmsAuthorizationHandler()
           
 
Method Summary
protected  CmsObject initCmsObjectFromSession(javax.servlet.http.HttpServletRequest request)
          Initializes a new cms object from the session data of the request.
protected  CmsObject registerSession(javax.servlet.http.HttpServletRequest request, CmsObject cms)
          Registers the current session with OpenCms.
 void setParameters(java.util.Map parameters)
          Sets parameters which can be configured additionally for an authorization handler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opencms.security.I_CmsAuthorizationHandler
getLoginFormURL, initCmsObject, initCmsObject, initCmsObject, requestAuthorization
 

Field Detail

LOG

protected static final org.apache.commons.logging.Log LOG
The static log object for this class.


m_parameters

protected java.util.Map m_parameters
Additional parameters.

Constructor Detail

A_CmsAuthorizationHandler

public A_CmsAuthorizationHandler()
Method Detail

initCmsObjectFromSession

protected CmsObject initCmsObjectFromSession(javax.servlet.http.HttpServletRequest request)
                                      throws CmsException
Initializes a new cms object from the session data of the request.

If no session data is found, null is returned.

Parameters:
request - the request
Returns:
the new initialized cms object
Throws:
CmsException - if something goes wrong

registerSession

protected CmsObject registerSession(javax.servlet.http.HttpServletRequest request,
                                    CmsObject cms)
                             throws CmsException
Registers the current session with OpenCms.

Parameters:
request - the current request
cms - the cms object to register
Returns:
the updated cms context
Throws:
CmsException - if something goes wrong

setParameters

public void setParameters(java.util.Map parameters)
Description copied from interface: I_CmsAuthorizationHandler
Sets parameters which can be configured additionally for an authorization handler.

Specified by:
setParameters in interface I_CmsAuthorizationHandler
Parameters:
parameters - the map of parameters
See Also:
I_CmsAuthorizationHandler.setParameters(java.util.Map)