org.nuxeo.dam.platform.context
Class StartupHelper
java.lang.Object
org.nuxeo.dam.platform.context.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()
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. |
void |
setupCurrentUser()
|
LANGUAGE_PARAMETER
public static final String LANGUAGE_PARAMETER
- See Also:
- Constant Field Values
ASSETS_VIEW
public static final String ASSETS_VIEW
- See Also:
- Constant Field Values
StartupHelper
public StartupHelper()
initDomainAndFindStartupPage
@Begin(id="#{conversationIdGenerator.nextMainConversationId}",
join=true)
public String initDomainAndFindStartupPage()
- 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.