@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  | 
static String | 
DOMAINS_VIEW  | 
protected NavigationContext | 
navigationContext  | 
protected PageProviderService | 
pageProviderService  | 
protected RepositoryManager | 
repositoryManager  | 
protected RestHelper | 
restHelper  | 
static String | 
SERVERS_VIEW  | 
protected org.jboss.seam.contexts.Context | 
sessionContext  | 
static String | 
STARTUP_PAGE_PROVIDER_NAME  | 
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()  | 
public static final String STARTUP_PAGE_PROVIDER_NAME
public static final String SERVERS_VIEW
public 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) protected transient RestHelper restHelper
@In(create=true) protected transient PageProviderService pageProviderService
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 © 2019 Nuxeo. All rights reserved.