Automatic creation of user workspace

Hi,

I'm using a portlet that gives a simple web access to Nuxeo using CMIS.

Users are supposed to store documents in their personnal workspaces. Unfortunately, User Workspaces are created on the fly when trying to access it through the UI so that, in the first place, they must connect to Nuxeo and access their personnal workspace, in order to use the portlet.

How can I create those Workspaces using an event such as logon or any other ?

Thanks

0 votes

1 answers

1807 views

ANSWER



Create a listener for the “loginSuccess” event that invokes UserWorkspaceService.getCurrentUserPersonalWorkspace().

1 votes



After the loginSuccess event, currentUser happens to be null
10/02/2013