Class AbstractAclVoter

  • All Implemented Interfaces:
    AccessDecisionVoter<org.aopalliance.intercept.MethodInvocation>
    Direct Known Subclasses:
    AclEntryVoter

    public abstract class AbstractAclVoter
    extends java.lang.Object
    implements AccessDecisionVoter<org.aopalliance.intercept.MethodInvocation>
    Provides helper methods for writing domain object ACL voters. Not bound to any particular ACL system.
    • Constructor Detail

      • AbstractAclVoter

        public AbstractAclVoter()
    • Method Detail

      • getDomainObjectInstance

        protected java.lang.Object getDomainObjectInstance​(org.aopalliance.intercept.MethodInvocation invocation)
      • getProcessDomainObjectClass

        public java.lang.Class<?> getProcessDomainObjectClass()
      • setProcessDomainObjectClass

        public void setProcessDomainObjectClass​(java.lang.Class<?> processDomainObjectClass)
      • supports

        public boolean supports​(java.lang.Class<?> clazz)
        This implementation supports only MethodSecurityInterceptor, because it queries the presented MethodInvocation.
        Specified by:
        supports in interface AccessDecisionVoter<org.aopalliance.intercept.MethodInvocation>
        Parameters:
        clazz - the secure object
        Returns:
        true if the secure object is MethodInvocation, false otherwise