Interface DocumentViewCodec
- All Known Implementing Classes:
AbstractDocumentViewCodec
,DocumentFileCodec
,DocumentIdCodec
,DocumentPathCodec
,DocumentPreviewCodec
,RestDocumentViewCodec
,WebUIRedirectCodec
public interface DocumentViewCodec
-
Method Summary
Modifier and TypeMethodDescriptionExtracts the document view from given url.getUrlFromDocumentView
(DocumentView docView) Builds an url from the given document view.boolean
handleDocumentView
(DocumentView docView) Returns true if this codec should apply when iterating over codecs to find a matching one.boolean
Returns true if this codec should apply when iterating over codecs to find a matching one.void
-
Method Details
-
getPrefix
String getPrefix() -
setPrefix
-
handleDocumentView
Returns true if this codec should apply when iterating over codecs to find a matching one. -
handleUrl
Returns true if this codec should apply when iterating over codecs to find a matching one. -
getDocumentViewFromUrl
Extracts the document view from given url.The url is partial: it does not hold the context path information (server:port/nuxeo).
- Parameters:
url
- the partial url to redirect to.- Returns:
- a document view instance.
-
getUrlFromDocumentView
Builds an url from the given document view.The url should be partial: it should not hold the context path information (server:port/nuxeo).
-