Class RoleService
java.lang.Object
org.odpi.openmetadata.userauthn.auth.RoleService
Sets up user roles.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionextractUserAppRoles
(Collection<String> userRoles) getVisibleComponents
(Collection<String> roles) Return the visible components for the supplied roles.
-
Constructor Details
-
RoleService
public RoleService()
-
-
Method Details
-
extractUserAppRoles
- Parameters:
userRoles
- collection of roles of user- Returns:
- the intersection between all user roles and roles used for the application
-
getVisibleComponents
Return the visible components for the supplied roles.- Parameters:
roles
- list of roles- Returns:
- set of visible components for the supplied roles
-