java.lang.Object
io.jenkins.blueocean.rest.model.Resource
io.jenkins.blueocean.rest.model.BlueUser
io.jenkins.blueocean.service.embedded.rest.UserImpl
All Implemented Interfaces:
io.jenkins.blueocean.rest.Reachable

public class UserImpl extends io.jenkins.blueocean.rest.model.BlueUser
BlueUser implementation backed by in-memory User
Author:
Kohsuke Kawaguchi, Vivek Pandey
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final User
     

    Fields inherited from class io.jenkins.blueocean.rest.model.BlueUser

    EMAIL, FAVORITES, FULL_NAME, ID
  • Constructor Summary

    Constructors
    Constructor
    Description
    UserImpl(io.jenkins.blueocean.rest.model.BlueOrganization organization, User user)
     
    UserImpl(io.jenkins.blueocean.rest.model.BlueOrganization organization, User user, io.jenkins.blueocean.rest.Reachable parent)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    Give plugins chance to handle this API route.
     
    io.jenkins.blueocean.rest.model.BlueFavoriteContainer
     
     
     
    io.jenkins.blueocean.rest.hal.Link
     
    io.jenkins.blueocean.rest.model.BlueUserPermission
     

    Methods inherited from class io.jenkins.blueocean.rest.model.Resource

    getLinks, getState

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • user

      protected final User user
  • Constructor Details

    • UserImpl

      public UserImpl(@NonNull io.jenkins.blueocean.rest.model.BlueOrganization organization, @NonNull User user, io.jenkins.blueocean.rest.Reachable parent)
    • UserImpl

      public UserImpl(@NonNull io.jenkins.blueocean.rest.model.BlueOrganization organization, @NonNull User user)
  • Method Details

    • getId

      public String getId()
      Specified by:
      getId in class io.jenkins.blueocean.rest.model.BlueUser
    • getFullName

      public String getFullName()
      Specified by:
      getFullName in class io.jenkins.blueocean.rest.model.BlueUser
    • getEmail

      public String getEmail()
      Specified by:
      getEmail in class io.jenkins.blueocean.rest.model.BlueUser
    • getAvatar

      public String getAvatar()
      Specified by:
      getAvatar in class io.jenkins.blueocean.rest.model.BlueUser
    • getFavorites

      public io.jenkins.blueocean.rest.model.BlueFavoriteContainer getFavorites()
      Specified by:
      getFavorites in class io.jenkins.blueocean.rest.model.BlueUser
    • getPermission

      public io.jenkins.blueocean.rest.model.BlueUserPermission getPermission()
      Specified by:
      getPermission in class io.jenkins.blueocean.rest.model.BlueUser
    • getLink

      public io.jenkins.blueocean.rest.hal.Link getLink()
    • getDynamic

      public Object getDynamic(String route)
      Give plugins chance to handle this API route.
      Parameters:
      route - URL path that needs handling. e.g. for requested url /rest/organizations/:id/users/:user/xyz, route param value will be 'xyz'
      Returns:
      stapler object that can handle give route. Could be null