Uses of Class
hudson.model.User
Packages that use User
Package
Description
Beef up the plain text console output by adding HTML markup.
Core object model that are bound to URLs via stapler, rooted at
Jenkins
.Jenkins's interface with source code management systems.
QuickSilver-like search/jump capability for better navigation around Jenkins.
Security-related code.
Code related to agents.
-
Uses of User in hudson
-
Uses of User in hudson.console
Methods in hudson.console with parameters of type User -
Uses of User in hudson.model
Fields in hudson.model declared as UserModifier and TypeFieldDescriptionprotected User
UserProperty.user
The user object that owns this property.Methods in hudson.model that return UserModifier and TypeMethodDescriptionstatic User
User.current()
Gets theUser
object representing the currently logged-in user, or null if the current user is anonymous.static User
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
Deprecated.static User
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
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.MyViewsProperty.getUser()
Methods in hudson.model that return types with arguments of type UserModifier and TypeMethodDescriptionAbstractBuild.calculateCulprits()
static Collection<User>
User.getAll()
Gets all the users.AbstractBuild.getCulprits()
Methods in hudson.model with parameters of type UserModifier and TypeMethodDescriptionint
Collection<? extends Action>
Creates actions for the given user.TimeZoneProperty.DescriptorImpl.doFillTimeZoneNameItems
(User user) boolean
AbstractProject.hasParticipant
(User user) Returns true if this user has made a commit to this project.MyViewsProperty.DescriptorImpl.newInstance
(User user) PaneStatusProperties.DescriptorImpl.newInstance
(User user) 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
-
Uses of User in hudson.scm
Methods in hudson.scm that return User -
Uses of User in hudson.search
Methods in hudson.search with parameters of type User -
Uses of User in hudson.security
Methods in hudson.security that return UserModifier and TypeMethodDescriptionHudsonPrivateSecurityRealm.createAccount
(String userName, String password) Creates a new user account by registering a password to the user.HudsonPrivateSecurityRealm.createAccountByAdmin
(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, String addUserView, String successView) Creates a user account.HudsonPrivateSecurityRealm.createAccountFromSetupWizard
(org.kohsuke.stapler.StaplerRequest req) Creates a user account.HudsonPrivateSecurityRealm.createAccountWithHashedPassword
(String userName, String hashedPassword) Creates a new user account by registering a Hashed password with the user.HudsonPrivateSecurityRealm.doCreateAccount
(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) Creates an user account.HudsonPrivateSecurityRealm.doCreateAccountWithFederatedIdentity
(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) Creates an account and associates that with the given identity.This is to map users under the security realm URL.final User
FederatedLoginService.FederatedIdentity.locateUser()
Locates the user who owns this identifier.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 UserModifier and TypeMethodDescriptionHudsonPrivateSecurityRealm.getAllUsers()
All users who can login to the system.Methods in hudson.security with parameters of type UserModifier and TypeMethodDescriptionabstract boolean
PermissionAdder.add
(AuthorizationStrategy strategy, User user, Permission perm) Called to try to give a user global permission.void
Adds this identity to the specified user.static ACLContext
Changes theAuthentication
associated with the current thread to the specified one and returns anAutoCloseable
that restores the previous security context.Implementation can choose to provide different ACL per user.HudsonPrivateSecurityRealm.Details.DescriptorImpl.newInstance
(User user) -
Uses of User in hudson.slaves
Methods in hudson.slaves that return UserConstructors in hudson.slaves with parameters of type User -
Uses of User in hudson.tasks
Methods in hudson.tasks with parameters of type UserModifier and TypeMethodDescriptionabstract 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
Resolve an avatar image URL string for the user.static String
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.console
Methods in jenkins.console with parameters of type UserModifier and TypeMethodDescriptionConsoleUrlProviderUserProperty.DescriptorImpl.newInstance
(User user) -
Uses of User in jenkins.model
Methods in jenkins.model that return UserModifier and TypeMethodDescriptionJenkins.getMe()
Exposes the current user to/me
URL.CauseOfInterruption.UserInterruption.getUser()
Gets user, who caused the interruption.Gets the user of the given name.CauseOfInterruption.UserInterruption.getUserOrNull()
Gets user, who caused the interruption.Constructors in jenkins.model with parameters of type User -
Uses of User in jenkins.model.experimentalflags
Methods in jenkins.model.experimentalflags with parameters of type UserModifier and TypeMethodDescriptionUserExperimentalFlag.getFlagValue
(User user) UserExperimentalFlagsProperty.DescriptorImpl.newInstance
(User user) -
Uses of User in jenkins.scm
Methods in jenkins.scm that return types with arguments of type UserModifier and TypeMethodDescriptionRunWithSCM.calculateCulprits()
Method used for actually calculating the culprits from scratch.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 UserModifier and TypeMethodDescriptiondefault 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 UserModifier and TypeMethodDescriptionstatic User
BasicApiTokenHelper.isConnectingUsingApiToken
(String username, String tokenValue) Methods in jenkins.security with parameters of type UserModifier and TypeMethodDescriptionorg.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
org.kohsuke.stapler.HttpResponse
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.DescriptorImpl.newInstance
(User user) New approach: API Token are generated only when a user request a new one.LastGrantedAuthoritiesProperty.DescriptorImpl.newInstance
(User user) protected void
-
Uses of User in jenkins.security.apitoken
Methods in jenkins.security.apitoken that return types with arguments of type UserMethods in jenkins.security.apitoken with parameters of type UserModifier and TypeMethodDescriptionLegacyApiTokenAdministrativeMonitor.getLegacyStatsOf
(User user, ApiTokenStore.HashedToken legacyToken) 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
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 UserModifier and TypeMethodDescriptionorg.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.DescriptorImpl.newInstance
(User user) abstract void
UserSeedChangeListener.onUserSeedRenewed
(User user) Called after a seed was changed but before the user is saved. -
Uses of User in jenkins.util
Methods in jenkins.util with parameters of type UserModifier and TypeMethodDescriptionstatic void
ScriptListener.fireScriptExecution
(String script, groovy.lang.Binding binding, Object feature, Object context, String correlationId, User user) static void
ScriptListener.fireScriptOutput
(String output, Object feature, Object context, String correlationId, User user) void
DefaultScriptListener.onScriptExecution
(String script, groovy.lang.Binding binding, Object feature, Object context, String correlationId, User user) default void
ScriptListener.onScriptExecution
(String script, groovy.lang.Binding binding, Object feature, Object context, String correlationId, User user) Called just before scripts are executed.void
DefaultScriptListener.onScriptOutput
(String output, Object feature, Object context, String correlationId, User user) default void
ScriptListener.onScriptOutput
(String output, Object feature, Object context, String correlationId, User user) Called when a script produces output.Constructors in jenkins.util with parameters of type UserModifierConstructorDescriptionListenerOutputStream
(OutputStream os, Charset charset, Object feature, Object context, String correlationId, User user)
Functions.getAvatar(hudson.model.User, java.lang.String)