Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.admin.url
Class AdminViewCodec

java.lang.Object
  extended by org.nuxeo.ecm.platform.url.service.AbstractDocumentViewCodec
      extended by org.nuxeo.ecm.admin.url.AdminViewCodec
All Implemented Interfaces:
DocumentViewCodec

public class AdminViewCodec
extends AbstractDocumentViewCodec

Should provide a url binding for admin screens

Author:
tiry

Field Summary
static String PREFIX
           
 
Constructor Summary
AdminViewCodec()
           
AdminViewCodec(String prefix)
           
 
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.
 
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

PREFIX

public static final String PREFIX
See Also:
Constant Field Values
Constructor Detail

AdminViewCodec

public AdminViewCodec()

AdminViewCodec

public AdminViewCodec(String prefix)
Method Detail

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).

Returns:

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.