public class AnnotationsServiceImpl extends Object implements AnnotationsService
Constructor and Description |
---|
AnnotationsServiceImpl() |
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 id,
NuxeoPrincipal user,
String baseUrl)
Returns an Annotation according to its Id.
|
String |
getAnnotationBody(String id,
NuxeoPrincipal name) |
Graph |
getAnnotationGraph() |
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 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 id, NuxeoPrincipal user, String baseUrl) throws AnnotationException
AnnotationsService
getAnnotation
in interface AnnotationsService
AnnotationException
public String getAnnotationBody(String id, NuxeoPrincipal name) throws AnnotationException
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
public Graph getAnnotationGraph() throws AnnotationException
getAnnotationGraph
in interface AnnotationsService
AnnotationException
Copyright © 2013 Nuxeo SA. All Rights Reserved.