Class RoleService

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

@Service public class RoleService extends Object
Sets up user roles.
  • Constructor Details

    • RoleService

      public RoleService()
  • Method Details

    • extractUserAppRoles

      public Collection<String> extractUserAppRoles(Collection<String> userRoles)
      Parameters:
      userRoles - collection of roles of user
      Returns:
      the intersection between all user roles and roles used for the application
    • getVisibleComponents

      public Set<String> getVisibleComponents(Collection<String> roles)
      Return the visible components for the supplied roles.
      Parameters:
      roles - list of roles
      Returns:
      set of visible components for the supplied roles