cancel
Showing results for 
Search instead for 
Did you mean: 

How to validate duplicate workspace and Folder in Nuxeo

Ramakrishna_Gad
Confirmed Champ
Confirmed Champ

Hello, I need validate the creation of workspace/Folder with unique name. In the Nuxeo am able to create workspace and folders with same existing name. How to validate this.

1 ACCEPTED ANSWER

rg1_
Star Contributor
Star Contributor

In order to reliably enforce name uniqueness within a folder, low-level infrastructure is needed. The Nuxeo Shared State Manager NXP-14553 appears to be Nuxeo's long-term solution to address this issue. In the mean time, we have developed a custom unicity-folder marketplace add-on that defines a new UnicityFolder type that enforces name uniqueness for its children. This add-on introduces database-specific SQL uniqueness constraints on the hierarchy table to support reliable enforcement of name uniqueness. Would you be interested in such an add-on?

View answer in original post

3 REPLIES 3

Damien_Metzler
Star Contributor
Star Contributor

The solution is to create an EventListenr that on the documentCreated Event check if the name is not already used. If it's used you can throw RecoverableClientException in the listener which will show an error message in the UI

rg1_
Star Contributor
Star Contributor

In order to reliably enforce name uniqueness within a folder, low-level infrastructure is needed. The Nuxeo Shared State Manager NXP-14553 appears to be Nuxeo's long-term solution to address this issue. In the mean time, we have developed a custom unicity-folder marketplace add-on that defines a new UnicityFolder type that enforces name uniqueness for its children. This add-on introduces database-specific SQL uniqueness constraints on the hierarchy table to support reliable enforcement of name uniqueness. Would you be interested in such an add-on?

Ramakrishna_Gad
Confirmed Champ
Confirmed Champ

yes , am interested in add-on

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.