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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the set of roles used by the runtime.Retrieve the visible components.List the UI components that the supplied roles can use.
-
Constructor Details
-
ComponentService
public ComponentService()
-
-
Method Details
-
getVisibleComponents
Retrieve the visible components.- Returns:
- map of user role to visible components
-
getVisibleComponentsForRoles
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
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
-