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, setPrefix
protected static final List<String> WEB_UI_URL_PREFIXES
public WebNotificationDocumentIdCodec()
public String getUrlFromDocumentView(DocumentView docView)
DocumentViewCodec
The url should be partial: it should not hold the context path information (server:port/nuxeo).
public DocumentView getDocumentViewFromUrl(String url)
DocumentViewCodec
The url is partial: it does not hold the context path information (server:port/nuxeo).
url
- the partial url to redirect to.Copyright © 2017 Nuxeo. All rights reserved.