Class AclEntryAfterInvocationProvider

java.lang.Object
org.springframework.security.acls.afterinvocation.AbstractAclProvider
org.springframework.security.acls.afterinvocation.AclEntryAfterInvocationProvider
ubic.gemma.core.security.acl.afterinvocation.AclEntryAfterInvocationProvider
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.MessageSourceAware, org.springframework.security.access.AfterInvocationProvider

public class AclEntryAfterInvocationProvider extends org.springframework.security.acls.afterinvocation.AclEntryAfterInvocationProvider
Overrides default behaviour by returning null, rather than throwing an access denied exception
Version:
$Id: AclEntryAfterInvocationQuietProvider.java,v 1.3 2013/09/14 16:56:03 paul Exp $
Author:
paul
  • Field Summary

    Fields inherited from class org.springframework.security.acls.afterinvocation.AclEntryAfterInvocationProvider

    logger, messages

    Fields inherited from class org.springframework.security.acls.afterinvocation.AbstractAclProvider

    aclService, objectIdentityRetrievalStrategy, processConfigAttribute, processDomainObjectClass, requirePermission, sidRetrievalStrategy
  • Constructor Summary

    Constructors
    Constructor
    Description
    AclEntryAfterInvocationProvider(org.springframework.security.acls.model.AclService aclService, List<org.springframework.security.acls.model.Permission> requirePermission)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    decide(org.springframework.security.core.Authentication authentication, Object object, Collection<org.springframework.security.access.ConfigAttribute> config, Object returnedObject)
     
    void
    setQuiet(boolean quiet)
    If set to true, this provider will return null rather than throwing an AccessDeniedException.
    boolean
    supports(org.springframework.security.access.ConfigAttribute attribute)
     

    Methods inherited from class org.springframework.security.acls.afterinvocation.AclEntryAfterInvocationProvider

    setMessageSource

    Methods inherited from class org.springframework.security.acls.afterinvocation.AbstractAclProvider

    getProcessDomainObjectClass, hasPermission, setObjectIdentityRetrievalStrategy, setProcessConfigAttribute, setProcessDomainObjectClass, setSidRetrievalStrategy, supports

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AclEntryAfterInvocationProvider

      public AclEntryAfterInvocationProvider(org.springframework.security.acls.model.AclService aclService, List<org.springframework.security.acls.model.Permission> requirePermission)
  • Method Details

    • decide

      public Object decide(org.springframework.security.core.Authentication authentication, Object object, Collection<org.springframework.security.access.ConfigAttribute> config, Object returnedObject) throws org.springframework.security.access.AccessDeniedException
      Specified by:
      decide in interface org.springframework.security.access.AfterInvocationProvider
      Overrides:
      decide in class org.springframework.security.acls.afterinvocation.AclEntryAfterInvocationProvider
      Throws:
      org.springframework.security.access.AccessDeniedException
    • supports

      public boolean supports(org.springframework.security.access.ConfigAttribute attribute)
      Specified by:
      supports in interface org.springframework.security.access.AfterInvocationProvider
      Overrides:
      supports in class org.springframework.security.acls.afterinvocation.AbstractAclProvider
    • setQuiet

      public void setQuiet(boolean quiet)
      If set to true, this provider will return null rather than throwing an AccessDeniedException.

      To work, you must add the _QUIET suffix to the config attribute.