public class LayoutDemoURLCodec extends AbstractDocumentViewCodec
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_VIEW_ID |
static String |
GET_URL_PATTERN |
static String |
LAYOUT_PREVIEW_FRAME_VIEW_ID |
static String |
POST_URL_PATTERN |
static String |
URL_PATTERN |
Constructor and Description |
---|
LayoutDemoURLCodec() |
Modifier and Type | Method and Description |
---|---|
DocumentView |
getDocumentViewFromUrl(String url)
Extracts view id and parameters, for both get and post methods
|
String |
getUrlFromDocumentView(DocumentView docView)
Builds an url from the given document view.
|
static boolean |
isPreview(String viewId) |
getPrefix, handleDocumentView, handleUrl, setPrefix
public static final String GET_URL_PATTERN
public static final String URL_PATTERN
public static final String POST_URL_PATTERN
public static final String LAYOUT_PREVIEW_FRAME_VIEW_ID
public static final String DEFAULT_VIEW_ID
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)
url
- the partial url to redirect to.public static boolean isPreview(String viewId)
Copyright © 2015 Nuxeo SA. All rights reserved.