info.magnolia.cms.security
Class ContentSecurityFilter

java.lang.Object
  extended by info.magnolia.cms.filters.AbstractMgnlFilter
      extended by info.magnolia.cms.security.BaseSecurityFilter
          extended by info.magnolia.cms.security.ContentSecurityFilter
All Implemented Interfaces:
MgnlFilter, javax.servlet.Filter

public class ContentSecurityFilter
extends BaseSecurityFilter

Used to check if the user can read the requested content. Also sets appropriate status on the response in case of unallowed access. This filter normally resides behind the cache filter.

Version:
$Id$

Constructor Summary
ContentSecurityFilter()
           
 
Method Summary
 boolean isAllowed(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Implementations need to return false if the request can not be proceeded with, but also need to set an appropriate error code.
 
Methods inherited from class info.magnolia.cms.security.BaseSecurityFilter
doAuthenticate, doFilter
 
Methods inherited from class info.magnolia.cms.filters.AbstractMgnlFilter
acceptsEncoding, acceptsGzipEncoding, addAndVerifyHeader, addBypass, addMapping, bypasses, destroy, doFilter, getBypasses, getDispatching, getMapping, getMappings, getName, headerContains, init, isEnabled, mapsTo, matches, matchesDispatching, setBypasses, setDispatching, setEnabled, setMappings, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentSecurityFilter

public ContentSecurityFilter()
Method Detail

isAllowed

public boolean isAllowed(javax.servlet.http.HttpServletRequest request,
                         javax.servlet.http.HttpServletResponse response)
                  throws IOException
Description copied from class: BaseSecurityFilter
Implementations need to return false if the request can not be proceeded with, but also need to set an appropriate error code.

Specified by:
isAllowed in class BaseSecurityFilter
Throws:
IOException


Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.