Uses of Class
hudson.model.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
-
Uses of User in hudson.model
Modifier and TypeFieldDescriptionprotected User
UserProperty.user
The user object that owns this property.Modifier 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()
Modifier and TypeMethodDescriptionAbstractBuild.calculateCulprits()
static Collection<User>
User.getAll()
Gets all the users.AbstractBuild.getCulprits()
Modifier 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
This method is used to inform the property about its owner. -
Uses of User in hudson.model.userproperty
Modifier and TypeMethodDescriptionCollection<? extends Action>
Collection<? extends Action>
Collection<? extends Action>
Collection<? extends Action>
Collection<? extends Action>
-
Uses of User in hudson.scm
-
Uses of User in hudson.search
-
Uses of User in hudson.security
Modifier and TypeMethodDescriptionHudsonPrivateSecurityRealm.createAccount
(String userName, String password) Creates a new user account by registering a password to the user.HudsonPrivateSecurityRealm.createAccountByAdmin
(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp, String addUserView, String successView) Creates a user account.HudsonPrivateSecurityRealm.createAccountFromSetupWizard
(org.kohsuke.stapler.StaplerRequest2 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.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) Creates an user account.HudsonPrivateSecurityRealm.doCreateAccountWithFederatedIdentity
(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 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.Modifier and TypeMethodDescriptionHudsonPrivateSecurityRealm.getAllUsers()
All users who can login to the system.Modifier 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
-
Uses of User in hudson.tasks
Modifier 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
Modifier and TypeMethodDescriptionConsoleUrlProviderUserProperty.DescriptorImpl.newInstance
(User user) -
Uses of User in jenkins.model
Modifier 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. -
Uses of User in jenkins.model.experimentalflags
Modifier and TypeMethodDescriptionUserExperimentalFlag.getFlagValue
(User user) UserExperimentalFlagsProperty.DescriptorImpl.newInstance
(User user) -
Uses of User in jenkins.scm
Modifier 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.Modifier 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
Modifier and TypeMethodDescriptionstatic User
BasicApiTokenHelper.isConnectingUsingApiToken
(String username, String tokenValue) Modifier 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
Modifier 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
Modifier 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
Modifier 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.ModifierConstructorDescriptionListenerOutputStream
(OutputStream os, Charset charset, Object feature, Object context, String correlationId, User user)
Functions.getAvatar(hudson.model.User, java.lang.String)