05-23-2013 01:39 PM
Hello,
Is't possible to redirect user in worspaces after login using only nuxeo studio ?
Thank you, Abdoul
05-26-2013 02:08 PM
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.
05-26-2013 02:08 PM
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.
06-17-2013 01:33 PM
And make sure you have an empty file named 'seam.properties' in src/main/resource of your project.
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.