org.opencms.main
Class A_CmsAuthorizationHandler

java.lang.Object
  extended byorg.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.4 $
Author:
Michael Moossen

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.
 
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
initCmsObject, initCmsObject
 

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