Interface UserDefinitionAuthoritiesProvider

  • All Known Implementing Classes:
    UserDefinitionAuthoritiesProviderImpl

    public interface UserDefinitionAuthoritiesProvider
    A custom provider of GrantedAuthority based on an id from a user definition.
    Author:
    Filip Hrisafov
    • Method Detail

      • findGrantedAuthorities

        @Deprecated
        java.util.Collection<? extends org.springframework.security.core.GrantedAuthority> findGrantedAuthorities​(java.lang.String userDefinitionId)
        All the authorities for the given userDefinitionId
        Parameters:
        userDefinitionId - the id of the user definition for which we need to fetch authorities
        Returns:
        the granted authorities for the given userDefinitionId
      • findGrantedAuthorities

        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
        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