org.chorem.pollen.ui.security
Class AbstractPollenAuthorization

java.lang.Object
  extended by org.apache.shiro.web.servlet.ServletContextSupport
      extended by org.apache.shiro.web.servlet.AbstractFilter
          extended by org.apache.shiro.web.servlet.NameableFilter
              extended by org.apache.shiro.web.servlet.OncePerRequestFilter
                  extended by org.apache.shiro.web.servlet.AdviceFilter
                      extended by org.apache.shiro.web.filter.PathMatchingFilter
                          extended by org.apache.shiro.web.filter.AccessControlFilter
                              extended by org.apache.shiro.web.filter.authz.AuthorizationFilter
                                  extended by org.chorem.pollen.ui.security.AbstractPollenAuthorization
All Implemented Interfaces:
javax.servlet.Filter, org.apache.shiro.util.Nameable, org.apache.shiro.web.filter.PathConfigProcessor
Direct Known Subclasses:
AdminUserRequired, PollAccessRequired, PollCreatorRequired, PollRequired, ResultAccessRequired

public abstract class AbstractPollenAuthorization
extends org.apache.shiro.web.filter.authz.AuthorizationFilter


Field Summary
static Pattern URI_PATTERN
          Pattern to detects uri from a pollen url : group 1 is action namespace group 2 is action name group 3 is pollUri group 4 is poll page (optional) group 5 is method (optional)
 
Fields inherited from class org.apache.shiro.web.filter.AccessControlFilter
DEFAULT_LOGIN_URL, GET_METHOD, POST_METHOD
 
Fields inherited from class org.apache.shiro.web.filter.PathMatchingFilter
appliedPaths, pathMatcher
 
Fields inherited from class org.apache.shiro.web.servlet.OncePerRequestFilter
ALREADY_FILTERED_SUFFIX
 
Fields inherited from class org.apache.shiro.web.servlet.AbstractFilter
filterConfig
 
Constructor Summary
protected AbstractPollenAuthorization()
           
 
Method Summary
protected  UserAccount getPollenUSerAccount(javax.servlet.ServletRequest request)
           
protected  PollUri getPollUri(javax.servlet.ServletRequest request)
           
protected  PollenServiceContext getServiceContext(javax.servlet.ServletRequest request)
           
 javax.servlet.ServletContext getServletContext()
           
protected  boolean onAccessDenied(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
           
 
Methods inherited from class org.apache.shiro.web.filter.authz.AuthorizationFilter
getUnauthorizedUrl, setUnauthorizedUrl
 
Methods inherited from class org.apache.shiro.web.filter.AccessControlFilter
getLoginUrl, getSubject, isAccessAllowed, isLoginRequest, onAccessDenied, onPreHandle, redirectToLogin, saveRequest, saveRequestAndRedirectToLogin, setLoginUrl
 
Methods inherited from class org.apache.shiro.web.filter.PathMatchingFilter
getPathWithinApplication, isEnabled, pathsMatch, pathsMatch, preHandle, processPathConfig
 
Methods inherited from class org.apache.shiro.web.servlet.AdviceFilter
afterCompletion, cleanup, doFilterInternal, executeChain, postHandle
 
Methods inherited from class org.apache.shiro.web.servlet.OncePerRequestFilter
doFilter, getAlreadyFilteredAttributeName, isEnabled, isEnabled, setEnabled, shouldNotFilter
 
Methods inherited from class org.apache.shiro.web.servlet.NameableFilter
getName, setName, toStringBuilder
 
Methods inherited from class org.apache.shiro.web.servlet.AbstractFilter
destroy, getFilterConfig, getInitParam, init, onFilterConfigSet, setFilterConfig
 
Methods inherited from class org.apache.shiro.web.servlet.ServletContextSupport
getContextAttribute, getContextInitParam, removeContextAttribute, setContextAttribute, setServletContext, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

URI_PATTERN

public static final Pattern URI_PATTERN
Pattern to detects uri from a pollen url : group 1 is action namespace group 2 is action name group 3 is pollUri group 4 is poll page (optional) group 5 is method (optional)

Constructor Detail

AbstractPollenAuthorization

protected AbstractPollenAuthorization()
Method Detail

getServletContext

public javax.servlet.ServletContext getServletContext()
Overrides:
getServletContext in class org.apache.shiro.web.servlet.ServletContextSupport

getPollUri

protected PollUri getPollUri(javax.servlet.ServletRequest request)

getPollenUSerAccount

protected UserAccount getPollenUSerAccount(javax.servlet.ServletRequest request)

getServiceContext

protected PollenServiceContext getServiceContext(javax.servlet.ServletRequest request)

onAccessDenied

protected final boolean onAccessDenied(javax.servlet.ServletRequest request,
                                       javax.servlet.ServletResponse response)
                                throws IOException
Overrides:
onAccessDenied in class org.apache.shiro.web.filter.authz.AuthorizationFilter
Throws:
IOException


Copyright © 2009-2012 CodeLutin. All Rights Reserved.