java.lang.Object
org.odpi.openmetadata.userinterface.uichassis.springboot.service.ComponentService

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

    • ComponentService

      public ComponentService()
  • Method Details

    • getVisibleComponents

      public Map<String,List<String>> getVisibleComponents()
    • 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