public interface UIDGeneratorService
| Modifier and Type | Method and Description |
|---|---|
String |
createUID(DocumentModel doc) |
UIDSequencer |
getSequencer()
Retrieves the default
UIDSequencer |
UIDSequencer |
getSequencer(String name)
Retrieves
UIDSequencer by it's name |
UIDGenerator |
getUIDGeneratorFor(DocumentModel doc)
Returns the uid generator to use for this document.
|
void |
setUID(DocumentModel doc)
Creates a new UID for the given doc and sets the field configured in the generator component with this value.
|
UIDSequencer getSequencer()
UIDSequencerUIDSequencerUIDSequencer getSequencer(String name)
UIDSequencer by it's namename - the name of the UIDSequencerUIDSequencer matching the nameUIDGenerator getUIDGeneratorFor(DocumentModel doc)
Choice is made following the document type and the generator configuration.
void setUID(DocumentModel doc) throws PropertyNotFoundException
PropertyNotFoundExceptionString createUID(DocumentModel doc)
Copyright © 2019 Nuxeo. All rights reserved.