|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.tasks.UserNameResolver
public abstract class UserNameResolver
Finds full name off the user when none is specified.
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 { ... }
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
---|
ExtensionPoint.LegacyInstancesAreScopedToHudson |
Field Summary | |
---|---|
static List<UserNameResolver> |
LIST
Deprecated. since 2009-02-24. Use all() for read access, and use Extension for registration. |
Constructor Summary | |
---|---|
UserNameResolver()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final List<UserNameResolver> LIST
all()
for read access, and use Extension
for registration.UserNameResolver
implementations.
Constructor Detail |
---|
public UserNameResolver()
Method Detail |
---|
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 someoene.
Since UserNameResolver
is singleton, this method can be invoked concurrently
from multiple threads.
public static String resolve(User u)
public static ExtensionList<UserNameResolver> all()
UserNameResolver
descriptors.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |