|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.nuxeo.ecm.platform.uidgen.AbstractUIDGenerator
public abstract class AbstractUIDGenerator
The abstract class adds some useful methods.
Constructor Summary | |
---|---|
AbstractUIDGenerator()
|
Method Summary | |
---|---|
String |
getPropertyName()
Get the property name used to set the identifier value. |
String[] |
getPropertyNames()
Gets the property name used to set the identifier value |
void |
setPropertyName(String propertyName)
Sets the property name used to set the identifier value. |
void |
setPropertyNames(String[] propertyNames)
Set the properties used to set the identifier value. |
void |
setSequencer(UIDSequencer sequencer)
The sequencer used to generate unique numbers sequencially. |
void |
setUID(DocumentModel document)
Creates a new UID for the given doc and sets the field configured in the generator component with this value. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.nuxeo.ecm.platform.uidgen.UIDGenerator |
---|
createUID, getSequenceKey |
Constructor Detail |
---|
public AbstractUIDGenerator()
Method Detail |
---|
public final void setSequencer(UIDSequencer sequencer)
UIDGenerator
setSequencer
in interface UIDGenerator
public String getPropertyName()
UIDGenerator
getPropertyName
in interface UIDGenerator
UIDGenerator.getPropertyNames()
public void setPropertyName(String propertyName)
UIDGenerator
The property must be a string like 'schemaPrefix:fieldName' ; the syntax 'schemaName:fieldName' is also accepted. Could be used as a convenient method when there is only one property to set.
setPropertyName
in interface UIDGenerator
UIDGenerator.setPropertyNames(String[])
public void setPropertyNames(String[] propertyNames)
UIDGenerator
setPropertyNames
in interface UIDGenerator
public String[] getPropertyNames()
UIDGenerator
getPropertyNames
in interface UIDGenerator
public void setUID(DocumentModel document) throws DocumentException
UIDGenerator
setUID
in interface UIDGenerator
DocumentException
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |