Package org.nuxeo.ecm.core.uidgen
Interface UIDGeneratorService
- All Known Implementing Classes:
UIDGeneratorComponent
public interface UIDGeneratorService
-
Method Summary
Modifier and TypeMethodDescriptioncreateUID(DocumentModel doc) Retrieves the defaultUIDSequencergetSequencer(String name) RetrievesUIDSequencerby it's nameRetrieves allUIDSequencer.Returns the uid generator to use for this document.voidsetUID(DocumentModel doc) Creates a new UID for the given doc and sets the field configured in the generator component with this value.
-
Method Details
-
getSequencers
List<UIDSequencer> getSequencers()Retrieves allUIDSequencer.- Returns:
- all
UIDSequencer. - Since:
- 2025.0
-
getSequencer
UIDSequencer getSequencer()Retrieves the defaultUIDSequencer- Returns:
- the default
UIDSequencer - Since:
- 7.3
-
getSequencer
RetrievesUIDSequencerby it's name- Parameters:
name- the name of theUIDSequencer- Returns:
- the
UIDSequencermatching the name - Since:
- 7.3
-
getUIDGeneratorFor
Returns the uid generator to use for this document.Choice is made following the document type and the generator configuration.
-
setUID
Creates a new UID for the given doc and sets the field configured in the generator component with this value.- Throws:
PropertyNotFoundException
-
createUID
- Returns:
- a new UID for the given document
-