Class LoginPermissionVoter

  • All Implemented Interfaces:
    org.springframework.security.access.AccessDecisionVoter<java.lang.Object>

    public class LoginPermissionVoter
    extends java.lang.Object
    implements org.springframework.security.access.AccessDecisionVoter<java.lang.Object>
    • Field Summary

      • Fields inherited from interface org.springframework.security.access.AccessDecisionVoter

        ACCESS_ABSTAIN, ACCESS_DENIED, ACCESS_GRANTED
    • Constructor Summary

      Constructors 
      Constructor Description
      LoginPermissionVoter​(UserProfileService userProfileService, com.xebialabs.xlrelease.service.UserLastActiveActorService userLastActiveActorService)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean supports​(java.lang.Class<?> clazz)  
      boolean supports​(org.springframework.security.access.ConfigAttribute attribute)  
      int vote​(org.springframework.security.core.Authentication authentication, java.lang.Object object, java.util.Collection<org.springframework.security.access.ConfigAttribute> attributes)  
      • Methods inherited from class java.lang.Object

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

      • LoginPermissionVoter

        public LoginPermissionVoter​(UserProfileService userProfileService,
                                    com.xebialabs.xlrelease.service.UserLastActiveActorService userLastActiveActorService)
    • Method Detail

      • supports

        public boolean supports​(org.springframework.security.access.ConfigAttribute attribute)
        Specified by:
        supports in interface org.springframework.security.access.AccessDecisionVoter<java.lang.Object>
      • supports

        public boolean supports​(java.lang.Class<?> clazz)
        Specified by:
        supports in interface org.springframework.security.access.AccessDecisionVoter<java.lang.Object>
      • vote

        public int vote​(org.springframework.security.core.Authentication authentication,
                        java.lang.Object object,
                        java.util.Collection<org.springframework.security.access.ConfigAttribute> attributes)
        Specified by:
        vote in interface org.springframework.security.access.AccessDecisionVoter<java.lang.Object>