cancel
Showing results for 
Search instead for 
Did you mean: 

Redirect after login

abdoulboubacar_
Champ in-the-making
Champ in-the-making

Hello,

Is't possible to redirect user in worspaces after login using only nuxeo studio ?

Thank you, Abdoul

1 ACCEPTED ANSWER

Not applicable

Hi Abdoul,

you can follow the instructions in this answer but your class should look like this :


@Name("startupHelper")
@Scope(SESSION)
@Install(precedence=Install.DEPLOYMENT)
public class MyStartupHelper extends StartupHelper {

	public String initDomainAndFindStartupPage(String domainTitle, String viewId) {
		String view = super.initDomainAndFindStartupPage(domainTitle, viewId);
		PathRef ref = new PathRef("/default-domain/workspaces/Workspace 1");
		try {
			if (documentManager.exists(ref)) {
				view =  navigationContext.navigateToRef(ref);
			}
		} catch (ClientException e) {
			// TODO
		}
		return view;
	}
}

I hope it helps.

View answer in original post

2 REPLIES 2

Not applicable

Hi Abdoul,

you can follow the instructions in this answer but your class should look like this :


@Name("startupHelper")
@Scope(SESSION)
@Install(precedence=Install.DEPLOYMENT)
public class MyStartupHelper extends StartupHelper {

	public String initDomainAndFindStartupPage(String domainTitle, String viewId) {
		String view = super.initDomainAndFindStartupPage(domainTitle, viewId);
		PathRef ref = new PathRef("/default-domain/workspaces/Workspace 1");
		try {
			if (documentManager.exists(ref)) {
				view =  navigationContext.navigateToRef(ref);
			}
		} catch (ClientException e) {
			// TODO
		}
		return view;
	}
}

I hope it helps.

And make sure you have an empty file named 'seam.properties' in src/main/resource of your project.

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.