Class UserDefinitionAuthoritiesProviderImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.springframework.security.core.GrantedAuthority createAuthority​(java.lang.String allowedFeature)  
      java.util.Collection<? extends org.springframework.security.core.GrantedAuthority> findGrantedAuthorities​(java.lang.String userDefinitionId)
      All the authorities for the given userDefinitionId
      java.util.Collection<? extends org.springframework.security.core.GrantedAuthority> findGrantedAuthorities​(java.lang.String userDefinitionKey, java.lang.String tenantId)
      All the authorities for the given userDefinitionKey in the given tenantId
      • Methods inherited from class java.lang.Object

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

      • UserDefinitionAuthoritiesProviderImpl

        public UserDefinitionAuthoritiesProviderImpl​(UserDefinitionService userDefinitionService)
    • Method Detail

      • findGrantedAuthorities

        public java.util.Collection<? extends org.springframework.security.core.GrantedAuthority> findGrantedAuthorities​(java.lang.String userDefinitionId)
        Description copied from interface: UserDefinitionAuthoritiesProvider
        All the authorities for the given userDefinitionId
        Specified by:
        findGrantedAuthorities in interface UserDefinitionAuthoritiesProvider
        Parameters:
        userDefinitionId - the id of the user definition for which we need to fetch authorities
        Returns:
        the granted authorities for the given userDefinitionId
      • findGrantedAuthorities

        public java.util.Collection<? extends org.springframework.security.core.GrantedAuthority> findGrantedAuthorities​(java.lang.String userDefinitionKey,
                                                                                                                         java.lang.String tenantId)
        Description copied from interface: UserDefinitionAuthoritiesProvider
        All the authorities for the given userDefinitionKey in the given tenantId
        Specified by:
        findGrantedAuthorities in interface UserDefinitionAuthoritiesProvider
        Parameters:
        userDefinitionKey - the id of the user definition for which we need to fetch authorities
        tenantId - the tenant id in which the user definition should be located
        Returns:
        the granted authorities for the given userDefinitionKey
      • createAuthority

        protected org.springframework.security.core.GrantedAuthority createAuthority​(java.lang.String allowedFeature)