public abstract class MarkupEditor extends Object implements Describable<MarkupEditor>, ExtensionPoint
| Modifier and Type | Class and Description |
|---|---|
static class |
MarkupEditor.MarkupEditorDescriptor
Descriptor for markup generators
|
static class |
MarkupEditor.TokenNotFoundException
Exception thrown when the configured token cannot be found in the wiki markup.
|
ExtensionPoint.LegacyInstancesAreScopedToHudson| Modifier and Type | Field and Description |
|---|---|
MarkupGenerator |
generator
Markup generator
|
| Constructor and Description |
|---|
MarkupEditor(MarkupGenerator generator)
Creates a generic markup editor
|
| Modifier and Type | Method and Description |
|---|---|
static DescriptorExtensionList<MarkupEditor,Descriptor<MarkupEditor>> |
all()
Returns list descriptors for all MarkupEditor implementations.
|
Descriptor<MarkupEditor> |
getDescriptor()
Returns the descriptor for this class
|
protected void |
log(TaskListener listener,
String message)
Log helper
|
protected abstract String |
performEdits(TaskListener listener,
String content,
String generated,
boolean isNewFormat)
Modify the page markup with the given generated content.
|
String |
performReplacement(Run<?,?> build,
FilePath filePath,
TaskListener listener,
String content,
boolean isNewFormat,
List<com.atlassian.confluence.api.model.content.Content> remoteAttachments)
Perform modifications to the page content.
|
protected String |
unquoteToken(String token)
Stapler seems to wrap {..} values in double quotes, which breaks marker token searching.
|
public MarkupGenerator generator
public MarkupEditor(MarkupGenerator generator)
generator - Markup generatorpublic final String performReplacement(Run<?,?> build, FilePath filePath, TaskListener listener, String content, boolean isNewFormat, List<com.atlassian.confluence.api.model.content.Content> remoteAttachments) throws MarkupEditor.TokenNotFoundException
build - listener - content - isNewFormat - remoteAttachments - MarkupEditor.TokenNotFoundExceptionprotected void log(TaskListener listener, String message)
listener - message - protected final String unquoteToken(String token)
token - protected abstract String performEdits(TaskListener listener, String content, String generated, boolean isNewFormat) throws MarkupEditor.TokenNotFoundException
listener - content - generated - isNewFormat - MarkupEditor.TokenNotFoundExceptionpublic Descriptor<MarkupEditor> getDescriptor()
getDescriptor in interface Describable<MarkupEditor>public static DescriptorExtensionList<MarkupEditor,Descriptor<MarkupEditor>> all()
Copyright © 2016–2021 MeetMe, Inc.. All rights reserved.