|
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 java.lang.String |
addCurrentConversationParameters(java.lang.String url)
Adds current conversation request parameters to the given url. |
static java.lang.String |
addMainConversationParameters(java.lang.String url)
Adds main conversation request parameters to the given url. |
java.lang.String |
getBaseURL()
|
java.lang.String |
getContextPath()
|
static Manager |
getConversationManager()
|
DocumentView |
getDocumentView()
|
DocumentView |
getNewDocumentView()
|
java.lang.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 java.lang.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 java.lang.String addCurrentConversationParameters(java.lang.String url)
url
-
public static java.lang.String addMainConversationParameters(java.lang.String url)
url
-
@Factory(value="baseURL", scope=CONVERSATION) public java.lang.String getBaseURL()
@Factory(value="contextPath", scope=CONVERSATION) public java.lang.String getContextPath()
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |