Class DocumentPreviewCodec
- java.lang.Object
-
- org.nuxeo.ecm.platform.url.service.AbstractDocumentViewCodec
-
- org.nuxeo.ecm.platform.preview.codec.DocumentPreviewCodec
-
- All Implemented Interfaces:
DocumentViewCodec
public class DocumentPreviewCodec extends AbstractDocumentViewCodec
- Author:
- Thomas Roger
-
-
Field Summary
Fields Modifier and Type Field Description static String
PREFIX
static String
PROPERTY_PATH_KEY
static String
URLPattern
-
Fields inherited from class org.nuxeo.ecm.platform.url.service.AbstractDocumentViewCodec
prefix
-
-
Constructor Summary
Constructors Constructor Description DocumentPreviewCodec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentView
getDocumentViewFromUrl(String url)
Extracts the document view from given url.String
getPrefix()
String
getUrlFromDocumentView(DocumentView docView)
Builds an url from the given document view.-
Methods inherited from class org.nuxeo.ecm.platform.url.service.AbstractDocumentViewCodec
handleDocumentView, handleUrl, setPrefix
-
-
-
-
Field Detail
-
PROPERTY_PATH_KEY
public static final String PROPERTY_PATH_KEY
- See Also:
- Constant Field Values
-
PREFIX
public static final String PREFIX
- See Also:
- Constant Field Values
-
URLPattern
public static final String URLPattern
- See Also:
- Constant Field Values
-
-
Method Detail
-
getPrefix
public String getPrefix()
- Specified by:
getPrefix
in interfaceDocumentViewCodec
- Overrides:
getPrefix
in classAbstractDocumentViewCodec
-
getDocumentViewFromUrl
public DocumentView getDocumentViewFromUrl(String url)
Description copied from interface:DocumentViewCodec
Extracts the document view from given url.The url is partial: it does not hold the context path information (server:port/nuxeo).
- Parameters:
url
- the partial url to redirect to.- Returns:
- a document view instance.
-
getUrlFromDocumentView
public String getUrlFromDocumentView(DocumentView docView)
Description copied from interface:DocumentViewCodec
Builds an url from the given document view.The url should be partial: it should not hold the context path information (server:port/nuxeo).
-
-