public class CollaborationCodec extends AbstractDocumentViewCodec
When using id URLs, check if the document can be seen in the Collaboration view, if not, display the default view of the document.
| Modifier and Type | Field and Description |
|---|---|
static String |
ID_URL_PATTERN |
static String |
PATH_URL_PATTERN |
static String |
PREFIX |
| Constructor and Description |
|---|
CollaborationCodec() |
| Modifier and Type | Method and 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.
|
handleDocumentView, handleUrl, setPrefixpublic static final String PREFIX
public static final String ID_URL_PATTERN
public static final String PATH_URL_PATTERN
public String getPrefix()
getPrefix in interface DocumentViewCodecgetPrefix in class AbstractDocumentViewCodecpublic DocumentView getDocumentViewFromUrl(String url)
DocumentViewCodecThe url is partial: it does not hold the context path information (server:port/nuxeo).
url - the partial url to redirect to.public String getUrlFromDocumentView(DocumentView docView)
DocumentViewCodecThe url should be partial: it should not hold the context path information (server:port/nuxeo).
Copyright © 2014 Nuxeo SA. All rights reserved.