Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.webapp.helpers
Class StartupHelper

java.lang.Object
  extended by 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

Field Summary
static String LANGUAGE_PARAMETER
           
 
Constructor Summary
StartupHelper()
           
 
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()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LANGUAGE_PARAMETER

public static final String LANGUAGE_PARAMETER
See Also:
Constant Field Values
Constructor Detail

StartupHelper

public StartupHelper()
Method Detail

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()

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.