@Scope(value=CONVERSATION) @Name(value="noteActions") public class NoteActions extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected CoreSession |
documentManager |
protected NavigationContext |
navigationContext |
protected static Pattern |
PATTERN_TO_CHECK |
protected static String |
PATTERN_TO_REPLACE |
| Constructor and Description |
|---|
NoteActions() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
hasImageLinksToTranslate(String note) |
String |
translateImageLinks(String note)
Translate the image links referencing attached files to use the docId of the current proxy or version.
|
protected String |
translateImageLinks(String note,
String fromDocRef,
String toDocRef) |
protected static final Pattern PATTERN_TO_CHECK
protected static final String PATTERN_TO_REPLACE
@In(create=true,
required=false)
protected transient CoreSession documentManager
@In(create=true,
required=false)
protected transient NavigationContext navigationContext
public NoteActions()
public String translateImageLinks(String note)
note - the note contentprotected boolean hasImageLinksToTranslate(String note)
protected String translateImageLinks(String note, String fromDocRef, String toDocRef)
Copyright © 2019 Nuxeo. All rights reserved.