Class NameProvider
- java.lang.Object
-
- com.cloudbees.jenkins.support.filter.NameProvider
-
- All Implemented Interfaces:
ExtensionPoint
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public class NameProvider extends Object implements ExtensionPoint
Strategy for providing a stream of names to anonymize along with an accompanying name generator.- Since:
- TODO
- See Also:
SensitiveContentFilter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static NameProvider
COMPUTERS
Provides the names of computers.static NameProvider
ITEMS
Provides the names of items.static NameProvider
LABELS
Provides the names of labels.static NameProvider
NODES
Provides the names of nodes.static NameProvider
USERS
Provides the names of users.static NameProvider
VIEWS
Provides the names of view.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExtensionList<NameProvider>
all()
String
generateFake()
Stream<String>
names()
-
-
-
Field Detail
-
ITEMS
@Extension public static final NameProvider ITEMS
Provides the names of items.
-
VIEWS
@Extension public static final NameProvider VIEWS
Provides the names of view.
-
NODES
@Extension public static final NameProvider NODES
Provides the names of nodes.
-
COMPUTERS
@Extension public static final NameProvider COMPUTERS
Provides the names of computers.
-
USERS
@Extension public static final NameProvider USERS
Provides the names of users.
-
LABELS
@Extension(ordinal=-100.0) public static final NameProvider LABELS
Provides the names of labels. Note that this extension is given a lower priority than the others to avoid naming conflicts between labels and nodes/computers.
-
-
Method Detail
-
generateFake
@NonNull public String generateFake()
- Returns:
- a new fake name to use for anonymization
-
all
@NonNull public static ExtensionList<NameProvider> all()
- Returns:
- all registered NameProviders
-
-