Class ComponentService

java.lang.Object
org.odpi.openmetadata.userauthn.auth.ComponentService

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

    • ComponentService

      public ComponentService()
  • Method Details

    • getVisibleComponents

      public Map<String,List<String>> getVisibleComponents()
      Retrieve the visible components.
      Returns:
      map of user role to visible components
    • getVisibleComponentsForRoles

      public Set<String> getVisibleComponentsForRoles(Collection<String> roles)
      List the UI components that the supplied roles can use.
      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 runtime. This is configured in the application.properties with role.visibleComponents.[ROLE] values
      Returns:
      list of string names