public class WebNotificationDocumentIdCodec extends AbstractDocumentViewCodec
| Modifier and Type | Field and Description |
|---|---|
protected static List<String> |
WEB_UI_URL_PREFIXES |
prefix| Constructor and Description |
|---|
WebNotificationDocumentIdCodec() |
| Modifier and Type | Method and Description |
|---|---|
DocumentView |
getDocumentViewFromUrl(String url)
Extracts the document view from given url.
|
String |
getUrlFromDocumentView(DocumentView docView)
Builds an url from the given document view.
|
getPrefix, handleDocumentView, handleUrl, setPrefixprotected static final List<String> WEB_UI_URL_PREFIXES
public WebNotificationDocumentIdCodec()
public String getUrlFromDocumentView(DocumentView docView)
DocumentViewCodecThe url should be partial: it should not hold the context path information (server:port/nuxeo).
public 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.Copyright © 2019 Nuxeo. All rights reserved.