Class ContentMappings
java.lang.Object
hudson.model.ManagementLink
com.cloudbees.jenkins.support.filter.ContentMappings
- All Implemented Interfaces:
ExtensionPoint
,Action
,ModelObject
,Saveable
,Iterable<ContentMapping>
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public class ContentMappings
extends ManagementLink
implements Saveable, Iterable<ContentMapping>
Holds all anonymized content mappings and provides a management view to see those mappings.
- Since:
- TODO
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.ManagementLink
ManagementLink.Category
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class hudson.model.ManagementLink
LIST
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
clear()
void
forEach
(Consumer<? super ContentMapping> action) static ContentMappings
get()
getMappingOrCreate
(String original, Function<String, ContentMapping> generator) Looks up or creates a new ContentMapping for the given original string and a ContentMapping generator.iterator()
static ContentMappings
Constructs a new ContentMappings using an existing config file or default settings if not found.void
reload()
void
save()
Methods inherited from class hudson.model.ManagementLink
all, getBadge, getCategoryName, getRequiredPermission, getRequiresConfirmation, getRequiresPOST
-
Method Details
-
get
- Returns:
- the singleton instance
-
newInstance
Constructs a new ContentMappings using an existing config file or default settings if not found.- Throws:
IOException
-
getStopWords
- Returns:
- the set of stop words to ignore when filtering
-
getMappings
- Returns:
- the map of original to replacement values known to this instance
-
getMappingOrCreate
@NonNull public ContentMapping getMappingOrCreate(@NonNull String original, @NonNull Function<String, ContentMapping> generator) Looks up or creates a new ContentMapping for the given original string and a ContentMapping generator. -
reload
public void reload() -
clear
protected void clear() -
save
- Specified by:
save
in interfaceSaveable
- Throws:
IOException
-
iterator
- Specified by:
iterator
in interfaceIterable<ContentMapping>
-
forEach
- Specified by:
forEach
in interfaceIterable<ContentMapping>
-
spliterator
- Specified by:
spliterator
in interfaceIterable<ContentMapping>
-
getIconFileName
- Specified by:
getIconFileName
in interfaceAction
- Specified by:
getIconFileName
in classManagementLink
-
getDisplayName
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getDescription
- Overrides:
getDescription
in classManagementLink
-
getUrlName
- Specified by:
getUrlName
in interfaceAction
- Specified by:
getUrlName
in classManagementLink
-
getCategory
- Overrides:
getCategory
in classManagementLink
-