@Name(value="startupHelper") @Scope(value=SESSION) @Install(precedence=10) public class StartupHelper extends Object implements Serializable
Constructor and Description |
---|
StartupHelper() |
Modifier and Type | Method and Description |
---|---|
String |
initDomainAndFindStartupPage(String domainTitle,
String viewId)
Initializes the context with the principal id, and tries to connect to the default server if any then: - if the
server has several domains, redirect to the list of domains - if the server has only one domain, select it and
redirect to viewId - if the server is empty, create a new domain with title 'domainTitle' and redirect to it on
viewId.
|
String |
initServerAndFindStartupPage()
Initializes the context with the principal id, and try to connect to the default server if any.
|
void |
setupCurrentUser() |
public String initServerAndFindStartupPage() throws ClientException
ClientException
@Begin(id="#{conversationIdGenerator.nextMainConversationId}", join=true) public String initDomainAndFindStartupPage(String domainTitle, String viewId)
If several servers are available, let the user choose.
public void setupCurrentUser()
Copyright © 2015 Nuxeo SA. All rights reserved.