@Name(value="contentDiffRestlet") @Scope(value=EVENT) public class ContentDiffRestlet extends BaseNuxeoRestlet
| Modifier and Type | Field and Description |
|---|---|
protected org.nuxeo.ecm.core.api.CoreSession |
documentManager |
protected org.nuxeo.ecm.core.api.DocumentModel |
leftDoc |
protected org.jboss.seam.international.LocaleSelector |
localeSelector |
protected NavigationContext |
navigationContext |
protected org.nuxeo.ecm.core.api.DocumentModel |
rightDoc |
| Constructor and Description |
|---|
ContentDiffRestlet() |
| Modifier and Type | Method and Description |
|---|---|
void |
handle(org.restlet.data.Request req,
org.restlet.data.Response res) |
protected void |
handleContentDiff(org.restlet.data.Response res,
org.nuxeo.ecm.core.api.Blob contentDiffBlob,
String mimeType) |
protected void |
handleNoContentDiff(org.restlet.data.Response res,
String xpath,
org.nuxeo.ecm.core.api.ClientException e) |
getHttpRequest, getHttpResponse, getQueryParamValue, getRestletFullUrl, getUserPrincipal, handleError, handleError, handleError, handleErrorgetContext, getLogger, init, isStarted, isStopped, setContext, start, stop@In(create=true) protected NavigationContext navigationContext
@In(create=true) protected transient org.jboss.seam.international.LocaleSelector localeSelector
protected org.nuxeo.ecm.core.api.CoreSession documentManager
protected org.nuxeo.ecm.core.api.DocumentModel leftDoc
protected org.nuxeo.ecm.core.api.DocumentModel rightDoc
public void handle(org.restlet.data.Request req,
org.restlet.data.Response res)
handle in class org.restlet.Restletprotected void handleNoContentDiff(org.restlet.data.Response res,
String xpath,
org.nuxeo.ecm.core.api.ClientException e)
protected void handleContentDiff(org.restlet.data.Response res,
org.nuxeo.ecm.core.api.Blob contentDiffBlob,
String mimeType)
throws IOException
IOExceptionCopyright © 2019 Nuxeo SA. All rights reserved.