public abstract class UserNameResolver extends Object implements ExtensionPoint
This is an extension point of Hudson. Plugins tha contribute new implementation
of this class should use Extension
to register the instance into Hudson, like this:
@Extension class MyserNameResolver extends UserNameResolver { ... }
ExtensionPoint.LegacyInstancesAreScopedToHudson
Modifier and Type | Field and Description |
---|---|
static List<UserNameResolver> |
LIST
|
Constructor and Description |
---|
UserNameResolver() |
Modifier and Type | Method and Description |
---|---|
static ExtensionList<UserNameResolver> |
all()
Returns all the registered
UserNameResolver descriptors. |
abstract String |
findNameFor(User u)
Finds full name of the given user.
|
static String |
resolve(User u) |
@Deprecated public static final List<UserNameResolver> LIST
UserNameResolver
implementations.public abstract String findNameFor(User u)
This method is called when a User
without explicitly name is used.
When multiple resolvers are installed, they are consulted in order and the search will be over when a name is found by someone.
Since UserNameResolver
is singleton, this method can be invoked concurrently
from multiple threads.
public static ExtensionList<UserNameResolver> all()
UserNameResolver
descriptors.Copyright © 2004–2021. All rights reserved.