Search in sources :

Example 1 with AnnotationAddRequest

use of org.xwiki.annotation.rest.model.jaxb.AnnotationAddRequest in project xwiki-platform by xwiki.

the class FormUrlEncodedAnnotationAddRequestReader method getReadObjectInstance.

@Override
protected AnnotationAddRequest getReadObjectInstance(ObjectFactory factory) {
    AnnotationAddRequest addRequest = factory.createAnnotationAddRequest();
    // and initialize it
    addRequest.setRequest(new AnnotationRequest.Request());
    addRequest.setFilter(factory.createAnnotationFieldCollection());
    addRequest.setAnnotation(factory.createAnnotationFieldCollection());
    return addRequest;
}
Also used : AnnotationRequest(org.xwiki.annotation.rest.model.jaxb.AnnotationRequest) AnnotationAddRequest(org.xwiki.annotation.rest.model.jaxb.AnnotationAddRequest)

Aggregations

AnnotationAddRequest (org.xwiki.annotation.rest.model.jaxb.AnnotationAddRequest)1 AnnotationRequest (org.xwiki.annotation.rest.model.jaxb.AnnotationRequest)1