@Name(value="previewRestlet") @Scope(value=EVENT) public class PreviewRestlet extends BaseNuxeoRestlet
Modifier and Type | Field and Description |
---|---|
protected CoreSession |
documentManager |
protected org.jboss.seam.international.LocaleSelector |
localeSelector |
protected NavigationContext |
navigationContext |
protected static List<String> |
previewInProcessing |
protected ResourcesAccessor |
resourcesAccessor |
protected DocumentModel |
targetDocument |
Constructor and Description |
---|
PreviewRestlet() |
Modifier and Type | Method and Description |
---|---|
void |
handle(org.restlet.data.Request req,
org.restlet.data.Response res) |
protected void |
handleNoPreview(org.restlet.data.Response res,
String xpath,
Exception e) |
getHttpRequest, getHttpResponse, getQueryParamValue, getRestletFullUrl, getUserPrincipal, handleError, handleError, handleError, handleError, setEntityToBlobOutput
getContext, getLogger, init, isStarted, isStopped, setContext, start, stop
@In(create=true) protected NavigationContext navigationContext
protected CoreSession documentManager
protected DocumentModel targetDocument
@In(create=true) protected transient org.jboss.seam.international.LocaleSelector localeSelector
@In(create=true) protected transient ResourcesAccessor resourcesAccessor
protected static final List<String> previewInProcessing
public PreviewRestlet()
public void handle(org.restlet.data.Request req, org.restlet.data.Response res)
handle
in class org.restlet.Restlet
protected void handleNoPreview(org.restlet.data.Response res, String xpath, Exception e)
Copyright © 2015 Nuxeo SA. All rights reserved.