Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.webapp.helpers
Class StartupHelper

java.lang.Object
  extended by org.nuxeo.ecm.webapp.helpers.StartupHelper
All Implemented Interfaces:
java.io.Serializable

@Name(value="startupHelper")
@Scope(value=SESSION)
@Install(precedence=10)
public class StartupHelper
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
static java.lang.String LANGUAGE_PARAMETER
           
 
Constructor Summary
StartupHelper()
           
 
Method Summary
 java.lang.String initDomainAndFindStartupPage(java.lang.String domainTitle, java.lang.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.
 java.lang.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 java.lang.String LANGUAGE_PARAMETER
See Also:
Constant Field Values
Constructor Detail

StartupHelper

public StartupHelper()
Method Detail

initServerAndFindStartupPage

public java.lang.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 java.lang.String initDomainAndFindStartupPage(java.lang.String domainTitle,
                                                                 java.lang.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 Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.