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
FieldsModifier and TypeFieldDescriptionprotected static final org.apache.commons.logging.LogThe static log object for this class.Additional parameters. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CmsObjectinitCmsObjectFromSession(javax.servlet.http.HttpServletRequest request) Initializes a new cms object from the session data of the request.protected CmsObjectregisterSession(javax.servlet.http.HttpServletRequest request, CmsObject cms) Registers the current session with OpenCms.voidsetParameters(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, waitMethods 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_CmsAuthorizationHandlerSets parameters which can be configured additionally for an authorization handler.- Specified by:
setParametersin 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,
nullis 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
-