|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UIDGenerator
Common interface for UID generators. All UID generators must implement this interface.
Method Summary | |
---|---|
String |
createUID(DocumentModel document)
Returns a new UID for the given doc. |
String |
getPropertyName()
Get the property name used to set the identifier value. |
String[] |
getPropertyNames()
Gets the property name used to set the identifier value |
String |
getSequenceKey(DocumentModel document)
|
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. |
Method Detail |
---|
void setPropertyName(String propertyName)
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.
propertyName
- setPropertyNames(String[])
String getPropertyName()
getPropertyNames()
void setPropertyNames(String[] propertyNames)
propertyNames
- String[] getPropertyNames()
void setSequencer(UIDSequencer sequencer)
sequencer
- String getSequenceKey(DocumentModel document) throws DocumentException
DocumentException
String createUID(DocumentModel document) throws DocumentException
DocumentException
void setUID(DocumentModel document) throws DocumentException
DocumentException
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |