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
public class DocumentFileCodec
- extends AbstractDocumentViewCodec
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PREFIX
public static final java.lang.String PREFIX
- See Also:
- Constant Field Values
FILE_PROPERTY_PATH_KEY
public static final java.lang.String FILE_PROPERTY_PATH_KEY
- See Also:
- Constant Field Values
FILENAME_PROPERTY_PATH_KEY
@Deprecated
public static final java.lang.String FILENAME_PROPERTY_PATH_KEY
- Deprecated. soon will be part of the file property, passed as parameter
for now
- See Also:
- Constant Field Values
FILENAME_KEY
public static final java.lang.String FILENAME_KEY
- See Also:
- Constant Field Values
URLPattern
public static final java.lang.String URLPattern
- See Also:
- Constant Field Values
DocumentFileCodec
public DocumentFileCodec()
DocumentFileCodec
public DocumentFileCodec(java.lang.String prefix)
getPrefix
public java.lang.String getPrefix()
- Specified by:
getPrefix
in interface DocumentViewCodec
- Overrides:
getPrefix
in class AbstractDocumentViewCodec
getUrlFromDocumentView
public java.lang.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).
- Returns:
getDocumentViewFromUrl
public DocumentView getDocumentViewFromUrl(java.lang.String url)
- 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.
getBlobPropertyName
public static java.lang.String getBlobPropertyName(DocumentView docView)
getBlob
public static Blob getBlob(DocumentModel doc,
DocumentView docView)
getBlobViaBlobHolder
public static Blob getBlobViaBlobHolder(DocumentModel doc,
java.lang.String bhPath)
getFilenamePropertyName
public static java.lang.String getFilenamePropertyName(DocumentView docView)
getFilename
public static java.lang.String getFilename(DocumentModel doc,
DocumentView docView)
Copyright © 2010 Nuxeo SAS. All Rights Reserved.