@Name(value="startupHelper") @Scope(value=SESSION) @Install(precedence=10) public class StartupHelper extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected DashboardNavigationHelper |
dashboardNavigationHelper |
protected static String |
DOCUMENT_MANAGEMENT_TAB |
protected CoreSession |
documentManager |
protected static String |
DOMAIN_TYPE |
protected static String |
DOMAINS_VIEW |
protected org.jboss.seam.international.LocaleSelector |
localeSelector
Deprecated.
since 5.6: use
RestHelper.setLocaleString(String) instead of
LocaleSelector.setLocaleString(String) |
protected NavigationContext |
navigationContext |
protected RepositoryManager |
repositoryManager |
protected RestHelper |
restHelper |
protected static String |
SERVERS_VIEW |
protected org.jboss.seam.contexts.Context |
sessionContext |
protected WebActions |
webActions |
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() |
protected static final String SERVERS_VIEW
protected static final String DOMAINS_VIEW
protected static final String DOMAIN_TYPE
protected static final String DOCUMENT_MANAGEMENT_TAB
@In(create=true) protected transient RepositoryManager repositoryManager
@In(create=true) protected transient NavigationContext navigationContext
@In(create=true) protected transient WebActions webActions
@In protected transient org.jboss.seam.contexts.Context sessionContext
@In(create=true) protected DashboardNavigationHelper dashboardNavigationHelper
@In(create=true, required=false) protected transient CoreSession documentManager
@In(create=true) @Deprecated protected transient org.jboss.seam.international.LocaleSelector localeSelector
RestHelper.setLocaleString(String)
instead of
LocaleSelector.setLocaleString(String)
@In(create=true) protected transient RestHelper restHelper
public StartupHelper()
public String initServerAndFindStartupPage()
@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.