Nuxeo Enterprise Platform 5.4

org.nuxeo.dam.platform.context.reuse
Class RestHelper

java.lang.Object
  extended by org.nuxeo.dam.platform.context.reuse.RestHelper
All Implemented Interfaces:
Serializable

@Name(value="restHelper")
@Scope(value=EVENT)
@Install(precedence=30)
public class RestHelper
extends Object
implements Serializable

TODO: remove RestHelper : waiting Techlead solution (don't want NavigationContext dependency) override RestHelper component without NavigationContext

Author:
Benjamin JALON
See Also:
Serialized Form

Constructor Summary
RestHelper()
           
 
Method Summary
static String addCurrentConversationParameters(String url)
          Adds current conversation request parameters to the given url.
 String getBaseURL()
           
static Manager getConversationManager()
           
 org.nuxeo.ecm.platform.url.api.DocumentView getDocumentView()
           
 org.nuxeo.ecm.platform.url.api.DocumentView getNewDocumentView()
           
 void setDocumentView(org.nuxeo.ecm.platform.url.api.DocumentView documentView)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestHelper

public RestHelper()
Method Detail

getBaseURL

@Factory(value="baseURL",
         scope=CONVERSATION)
public String getBaseURL()

getDocumentView

public org.nuxeo.ecm.platform.url.api.DocumentView getDocumentView()

setDocumentView

public void setDocumentView(org.nuxeo.ecm.platform.url.api.DocumentView documentView)

getNewDocumentView

public org.nuxeo.ecm.platform.url.api.DocumentView getNewDocumentView()

getConversationManager

public static Manager getConversationManager()
Returns:
the Seam conversation manager.

addCurrentConversationParameters

public static String addCurrentConversationParameters(String url)
Adds current conversation request parameters to the given url.

Returns:
the url with additional conversation request parameters

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.