public interface AnnotationAccessor extends AnnotationCreationPolicyProvider
Modifier and Type | Method and Description |
---|---|
void |
create(List<Annotation> annotations)
Create a list of new annotations
|
void |
delete(List<Annotation> annotations)
Delete a list of existing annotations
|
List<Annotation> |
get()
Get the list of existing annotations
|
void |
update(List<Annotation> annotations)
Update a list of existing annotations
|
getAnnotationCreationPolicy
void create(List<Annotation> annotations) throws AnnotationsNotSupportedException, AnnotationCredentialsException, InvalidAnnotationFormatException, AnnotationNotAvailableException
annotations
- the annotations to createAnnotationsNotSupportedException
- if this AnnotationAccessor does not support annotationsAnnotationCredentialsException
- if the user does not have rights to create an annotationAnnotationNotAvailableException
- if an annotation with the same Id already existsInvalidAnnotationFormatException
- if the annotations format is not supportedvoid update(List<Annotation> annotations) throws AnnotationsNotSupportedException, AnnotationNotAvailableException, AnnotationCredentialsException, InvalidAnnotationFormatException
annotations
- the annotations to updateAnnotationsNotSupportedException
- if this AnnotationAccessor does not support annotationsAnnotationCredentialsException
- if the user does not have rights to update an annotationAnnotationNotAvailableException
- if an annotation does not exist and can not be updatedInvalidAnnotationFormatException
- if the annotations format is not supportedList<Annotation> get() throws AnnotationsNotSupportedException, AnnotationCredentialsException, InvalidAnnotationFormatException
AnnotationsNotSupportedException
- if this AnnotationAccessor does not support annotationsAnnotationCredentialsException
- if the user does not have rights to get annotationsInvalidAnnotationFormatException
- if the annotations format is not supportedvoid delete(List<Annotation> annotations) throws AnnotationsNotSupportedException, AnnotationCredentialsException, AnnotationNotAvailableException, InvalidAnnotationFormatException
annotations
- the annotations to deleteAnnotationsNotSupportedException
- if this AnnotationAccessor does not support annotationsAnnotationCredentialsException
- if the user does not have rights to delete an annotationAnnotationNotAvailableException
- if an annotation does not exist and can not be deletedInvalidAnnotationFormatException
- if the annotations format is not supportedCopyright © 2018. All rights reserved.