Nuxeo Enterprise Platform 5.1

org.nuxeo.ecm.platform.url.codec.api
Interface DocumentViewCodec

All Known Implementing Classes:
AbstractDocumentViewCodec, DocumentFileCodec, DocumentIdCodec

public interface DocumentViewCodec


Method Summary
 DocumentView getDocumentViewFromUrl(String url)
          Extracts the document view from given url.
 String getPrefix()
           
 String getUrlFromDocumentView(DocumentView docView)
          Builds an url from the given document view.
 boolean handleDocumentView(DocumentView docView)
           
 boolean handleUrl(String url)
           
 void setPrefix(String prefix)
           
 

Method Detail

getPrefix

String getPrefix()

setPrefix

void setPrefix(String prefix)

handleDocumentView

boolean handleDocumentView(DocumentView docView)

handleUrl

boolean handleUrl(String url)

getDocumentViewFromUrl

DocumentView getDocumentViewFromUrl(String url)
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

String getUrlFromDocumentView(DocumentView docView)
Builds an url from the given document view.

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

Parameters:
docView -
Returns:

Nuxeo Enterprise Platform 5.1

Copyright ? 2007 Nuxeo SAS. All Rights Reserved.