public class TTCUIDGeneratorService
extends org.nuxeo.runtime.model.DefaultComponent
| Modifier and Type | Field and Description |
|---|---|
static String |
ID |
static String |
UID_GENERATORS_EXTENSION_POINT |
| Constructor and Description |
|---|
TTCUIDGeneratorService() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(org.nuxeo.runtime.model.ComponentContext context) |
String |
createUID(org.nuxeo.ecm.core.api.DocumentModel doc) |
void |
deactivate(org.nuxeo.runtime.model.ComponentContext context) |
<T> T |
getAdapter(Class<T> adapter) |
org.nuxeo.ecm.platform.uidgen.UIDGenerator |
getDefaultUIDGenerator()
Returns the default uid generator, if available.
|
org.nuxeo.ecm.platform.uidgen.UIDSequencer |
getSequencer() |
org.nuxeo.ecm.platform.uidgen.UIDGenerator |
getUIDGeneratorFor(org.nuxeo.ecm.core.api.DocumentModel doc)
Returns the uid generator to use for this document.
|
void |
registerExtension(org.nuxeo.runtime.model.Extension extension) |
void |
setUID(org.nuxeo.ecm.core.api.DocumentModel doc)
Creates a new UID for the given doc and sets the field configured in the
generator component with this value.
|
void |
unregisterExtension(org.nuxeo.runtime.model.Extension extension) |
public static final String ID
public static final String UID_GENERATORS_EXTENSION_POINT
public void activate(org.nuxeo.runtime.model.ComponentContext context)
throws Exception
activate in interface org.nuxeo.runtime.model.Componentactivate in class org.nuxeo.runtime.model.DefaultComponentExceptionpublic void deactivate(org.nuxeo.runtime.model.ComponentContext context)
throws Exception
deactivate in interface org.nuxeo.runtime.model.Componentdeactivate in class org.nuxeo.runtime.model.DefaultComponentExceptionpublic void registerExtension(org.nuxeo.runtime.model.Extension extension)
throws Exception
registerExtension in interface org.nuxeo.runtime.model.ExtensibleregisterExtension in class org.nuxeo.runtime.model.DefaultComponentExceptionpublic org.nuxeo.ecm.platform.uidgen.UIDSequencer getSequencer()
public void unregisterExtension(org.nuxeo.runtime.model.Extension extension)
throws Exception
unregisterExtension in interface org.nuxeo.runtime.model.ExtensibleunregisterExtension in class org.nuxeo.runtime.model.DefaultComponentExceptionpublic org.nuxeo.ecm.platform.uidgen.UIDGenerator getUIDGeneratorFor(org.nuxeo.ecm.core.api.DocumentModel doc)
Choice is made following the document type and the generator configuration.
public org.nuxeo.ecm.platform.uidgen.UIDGenerator getDefaultUIDGenerator()
public void setUID(org.nuxeo.ecm.core.api.DocumentModel doc)
throws org.nuxeo.ecm.core.api.DocumentException
org.nuxeo.ecm.core.api.DocumentExceptionpublic String createUID(org.nuxeo.ecm.core.api.DocumentModel doc) throws org.nuxeo.ecm.core.api.DocumentException
org.nuxeo.ecm.core.api.DocumentExceptionpublic <T> T getAdapter(Class<T> adapter)
getAdapter in interface org.nuxeo.runtime.model.AdaptablegetAdapter in class org.nuxeo.runtime.model.DefaultComponentCopyright © 2019. All rights reserved.