Class UserGroupService

java.lang.Object
org.qubership.atp.auth.springbootstarter.services.UserGroupService

public class UserGroupService extends Object
  • Constructor Details

    • UserGroupService

      public UserGroupService(DataContextHolder<UUID> userIdContextHolder, UsersService usersService, DataContextHolder<Set<String>> userRolesContextHolder)
      UserGroupService component.
      Parameters:
      userIdContextHolder - - userIdContextHolder
      usersService - - usersProjectService
      userRolesContextHolder - - userRolesContextHolder
  • Method Details

    • getUserGroupByProjectId

      public Group getUserGroupByProjectId(UUID projectId)
      Return Group for currently authenticated user by project.
      Returns:
      Group
    • getUserGroupByProject

      public Group getUserGroupByProject(Project project)
      Return Group for currently authenticated user by project.
      Returns:
      Group
    • getUserId

      public Optional<UUID> getUserId()
      Return currently authenticated user.
      Returns:
      Optional