com.gentics.api.portalnode.security
Interface AccessControl


public interface AccessControl

Interface for implementation of access control for all parts of the Portal (including the initialization). When configured in the servlet init parameter "accesscontrol.class", an instance of this class is instantiated and used for every access of the PortalServlet's methods GenericServlet.init(), HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse) and GenericServlet.destroy(). When the secured servlet is destroyed, the access control instance is destroyed itself, by calling the destroy() method.


Method Summary
 void destroy()
          Destroy the access control instance, free all resources.
 void init(javax.servlet.ServletConfig config)
          Initialize the access control instance.
 java.lang.Object runPrivileged(java.security.PrivilegedAction action, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Run the given action with the necessary privileges.
 

Method Detail

init

void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Initialize the access control instance. This is done first when the PortalServlet is initialized. When this method throws an exception, the servlet initialization itself will fail with this exception.

Parameters:
config - servlet configuration
Throws:
javax.servlet.ServletException

runPrivileged

java.lang.Object runPrivileged(java.security.PrivilegedAction action,
                               javax.servlet.http.HttpServletRequest request,
                               javax.servlet.http.HttpServletResponse response)
                               throws javax.servlet.ServletException
Run the given action with the necessary privileges. This will include everything done by the portal during

Parameters:
action - privileged action
request - servlet request, when a request is handled, null for the initialization
response - servlet response, when a request is handled, null for the initialization
Returns:
object that was returned by the privileged action
Throws:
javax.servlet.ServletException

destroy

void destroy()
Destroy the access control instance, free all resources. This method is called from the method GenericServlet.destroy().



Copyright © 2013 Gentics Software GmbH. All Rights Reserved.