Package hudson.model
Class User.UserIDCanonicalIdResolver
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<User.CanonicalIdResolver>
-
- hudson.model.User.CanonicalIdResolver
-
- hudson.model.User.UserIDCanonicalIdResolver
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<User.CanonicalIdResolver>
,Comparable<User.CanonicalIdResolver>
- Enclosing class:
- User
@Extension @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public static class User.UserIDCanonicalIdResolver extends User.CanonicalIdResolver
Tries to verify if an ID is valid. If so, we do not want to even consider users who might have the same full name.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class hudson.model.User.CanonicalIdResolver
REALM
-
-
Constructor Summary
Constructors Constructor Description UserIDCanonicalIdResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getPriority()
Gets priority of the resolver.String
resolveCanonicalId(String idOrFullName, Map<String,?> context)
extract user ID from idOrFullName with help from contextual infos.-
Methods inherited from class hudson.model.User.CanonicalIdResolver
all, compareTo, resolve
-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Method Detail
-
resolveCanonicalId
public String resolveCanonicalId(String idOrFullName, Map<String,?> context)
Description copied from class:User.CanonicalIdResolver
extract user ID from idOrFullName with help from contextual infos. can returnnull
if no user ID matched the input- Specified by:
resolveCanonicalId
in classUser.CanonicalIdResolver
-
getPriority
public int getPriority()
Description copied from class:User.CanonicalIdResolver
Gets priority of the resolver. Higher priority means that it will be checked earlier.Overriding methods must not use
Integer.MIN_VALUE
, because it will cause collisions withDefaultUserCanonicalIdResolver
.- Overrides:
getPriority
in classUser.CanonicalIdResolver
- Returns:
- Priority of the resolver.
-
-