Nuxeo Enterprise Platform 5.4

org.nuxeo.dam.platform.context
Class StartupHelper

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

Field Summary
static String ASSETS_VIEW
           
static String LANGUAGE_PARAMETER
           
 
Constructor Summary
StartupHelper()
           
 
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()
           
 
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

ASSETS_VIEW

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

StartupHelper

public StartupHelper()
Method Detail

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

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.