Package hudson.model

Class UserProperty

java.lang.Object
hudson.model.UserProperty
All Implemented Interfaces:
ExtensionPoint, Describable<UserProperty>, ReconfigurableDescribable<UserProperty>
Direct Known Subclasses:
ApiTokenProperty, ConsoleUrlProviderUserProperty, FederatedLoginServiceUserProperty, HudsonPrivateSecurityRealm.Details, LastGrantedAuthoritiesProperty, MyViewsProperty, PaneStatusProperties, TimeZoneProperty, UserExperimentalFlagsProperty, UserSearchProperty, UserSeedProperty

@ExportedBean public abstract class UserProperty extends Object implements ReconfigurableDescribable<UserProperty>, ExtensionPoint
Extensible property of User.

Plugins can extend this to define custom properties for Users. UserPropertys show up in the user configuration screen, and they are persisted with the user object.

Configuration screen should be defined in config.jelly. Within this page, the UserProperty instance is available as instance variable (while it refers to User. See UserSearchProperty's config.jelly for an example.

A property may also define a summary.jelly view to show in the main user screen.

Author:
Kohsuke Kawaguchi
  • Field Details

    • user

      protected transient User user
      The user object that owns this property. This value will be set by the Hudson code. Derived classes can expect this value to be always set.
  • Constructor Details

    • UserProperty

      public UserProperty()
  • Method Details