Class PreviewAdapter
- java.lang.Object
-
- org.nuxeo.ecm.webengine.model.impl.AbstractResource<ResourceTypeImpl>
-
- org.nuxeo.ecm.webengine.model.impl.DefaultAdapter
-
- org.nuxeo.ecm.restapi.server.jaxrs.adapters.PreviewAdapter
-
- All Implemented Interfaces:
AdapterResource
,Resource
,Adaptable
public class PreviewAdapter extends DefaultAdapter
- Since:
- 8.2
-
-
Field Summary
Fields Modifier and Type Field Description static String
LEGACY_PEVIEW_PROP
static String
NAME
-
Constructor Summary
Constructors Constructor Description PreviewAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
buildPreviewNotAvailable()
Object
preview(boolean postProcessing, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
protected List<Blob>
previewBlobs(DocumentModel doc, String xpath, boolean blobPostProcessing)
Object
subPath(String subPath, boolean postProcessing, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
Methods inherited from class org.nuxeo.ecm.webengine.model.impl.DefaultAdapter
disptachAdapter, getTarget, isAdapter
-
Methods inherited from class org.nuxeo.ecm.webengine.model.impl.AbstractResource
checkGuard, dispose, getActiveAdapter, getAdapter, getContext, getFacets, getLinks, getModule, getName, getNext, getNextSegment, getPath, getPrevious, getTemplate, getTrailingPath, getType, getURL, getView, hasFacet, initialize, initialize, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRoot, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.nuxeo.runtime.model.Adaptable
getAdapter
-
Methods inherited from interface org.nuxeo.ecm.webengine.model.Resource
checkGuard, dispose, getActiveAdapter, getContext, getFacets, getLinks, getModule, getName, getNext, getNextSegment, getPath, getPrevious, getTemplate, getTrailingPath, getType, getURL, getView, hasFacet, initialize, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRoot
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
LEGACY_PEVIEW_PROP
public static final String LEGACY_PEVIEW_PROP
- See Also:
- Constant Field Values
-
-
Method Detail
-
preview
public Object preview(boolean postProcessing, @Context javax.servlet.http.HttpServletRequest request, @Context javax.servlet.http.HttpServletResponse response)
-
buildPreviewNotAvailable
protected Object buildPreviewNotAvailable()
-
subPath
public Object subPath(String subPath, boolean postProcessing, @Context javax.servlet.http.HttpServletRequest request, @Context javax.servlet.http.HttpServletResponse response)
-
previewBlobs
protected List<Blob> previewBlobs(DocumentModel doc, String xpath, boolean blobPostProcessing)
-
-