Nuxeo Server

How to Customize Startup Redirection

Updated: October 13, 2017 Page Information Edit on GitHub

This page is scheduled for review and update. Check back soon for updated content!

After connection, the startup page is defined by the method StartupHelper.initDomainAndFindStartupPage. If you want to customize the startup redirection, you have to override the method initDomainAndFindStartupPage in a custom class.

The following example presents a customization redirecting every user to the dashboard except for the Administrators:

@Name("startupHelper")
@Scope(SESSION)
public class CustomStartupHelper extends StartupHelper {

    private static final long serialVersionUID = 1L;

    @Override
    @Begin(id = "#{conversationIdGenerator.nextMainConversationId}", join = true)
    public String initDomainAndFindStartupPage(String domainTitle, String viewId) {
        String result = super.initDomainAndFindStartupPage(domainTitle, viewId);
        if (((NuxeoPrincipal) documentManager.getPrincipal()).isAdministrator()) {
            return result;
        } else {
            return dashboardNavigationHelper.navigateToDashboard();
        }
    }
}

The method initDomainAndFindStartupPage must return an existing view id. For example, the following view id can be used to customize the redirection:

  • view_servers to access the list of available servers
  • view_home to access the dashboard of the current user
  • view_domains to access the list of domains
  • search to access the search page
9 days ago manonlumeau NXDOC-1346-FT review screenshot
a year ago Solen Guitter 9 | pdate how-to topic
2 years ago Manon Lumeau 8
2 years ago Gildas Lefevre 7
3 years ago Manon Lumeau 6
3 years ago Solen Guitter 5
3 years ago Gildas Lefevre 4
3 years ago Gildas Lefevre 3
3 years ago Gildas Lefevre 2
3 years ago Gildas Lefevre 1
History: Created by Gildas Lefevre