@Name(value="startupHelper") @Scope(value=SESSION) public class SocialWorkspaceStartupHelper extends StartupHelper
StartupHelper
to redirect user into their dashboards after
login in.Constructor and Description |
---|
SocialWorkspaceStartupHelper() |
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.
|
initServerAndFindStartupPage, setupCurrentUser
@Begin(id="#{conversationIdGenerator.nextMainConversationId}", join=true) public String initDomainAndFindStartupPage(String domainTitle, String viewId)
StartupHelper
If several servers are available, let the user choose.
initDomainAndFindStartupPage
in class StartupHelper
Copyright © 2015 Nuxeo SA. All rights reserved.