Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.annotations.service
Class AnnotationsServiceImpl

java.lang.Object
  extended by org.nuxeo.ecm.platform.annotations.service.AnnotationsServiceImpl
All Implemented Interfaces:
AnnotationsService

public class AnnotationsServiceImpl
extends Object
implements AnnotationsService

Author:
Alexandre Russel

Constructor Summary
AnnotationsServiceImpl()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationsServiceImpl

public AnnotationsServiceImpl()
                       throws Exception
Throws:
Exception
Method Detail

addAnnotation

public Annotation addAnnotation(Annotation annotation,
                                NuxeoPrincipal user,
                                String baseUrl)
                         throws AnnotationException
Description copied from interface: AnnotationsService
Adds an annotation to the target URL.

Specified by:
addAnnotation in interface AnnotationsService
Returns:
the Annotation
Throws:
AnnotationException

deleteAnnotation

public void deleteAnnotation(Annotation annotation,
                             NuxeoPrincipal user)
                      throws AnnotationException
Description copied from interface: AnnotationsService
Deletes an annotation.

Specified by:
deleteAnnotation in interface AnnotationsService
Throws:
AnnotationException

deleteAnnotationFor

public void deleteAnnotationFor(URI uri,
                                Annotation annotation,
                                NuxeoPrincipal user)
                         throws AnnotationException
Specified by:
deleteAnnotationFor in interface AnnotationsService
Throws:
AnnotationException

getAnnotation

public Annotation getAnnotation(String id,
                                NuxeoPrincipal user,
                                String baseUrl)
                         throws AnnotationException
Description copied from interface: AnnotationsService
Returns an Annotation according to its Id.

Specified by:
getAnnotation in interface AnnotationsService
Throws:
AnnotationException

getAnnotationBody

public String getAnnotationBody(String id,
                                NuxeoPrincipal name)
                         throws AnnotationException
Throws:
AnnotationException

queryAnnotations

public List<Annotation> queryAnnotations(URI uri,
                                         Map<String,String> filters,
                                         NuxeoPrincipal user)
                                  throws AnnotationException
Description copied from interface: AnnotationsService
Finds Annotation ids according to URI and filter.

Specified by:
queryAnnotations in interface AnnotationsService
Throws:
AnnotationException

updateAnnotation

public Annotation updateAnnotation(Annotation annotation,
                                   NuxeoPrincipal user,
                                   String baseUrl)
                            throws AnnotationException
Description copied from interface: AnnotationsService
Updates an annotation.

Specified by:
updateAnnotation in interface AnnotationsService
Throws:
AnnotationException

getAnnotationGraph

public Graph getAnnotationGraph()
                         throws AnnotationException
Specified by:
getAnnotationGraph in interface AnnotationsService
Throws:
AnnotationException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.