Package org.nuxeo.ecm.platform.url.codec
Class DocumentFileCodec
java.lang.Object
org.nuxeo.ecm.platform.url.service.AbstractDocumentViewCodec
org.nuxeo.ecm.platform.url.codec.DocumentFileCodec
- All Implemented Interfaces:
DocumentViewCodec
-
Field Summary
Fields inherited from class org.nuxeo.ecm.platform.url.service.AbstractDocumentViewCodec
prefix
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionExtracts document location from a Zope-like URL ie : server/path_or_docId/view_id/tab_id .static String
getFilename
(DocumentModel doc, DocumentView docView) getUrlFromDocumentView
(DocumentView docView) Builds an url from the given document view.Methods inherited from class org.nuxeo.ecm.platform.url.service.AbstractDocumentViewCodec
getPrefix, handleDocumentView, handleUrl, setPrefix
-
Field Details
-
FILE_PROPERTY_PATH_KEY
- See Also:
-
FILENAME_KEY
- See Also:
-
URLPattern
- See Also:
-
-
Constructor Details
-
DocumentFileCodec
public DocumentFileCodec() -
DocumentFileCodec
-
-
Method Details
-
getUrlFromDocumentView
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).
-
getDocumentViewFromUrl
Extracts document location from a Zope-like URL ie : server/path_or_docId/view_id/tab_id .- Parameters:
url
- the partial url to redirect to.- Returns:
- a document view instance.
-
getFilename
-