org.xwiki.annotation.rest.internal
Class SingleAnnotationRESTResource
java.lang.Object
org.xwiki.rest.XWikiResource
org.xwiki.annotation.rest.internal.AbstractAnnotationRESTResource
org.xwiki.annotation.rest.internal.SingleAnnotationRESTResource
- All Implemented Interfaces:
- org.xwiki.component.phase.Initializable, XWikiRestComponent
@Component
@Named(value="org.xwiki.annotation.rest.internal.SingleAnnotationRESTResource")
@Singleton
public class SingleAnnotationRESTResource
- extends AbstractAnnotationRESTResource
This class allow to do delete a single annotation.
- Since:
- 2.3M1
- Version:
- $Id$
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SingleAnnotationRESTResource
public SingleAnnotationRESTResource()
doDelete
public AnnotationResponse doDelete(java.lang.String space,
java.lang.String page,
java.lang.String wiki,
java.lang.String id,
AnnotationRequest request)
- Deletes the specified annotation.
- Parameters:
space - the space of the document to delete the annotation frompage - the name of the document to delete the annotation fromwiki - the wiki of the document to delete the annotation fromid - the id of the annotation to deleterequest - the annotation request to configure the returned annotated content after the execution of the
operation
- Returns:
- a annotation response for which the response code will be 0 in case of success and non-zero otherwise
doUpdate
public AnnotationResponse doUpdate(java.lang.String space,
java.lang.String page,
java.lang.String wiki,
java.lang.String id,
AnnotationUpdateRequest updateRequest)
- Updates the specified annotation with the values of the fields in received collection.
- Parameters:
space - the space of the document to update the annotation frompage - the name of the document to update the annotation fromwiki - the wiki of the document to update the annotation fromid - the id of the annotation to updateupdateRequest - the request to update the annotation pointed by the id
- Returns:
- a annotation response for which the response code will be 0 in case of success and non-zero otherwise
Copyright © 2004-2011 XWiki. All Rights Reserved.