cancel
Showing results for 
Search instead for 
Did you mean: 

Automatic creation of user workspace

pibou_Bouvret
Elite Collaborator
Elite Collaborator

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

3 REPLIES 3

ron_1
Star Contributor
Star Contributor

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

pibou_Bouvret
Elite Collaborator
Elite Collaborator

After the loginSuccess event, currentUser happens to be null

pibou_Bouvret
Elite Collaborator
Elite Collaborator

Thanks everybody for answers