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 UserUserProperty.userThe user object that owns this property.Methods in hudson.model that return UserModifier and TypeMethodDescriptionstatic UserUser.current()Gets theUserobject representing the currently logged-in user, or null if the current user is anonymous.static UserDeprecated.This method is deprecated, because it causes unexpectedUsercreation by API usage code and causes performance degradation of used to retrieve users by ID.static UserDeprecated.static UserGets theUserobject by its id or full name.static UserUser.get(Authentication a) Deprecated.static UserUser.get2(org.springframework.security.core.Authentication a) Gets theUserobject representing the suppliedAuthenticationornullif the suppliedAuthenticationis either anonymous ornullstatic UserGets theUserobject by itsidstatic UserUser.getOrCreateByIdOrFullName(String idOrFullName) Get the user by ID or Full Name.static UserUser.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 TypeMethodDescriptionintCollection<? extends Action> Creates actions for the given user.MyViewsProperty.DescriptorImpl.doFillPrimaryViewNameItems(User user) TimeZoneProperty.DescriptorImpl.doFillTimeZoneNameItems(User user) booleanAbstractProject.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 UserPropertyUserPropertyDescriptor.newInstance(User user) Creates a default instance ofUserPropertyto be associated withUserobject that wasn't created from a persisted XML data.protected voidThis method is used to inform the property about its owner. -
Uses of User in hudson.model.userproperty
Methods in hudson.model.userproperty that return UserMethods in hudson.model.userproperty with parameters of type UserModifier and TypeMethodDescriptionCollection<? extends Action> Collection<? extends Action> Collection<? extends Action> Collection<? extends Action> Collection<? extends Action> Constructors in hudson.model.userproperty with parameters of type User -
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.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 UserFederatedLoginService.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 booleanPermissionAdder.add(AuthorizationStrategy strategy, User user, Permission perm) Called to try to give a user global permission.voidAdds this identity to the specified user.static ACLContextChanges theAuthenticationassociated with the current thread to the specified one and returns anAutoCloseablethat 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 StringUserAvatarResolver.findAvatarFor(User u, int width, int height) Finds an avatar image URL string for a user.abstract StringUserNameResolver.findNameFor(User u) Finds full name of the given user.static StringResolve an avatar image URL string for the user.static Stringstatic StringUserAvatarResolver.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/meURL.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 booleanRunWithSCM.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 UserBasicApiTokenHelper.isConnectingUsingApiToken(String username, String tokenValue) Methods in jenkins.security with parameters of type UserModifier and TypeMethodDescriptionorg.kohsuke.stapler.HttpResponseApiTokenProperty.DescriptorImpl.doAddFixedToken(User u, String newTokenName, String newTokenPlainValue) This method is dangerous and should not be used without caution.org.kohsuke.stapler.HttpResponseApiTokenProperty.DescriptorImpl.doChangeToken(User u, org.kohsuke.stapler.StaplerResponse rsp) Deprecated.org.kohsuke.stapler.HttpResponseApiTokenProperty.DescriptorImpl.doGenerateNewToken(User u, String newTokenName) org.kohsuke.stapler.HttpResponseorg.kohsuke.stapler.HttpResponseorg.kohsuke.stapler.HttpResponseApiTokenProperty.DescriptorImpl.doRevokeAll(User u) org.kohsuke.stapler.HttpResponseApiTokenProperty.DescriptorImpl.doRevokeAllExcept(User u, String tokenUuid) booleanApiTokenProperty.DescriptorImpl.hasCurrentUserRightToGenerateNewToken(User propertyOwner) booleanApiTokenProperty.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) booleanLegacyApiTokenAdministrativeMonitor.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 tokenbooleanLegacyApiTokenAdministrativeMonitor.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 ApiTokenStatsLoads 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.HttpResponseUserSeedProperty.DescriptorImpl.doRenewSessionSeed(User u) static voidUserSeedChangeListener.fireUserSeedRenewed(User user) Will notify all the registered listeners about the eventbooleanUserSeedProperty.DescriptorImpl.isCurrentUser(User target) UserSeedProperty.DescriptorImpl.newInstance(User user) abstract voidUserSeedChangeListener.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 voidScriptListener.fireScriptExecution(String script, groovy.lang.Binding binding, Object feature, Object context, String correlationId, User user) static voidScriptListener.fireScriptOutput(String output, Object feature, Object context, String correlationId, User user) voidDefaultScriptListener.onScriptExecution(String script, groovy.lang.Binding binding, Object feature, Object context, String correlationId, User user) default voidScriptListener.onScriptExecution(String script, groovy.lang.Binding binding, Object feature, Object context, String correlationId, User user) Called just before scripts are executed.voidDefaultScriptListener.onScriptOutput(String output, Object feature, Object context, String correlationId, User user) default voidScriptListener.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) -
Uses of User in jenkins.views
Methods in jenkins.views with parameters of type User
Functions.getAvatar(hudson.model.User, java.lang.String)