Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.preview.codec
Class DocumentPreviewCodec

java.lang.Object
  extended by org.nuxeo.ecm.platform.url.service.AbstractDocumentViewCodec
      extended by org.nuxeo.ecm.platform.preview.codec.DocumentPreviewCodec
All Implemented Interfaces:
DocumentViewCodec

public class DocumentPreviewCodec
extends AbstractDocumentViewCodec

Author:
Thomas Roger

Field Summary
static java.lang.String PREFIX
           
static java.lang.String PROPERTY_PATH_KEY
           
static java.lang.String URLPattern
           
 
Constructor Summary
DocumentPreviewCodec()
           
 
Method Summary
 DocumentView getDocumentViewFromUrl(java.lang.String url)
          Extracts the document view from given url.
 java.lang.String getPrefix()
           
 java.lang.String getUrlFromDocumentView(DocumentView docView)
          Builds an url from the given document view.
 
Methods inherited from class org.nuxeo.ecm.platform.url.service.AbstractDocumentViewCodec
handleDocumentView, handleUrl, setPrefix
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_PATH_KEY

public static final java.lang.String PROPERTY_PATH_KEY
See Also:
Constant Field Values

PREFIX

public static final java.lang.String PREFIX
See Also:
Constant Field Values

URLPattern

public static final java.lang.String URLPattern
See Also:
Constant Field Values
Constructor Detail

DocumentPreviewCodec

public DocumentPreviewCodec()
Method Detail

getPrefix

public java.lang.String getPrefix()
Specified by:
getPrefix in interface DocumentViewCodec
Overrides:
getPrefix in class AbstractDocumentViewCodec

getDocumentViewFromUrl

public DocumentView getDocumentViewFromUrl(java.lang.String url)
Description copied from interface: DocumentViewCodec
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

public java.lang.String getUrlFromDocumentView(DocumentView docView)
Description copied from interface: DocumentViewCodec
Builds an url from the given document view.

The url should be partial: it should not hold the context path information (server:port/nuxeo).

Returns:

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.