Class DocumentPreviewCodec

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

public class DocumentPreviewCodec extends AbstractDocumentViewCodec
Author:
Thomas Roger
  • Field Details

  • Constructor Details

    • DocumentPreviewCodec

      public DocumentPreviewCodec()
  • Method Details

    • getPrefix

      public String getPrefix()
      Specified by:
      getPrefix in interface DocumentViewCodec
      Overrides:
      getPrefix in class AbstractDocumentViewCodec
    • getDocumentViewFromUrl

      public DocumentView getDocumentViewFromUrl(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 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).