|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.platform.ui.web.rest.RestHelper
@Name(value="restHelper") @Scope(value=EVENT) public class RestHelper
Helper for generation of URLs and related update of document context.
Constructor Summary | |
---|---|
RestHelper()
|
Method Summary | |
---|---|
static String |
addCurrentConversationParameters(String url)
Adds current conversation request parameters to the given url. |
static String |
addMainConversationParameters(String url)
Adds main conversation request parameters to the given url. |
String |
doPrint(DocumentModel doc,
String defaultTheme)
|
String |
doPrint(String defaultTheme)
|
String |
getBaseURL()
|
String |
getContextPath()
|
static Manager |
getConversationManager()
|
DocumentView |
getDocumentView()
|
static HttpServletRequest |
getHttpServletRequest()
|
static HttpServletResponse |
getHttpServletResponse()
|
DocumentView |
getNewDocumentView()
|
String |
getPrintUrl(DocumentModel doc,
String defaultTheme)
|
String |
getPrintUrl(String defaultTheme)
|
static void |
handleRedirect(HttpServletResponse response,
String url)
|
String |
initContextFromRestRequest(DocumentView docView)
Sets current server location (core repository) and core document as provided by the document view. |
void |
setDocumentView(DocumentView docView)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RestHelper()
Method Detail |
---|
@Begin(id="#{conversationIdGenerator.currentOrNewMainConversationId}", join=true) public String initContextFromRestRequest(DocumentView docView) throws ClientException
Only sets current server location if the document reference is null.
ClientException
public void setDocumentView(DocumentView docView)
public DocumentView getNewDocumentView()
public DocumentView getDocumentView()
public static Manager getConversationManager()
public static String addCurrentConversationParameters(String url)
url
-
public static String addMainConversationParameters(String url)
url
-
@Factory(value="baseURL", scope=CONVERSATION) public String getBaseURL()
@Factory(value="contextPath", scope=CONVERSATION) public String getContextPath()
public String doPrint(String defaultTheme) throws IOException
IOException
public String doPrint(DocumentModel doc, String defaultTheme) throws IOException
IOException
public String getPrintUrl(String defaultTheme)
public String getPrintUrl(DocumentModel doc, String defaultTheme)
public static HttpServletResponse getHttpServletResponse()
public static HttpServletRequest getHttpServletRequest()
public static void handleRedirect(HttpServletResponse response, String url) throws IOException
IOException
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |