Package org.opencms.main
Class A_CmsAuthorizationHandler
java.lang.Object
org.opencms.main.A_CmsAuthorizationHandler
- All Implemented Interfaces:
I_CmsAuthorizationHandler
- Direct Known Subclasses:
CmsDefaultAuthorizationHandler
Abstract class to grant the needed access to the session manager.
- Since:
- 6.5.4
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opencms.security.I_CmsAuthorizationHandler
I_CmsAuthorizationHandler.I_PrivilegedLoginAction
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final org.apache.commons.logging.Log
The static log object for this class.Additional parameters. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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
(Map<String, String> 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 Details
-
LOG
The static log object for this class. -
m_parameters
Additional parameters.
-
-
Constructor Details
-
A_CmsAuthorizationHandler
public A_CmsAuthorizationHandler()
-
-
Method Details
-
setParameters
Description copied from interface:I_CmsAuthorizationHandler
Sets parameters which can be configured additionally for an authorization handler.- Specified by:
setParameters
in interfaceI_CmsAuthorizationHandler
- Parameters:
parameters
- the map of parameters- See Also:
-
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 requestcms
- the cms object to register- Returns:
- the updated cms context
- Throws:
CmsException
- if something goes wrong
-