Class ComponentService


  • @Service
    @ConfigurationProperties(prefix="role")
    public class ComponentService
    extends Object
    This component is responsible to provide model used by UI to show/hide components
    • Constructor Detail

      • ComponentService

        public ComponentService()
    • Method Detail

      • getVisibleComponentsForRoles

        public Set<String> getVisibleComponentsForRoles​(Collection<String> roles)
        Parameters:
        roles - the list of roles
        Returns:
        a set of components to be displayed
      • getAppRoles

        public final Set<String> getAppRoles()
        Returns:
        the set of roles used by the app this is configuration of the application.properties with role.visibleComponents.[ROLE] values