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()
UIDSequencer
UIDSequencer
UIDSequencer getSequencer(String name)
UIDSequencer
by it's namename
- the name of the UIDSequencer
UIDSequencer
matching the nameUIDGenerator getUIDGeneratorFor(DocumentModel doc)
Choice is made following the document type and the generator configuration.
void setUID(DocumentModel doc) throws PropertyNotFoundException
PropertyNotFoundException
String createUID(DocumentModel doc)
Copyright © 2017 Nuxeo. All rights reserved.