@Component @Named(value="blame") @Singleton public class BlameScriptService extends Object implements ScriptService
Constructor and Description |
---|
BlameScriptService() |
Modifier and Type | Method and Description |
---|---|
<R,E> AnnotatedContent<R,E> |
blame(AnnotatedContent<R,E> content,
R revision,
List<E> previous)
Annotate content with current revision based on a diff with a previous revision.
|
<R> AnnotatedContent<R,String> |
blame(AnnotatedContent<R,String> content,
R revision,
String previous)
Annotate content with current revision based on a diff with a previous revision.
|
Exception |
getLastError()
Get the error generated while performing the previously called action.
|
public <R,E> AnnotatedContent<R,E> blame(AnnotatedContent<R,E> content, R revision, List<E> previous)
R
- type of the revision object that old metadata about the revision.E
- type of the element to annotate (ie: String holding a line).content
- the annotated content (up to the revision preceding the one given), use null to start a new
blame.revision
- the revision metadata to associate with the given revision.previous
- the content of the previous revision to diff against the currently annotated content, use the
latest revision to start a new blame.public <R> AnnotatedContent<R,String> blame(AnnotatedContent<R,String> content, R revision, String previous)
R
- type of the revision object that old metadata about the revision.content
- the annotated content (up to the revision preceding the one given), use null to start a new
blame.revision
- the revision metadata to associate with the given revision.previous
- the content of the previous revision to diff against the currently annotated content, use the
latest revision to start a new blame.public Exception getLastError()
null
if no exception was thrownCopyright © 2004–2019 XWiki. All rights reserved.