Uses of Class
hudson.model.User
-
Packages that use User Package Description hudson hudson.console Beef up the plain text console output by adding HTML markup.hudson.model Core object model that are bound to URLs via stapler, rooted atJenkins
.hudson.scm Jenkins's interface with source code management systems.hudson.search QuickSilver-like search/jump capability for better navigation around Jenkins.hudson.security Security-related code.hudson.slaves Code related to agents.hudson.tasks jenkins.model jenkins.model.experimentalflags jenkins.scm jenkins.security jenkins.security.apitoken jenkins.security.seed -
-
Uses of User in hudson
Methods in hudson with parameters of type User Modifier and Type Method Description static String
Functions. getAvatar(User user, String avatarSize)
Returns an avatar image URL for the specified user and preferred image sizeString
Functions. getUserAvatar(User user, String avatarSize)
Deprecated.as of 1.451 UseFunctions.getAvatar(hudson.model.User, java.lang.String)
-
Uses of User in hudson.console
Methods in hudson.console with parameters of type User Modifier and Type Method Description static String
ModelHyperlinkNote. encodeTo(User u)
static String
ModelHyperlinkNote. encodeTo(User u, String text)
-
Uses of User in hudson.model
Fields in hudson.model declared as User Modifier and Type Field Description protected User
UserProperty. user
The user object that owns this property.Methods in hudson.model that return User Modifier and Type Method Description static User
User. current()
Gets theUser
object representing the currently logged-in user, or null if the current user is anonymous.static User
User. get(String idOrFullName)
Deprecated.This method is deprecated, because it causes unexpectedUser
creation by API usage code and causes performance degradation of used to retrieve users by ID.static User
User. get(String idOrFullName, boolean create)
Deprecated.static User
User. get(String idOrFullName, boolean create, Map context)
Gets theUser
object by its id or full name.static User
User. get(Authentication a)
Deprecated.static User
User. get2(org.springframework.security.core.Authentication a)
Gets theUser
object representing the suppliedAuthentication
ornull
if the suppliedAuthentication
is either anonymous ornull
static User
User. getById(String id, boolean create)
Gets theUser
object by itsid
static User
User. getOrCreateByIdOrFullName(String idOrFullName)
Get the user by ID or Full Name.static User
User. getUnknown()
Gets the fallback "unknown" user instance.User
MyViewsProperty. getUser()
User
View.UserInfo. getUser()
Methods in hudson.model that return types with arguments of type User Modifier and Type Method Description Set<User>
AbstractBuild. calculateCulprits()
static Collection<User>
User. getAll()
Gets all the users.Set<User>
AbstractBuild. getCulprits()
Methods in hudson.model with parameters of type User Modifier and Type Method Description int
User. compareTo(User that)
Collection<? extends Action>
TransientUserActionFactory. createFor(User target)
Creates actions for the given user.ListBoxModel
TimeZoneProperty.DescriptorImpl. doFillTimeZoneNameItems(User user)
boolean
AbstractProject. hasParticipant(User user)
Returns true if this user has made a commit to this project.UserProperty
MyViewsProperty.DescriptorImpl. newInstance(User user)
UserProperty
PaneStatusProperties.DescriptorImpl. newInstance(User user)
UserProperty
TimeZoneProperty.DescriptorImpl. newInstance(User user)
abstract UserProperty
UserPropertyDescriptor. newInstance(User user)
Creates a default instance ofUserProperty
to be associated withUser
object that wasn't created from a persisted XML data.protected void
UserProperty. setUser(User u)
-
Uses of User in hudson.scm
Methods in hudson.scm that return User Modifier and Type Method Description abstract User
ChangeLogSet.Entry. getAuthor()
The user who made this change. -
Uses of User in hudson.search
Methods in hudson.search with parameters of type User Modifier and Type Method Description UserProperty
UserSearchProperty.DescriptorImpl. newInstance(User user)
-
Uses of User in hudson.security
Methods in hudson.security that return User Modifier and Type Method Description User
HudsonPrivateSecurityRealm. createAccount(String userName, String password)
Creates a new user account by registering a password to the user.User
HudsonPrivateSecurityRealm. createAccountByAdmin(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, String addUserView, String successView)
Creates a user account.User
HudsonPrivateSecurityRealm. createAccountFromSetupWizard(org.kohsuke.stapler.StaplerRequest req)
Creates a user account.User
HudsonPrivateSecurityRealm. createAccountWithHashedPassword(String userName, String hashedPassword)
Creates a new user account by registering a JBCrypt Hashed password with the user.User
HudsonPrivateSecurityRealm. doCreateAccount(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
Creates an user account.User
HudsonPrivateSecurityRealm. doCreateAccountWithFederatedIdentity(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
Creates an account and associates that with the given identity.User
HudsonPrivateSecurityRealm. getUser(String id)
This is to map users under the security realm URL.User
FederatedLoginService.FederatedIdentity. locateUser()
Locates the user who owns this identifier.User
FederatedLoginService.FederatedIdentity. signin()
Call this method to authenticate the user when you confirmed (via your protocol specific work) that the current HTTP request indeed owns this identifier.Methods in hudson.security that return types with arguments of type User Modifier and Type Method Description List<User>
HudsonPrivateSecurityRealm. getAllUsers()
All users who can login to the system.Methods in hudson.security with parameters of type User Modifier and Type Method Description abstract boolean
PermissionAdder. add(AuthorizationStrategy strategy, User user, Permission perm)
Called to try to give a user global permission.void
FederatedLoginService.FederatedIdentity. addTo(User u)
Adds this identity to the specified user.static ACLContext
ACL. as(User user)
Changes theAuthentication
associated with the current thread to the specified one and returns anAutoCloseable
that restores the previous security context.ACL
AuthorizationStrategy. getACL(User user)
Implementation can choose to provide different ACL per user.UserProperty
HudsonPrivateSecurityRealm.Details.DescriptorImpl. newInstance(User user)
-
Uses of User in hudson.slaves
Methods in hudson.slaves that return User Modifier and Type Method Description User
OfflineCause.UserCause. getUser()
Constructors in hudson.slaves with parameters of type User Constructor Description UserCause(User user, String message)
-
Uses of User in hudson.tasks
Methods in hudson.tasks with parameters of type User Modifier and Type Method Description abstract String
UserAvatarResolver. findAvatarFor(User u, int width, int height)
Finds an avatar image URL string for a user.abstract String
UserNameResolver. findNameFor(User u)
Finds full name of the given user.static String
UserAvatarResolver. resolve(User u, String avatarSize)
Resolve an avatar image URL string for the user.static String
UserNameResolver. resolve(User u)
static String
UserAvatarResolver. resolveOrNull(User u, String avatarSize)
LikeUserAvatarResolver.resolve(hudson.model.User, java.lang.String)
but returns null rather than a fallback URL in case there is no special avatar. -
Uses of User in jenkins.model
Methods in jenkins.model that return User Modifier and Type Method Description User
Jenkins. getMe()
Exposes the current user to/me
URL.User
CauseOfInterruption.UserInterruption. getUser()
Gets user, who caused the interruption.User
Jenkins. getUser(String name)
Gets the user of the given name.User
CauseOfInterruption.UserInterruption. getUserOrNull()
Gets user, who caused the interruption.Constructors in jenkins.model with parameters of type User Constructor Description UserInterruption(User user)
-
Uses of User in jenkins.model.experimentalflags
Methods in jenkins.model.experimentalflags with parameters of type User Modifier and Type Method Description T
UserExperimentalFlag. getFlagValue(User user)
UserProperty
UserExperimentalFlagsProperty.DescriptorImpl. newInstance(User user)
-
Uses of User in jenkins.scm
Methods in jenkins.scm that return types with arguments of type User Modifier and Type Method Description default Set<User>
RunWithSCM. calculateCulprits()
Method used for actually calculating the culprits from scratch.default Set<User>
RunWithSCM. getCulprits()
List of users who committed a change since the last non-broken build till now.Methods in jenkins.scm with parameters of type User Modifier and Type Method Description default boolean
RunWithSCM. hasParticipant(User user)
Returns true if this user has made a commit to this build. -
Uses of User in jenkins.security
Methods in jenkins.security that return User Modifier and Type Method Description static User
BasicApiTokenHelper. isConnectingUsingApiToken(String username, String tokenValue)
Methods in jenkins.security with parameters of type User Modifier and Type Method Description org.kohsuke.stapler.HttpResponse
ApiTokenProperty.DescriptorImpl. doAddFixedToken(User u, String newTokenName, String newTokenPlainValue)
This method is dangerous and should not be used without caution.org.kohsuke.stapler.HttpResponse
ApiTokenProperty.DescriptorImpl. doChangeToken(User u, org.kohsuke.stapler.StaplerResponse rsp)
Deprecated.org.kohsuke.stapler.HttpResponse
ApiTokenProperty.DescriptorImpl. doGenerateNewToken(User u, String newTokenName)
org.kohsuke.stapler.HttpResponse
ApiTokenProperty.DescriptorImpl. doRename(User u, String tokenUuid, String newName)
org.kohsuke.stapler.HttpResponse
ApiTokenProperty.DescriptorImpl. doRevoke(User u, String tokenUuid)
org.kohsuke.stapler.HttpResponse
ApiTokenProperty.DescriptorImpl. doRevokeAll(User u)
org.kohsuke.stapler.HttpResponse
ApiTokenProperty.DescriptorImpl. doRevokeAllExcept(User u, String tokenUuid)
boolean
ApiTokenProperty.DescriptorImpl. hasCurrentUserRightToGenerateNewToken(User propertyOwner)
boolean
ApiTokenProperty.DescriptorImpl. mustDisplayLegacyApiToken(User propertyOwner)
ApiTokenProperty
ApiTokenProperty.DescriptorImpl. newInstance(User user)
New approach: API Token are generated only when a user request a new one.UserProperty
LastGrantedAuthoritiesProperty.DescriptorImpl. newInstance(User user)
protected void
ApiTokenProperty. setUser(User u)
-
Uses of User in jenkins.security.apitoken
Methods in jenkins.security.apitoken that return types with arguments of type User Modifier and Type Method Description List<User>
LegacyApiTokenAdministrativeMonitor. getImpactedUserList()
Methods in jenkins.security.apitoken with parameters of type User Modifier and Type Method Description ApiTokenProperty.TokenInfoAndStats
LegacyApiTokenAdministrativeMonitor. getLegacyStatsOf(User user, ApiTokenStore.HashedToken legacyToken)
ApiTokenStore.HashedToken
LegacyApiTokenAdministrativeMonitor. getLegacyTokenOf(User user)
boolean
LegacyApiTokenAdministrativeMonitor. hasFreshToken(User user, ApiTokenProperty.TokenInfoAndStats legacyStats)
Determine if the user has at least one "new" token that was created after the last use of the legacy tokenboolean
LegacyApiTokenAdministrativeMonitor. hasMoreRecentlyUsedToken(User user, ApiTokenProperty.TokenInfoAndStats legacyStats)
Determine if the user has at least one "new" token that was used after the last use of the legacy tokenstatic ApiTokenStats
ApiTokenStats. load(User user)
Loads the data from the user folder into the new object. -
Uses of User in jenkins.security.seed
Methods in jenkins.security.seed with parameters of type User Modifier and Type Method Description org.kohsuke.stapler.HttpResponse
UserSeedProperty.DescriptorImpl. doRenewSessionSeed(User u)
static void
UserSeedChangeListener. fireUserSeedRenewed(User user)
Will notify all the registered listeners about the eventboolean
UserSeedProperty.DescriptorImpl. isCurrentUser(User target)
UserSeedProperty
UserSeedProperty.DescriptorImpl. newInstance(User user)
abstract void
UserSeedChangeListener. onUserSeedRenewed(User user)
Called after a seed was changed but before the user is saved.
-