org.nuxeo.ecm.webapp.helpers
Class StartupHelper
java.lang.Object
org.nuxeo.ecm.webapp.helpers.StartupHelper
- All Implemented Interfaces:
- Serializable
@Name(value="startupHelper")
@Scope(value=SESSION)
@Install(precedence=10)
public class StartupHelper
- extends Object
- implements Serializable
- See Also:
- Serialized Form
Method Summary |
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()
|
LANGUAGE_PARAMETER
public static final String LANGUAGE_PARAMETER
- See Also:
- Constant Field Values
StartupHelper
public StartupHelper()
initServerAndFindStartupPage
public String initServerAndFindStartupPage()
throws ClientException
- Initializes the context with the principal id, and try to connect to the
default server if any. If several servers are available, let the user
choose.
- Returns:
- the view_id of the contextually computed startup page
- Throws:
ClientException
initDomainAndFindStartupPage
@Begin(id="#{conversationIdGenerator.nextMainConversationId}",
join=true)
public 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.
If several servers are available, let the user choose.
- Returns:
- the view id of the contextually computed startup page
setupCurrentUser
public void setupCurrentUser()
Copyright © 2011 Nuxeo SAS. All Rights Reserved.