public class AnnotationServiceProxy extends Object implements AnnotationsService
Constructor and Description |
---|
AnnotationServiceProxy() |
Modifier and Type | Method and Description |
---|---|
Annotation |
addAnnotation(Annotation annotation,
NuxeoPrincipal user,
String baseUrl)
Adds an annotation to the target URL.
|
void |
deleteAnnotation(Annotation annotation,
NuxeoPrincipal user)
Deletes an annotation.
|
void |
deleteAnnotationFor(URI uri,
Annotation annotation,
NuxeoPrincipal user) |
Annotation |
getAnnotation(String annotationId,
NuxeoPrincipal user,
String baseUrl)
Returns an Annotation according to its Id.
|
Graph |
getAnnotationGraph() |
void |
initialise() |
List<Annotation> |
queryAnnotations(URI uri,
Map<String,String> filters,
NuxeoPrincipal user)
Finds Annotation ids according to URI and filter.
|
Annotation |
updateAnnotation(Annotation annotation,
NuxeoPrincipal user,
String baseUrl)
Updates an annotation.
|
public void initialise()
public Annotation addAnnotation(Annotation annotation, NuxeoPrincipal user, String baseUrl) throws AnnotationException
AnnotationsService
addAnnotation
in interface AnnotationsService
AnnotationException
public void deleteAnnotation(Annotation annotation, NuxeoPrincipal user) throws AnnotationException
AnnotationsService
deleteAnnotation
in interface AnnotationsService
AnnotationException
public void deleteAnnotationFor(URI uri, Annotation annotation, NuxeoPrincipal user) throws AnnotationException
deleteAnnotationFor
in interface AnnotationsService
AnnotationException
public Annotation getAnnotation(String annotationId, NuxeoPrincipal user, String baseUrl) throws AnnotationException
AnnotationsService
getAnnotation
in interface AnnotationsService
AnnotationException
public Graph getAnnotationGraph() throws AnnotationException
getAnnotationGraph
in interface AnnotationsService
AnnotationException
public List<Annotation> queryAnnotations(URI uri, Map<String,String> filters, NuxeoPrincipal user) throws AnnotationException
AnnotationsService
queryAnnotations
in interface AnnotationsService
AnnotationException
public Annotation updateAnnotation(Annotation annotation, NuxeoPrincipal user, String baseUrl) throws AnnotationException
AnnotationsService
updateAnnotation
in interface AnnotationsService
AnnotationException
Copyright © 2013 Nuxeo SA. All Rights Reserved.