Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.annotations.ejb
Class AnnotationServiceBean

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

public class AnnotationServiceBean
extends java.lang.Object
implements AnnotationsService


Constructor Summary
AnnotationServiceBean()
           
 
Method Summary
 Annotation addAnnotation(Annotation annotation, NuxeoPrincipal user, java.lang.String baseUrl)
          Adds an annotation to the target URL.
 void deleteAnnotation(Annotation annotation, NuxeoPrincipal user)
          Deletes an annotation.
 void deleteAnnotationFor(java.net.URI uri, Annotation annotation, NuxeoPrincipal user)
           
 Annotation getAnnotation(java.lang.String annotationId, NuxeoPrincipal user, java.lang.String baseUrl)
          Returns an Annotation according to its Id.
 Graph getAnnotationGraph()
           
 void initialise()
           
 java.util.List<Annotation> queryAnnotations(java.net.URI uri, java.util.Map<java.lang.String,java.lang.String> filters, NuxeoPrincipal user)
          Finds Annotation ids according to URI and filter.
 Annotation updateAnnotation(Annotation annotation, NuxeoPrincipal user, java.lang.String baseUrl)
          Updates an annotation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationServiceBean

public AnnotationServiceBean()
Method Detail

initialise

@PostConstruct
public void initialise()

addAnnotation

public Annotation addAnnotation(Annotation annotation,
                                NuxeoPrincipal user,
                                java.lang.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(java.net.URI uri,
                                Annotation annotation,
                                NuxeoPrincipal user)
                         throws AnnotationException
Specified by:
deleteAnnotationFor in interface AnnotationsService
Throws:
AnnotationException

getAnnotation

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

Specified by:
getAnnotation in interface AnnotationsService
Throws:
AnnotationException

queryAnnotations

public java.util.List<Annotation> queryAnnotations(java.net.URI uri,
                                                   java.util.Map<java.lang.String,java.lang.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,
                                   java.lang.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 Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.