@Component @Named(value="diff") @Singleton public class DiffScriptService extends Object implements ScriptService
| Modifier and Type | Field and Description |
|---|---|
static String |
ROLEHINT
The role hint of this component.
|
| Constructor and Description |
|---|
DiffScriptService() |
| Modifier and Type | Method and Description |
|---|---|
<E> DiffResult<E> |
diff(List<E> previous,
List<E> next,
DiffConfiguration<E> configuration)
Produce a diff between the two provided versions.
|
<S extends ScriptService> |
get(String serviceName) |
Exception |
getLastError()
Get the error generated while performing the previously called action.
|
<E> MergeResult<E> |
merge(List<E> commonAncestor,
List<E> next,
List<E> current,
MergeConfiguration<E> configuration)
Execute a 3-way merge on provided versions.
|
public static final String ROLEHINT
public <S extends ScriptService> S get(String serviceName)
S - the type of the ScriptServiceserviceName - the name of the sub ScriptServiceScriptService or null of none could be foundpublic <E> DiffResult<E> diff(List<E> previous, List<E> next, DiffConfiguration<E> configuration)
E - the type of compared elementsprevious - the previous version of the content to comparenext - the next version of the content to compareconfiguration - the configuration of the diff behaviorpublic <E> MergeResult<E> merge(List<E> commonAncestor, List<E> next, List<E> current, MergeConfiguration<E> configuration)
E - the type of compared elementscommonAncestor - the common ancestor of the two versions of the content to comparenext - the next version of the content to comparecurrent - the current version of the content to compareconfiguration - the configuration of the merge behaviorpublic Exception getLastError()
null if no exception was thrownCopyright © 2004–2019 XWiki. All rights reserved.