Class RMEntryVoter

  • All Implemented Interfaces:
    net.sf.acegisecurity.vote.AccessDecisionVoter, PolicyRegister, org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

    public class RMEntryVoter
    extends RMSecurityCommon
    implements net.sf.acegisecurity.vote.AccessDecisionVoter, org.springframework.beans.factory.InitializingBean, PolicyRegister
    Records managment entry voter.
    Author:
    Roy Wetherall, Andy Hind
    • Constructor Detail

      • RMEntryVoter

        public RMEntryVoter()
    • Method Detail

      • setCapabilityService

        public void setCapabilityService​(CapabilityService capabilityService)
        Parameters:
        capabilityService - capability service
      • setNamespacePrefixResolver

        public void setNamespacePrefixResolver​(org.alfresco.service.namespace.NamespacePrefixResolver nspr)
        Parameters:
        nspr - namespace prefix resolver
      • setTransactionalResourceHelper

        public void setTransactionalResourceHelper​(TransactionalResourceHelper transactionalResourceHelper)
        Parameters:
        transactionalResourceHelper - transactional resource helper
      • setAlfrescoTransactionSupport

        public void setAlfrescoTransactionSupport​(AlfrescoTransactionSupport alfrescoTransactionSupport)
        Parameters:
        alfrescoTransactionSupport - alfresco transaction support helper
      • setAuthenticationUtil

        public void setAuthenticationUtil​(AuthenticationUtil authenticationUtil)
        Parameters:
        authenticationUtil - authentication util
      • registerPolicy

        public void registerPolicy​(Policy policy)
        Register a policy the voter
        Specified by:
        registerPolicy in interface PolicyRegister
        Parameters:
        policy - policy
      • supports

        public boolean supports​(net.sf.acegisecurity.ConfigAttribute configAttribute)
        Specified by:
        supports in interface net.sf.acegisecurity.vote.AccessDecisionVoter
        See Also:
        AccessDecisionVoter.supports(net.sf.acegisecurity.ConfigAttribute)
      • supports

        public boolean supports​(Class clazz)
        Specified by:
        supports in interface net.sf.acegisecurity.vote.AccessDecisionVoter
        See Also:
        AccessDecisionVoter.supports(java.lang.Class)
      • vote

        public int vote​(net.sf.acegisecurity.Authentication authentication,
                        Object object,
                        net.sf.acegisecurity.ConfigAttributeDefinition config)
        Specified by:
        vote in interface net.sf.acegisecurity.vote.AccessDecisionVoter
        See Also:
        AccessDecisionVoter.vote(net.sf.acegisecurity.Authentication, java.lang.Object, net.sf.acegisecurity.ConfigAttributeDefinition)
      • afterPropertiesSet

        public void afterPropertiesSet()
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        See Also:
        InitializingBean.afterPropertiesSet()