i have created my own schema and doctType and i have set uid
field to be visible during view and summary layout .
and i have added a new file
nxuidgenerator-contrib-service.xml in OSGI-Inf of
nuxeo-platform-uidgen-core-5.4.0.1.jar and in
nxuidgenerator-contrib-service.xml i have placed this code
,
<?xml version="1.0"?>
<component
name="org.nuxeo.ecm.platform.uidgen.testGenerators">
<extension
target="org.nuxeo.ecm.core.persistence.PersistenceComponent
"
point="hibernate">
<hibernateConfiguration name="NXUIDSequencer">
<properties>
<property
name="hibernate.connection.url">jdbc:hsqldb:mem:.;sql.enforce_strict_size=true
</property>;
<property
name="hibernate.connection.driver_class">org.hsqldb.jdbcDriver
</property>
<property
name="hibernate.connection.auto_commit">true</property>
<property
name="hibernate.connection.pool_size">1</property>;
<property
name="hibernate.dialect">org.hibernate.dialect.HSQLDialect
</property>;
<property
name="hibernate.hbm2ddl.auto">update</property>;
<property
name="hibernate.show_sql">false</property>; // true to
debug
<property
name="hibernate.format_sql">true</property>;
</properties>
</hibernateConfiguration>
</extension>
<extension target="org.nuxeo.ecm.core.schema.TypeService"
point="schema">
<schema name="unique" src="schema/uniquefeatureid.xsd"
/>
</extension>
<!-- Sample generators -->
<extension
target="org.nuxeo.ecm.platform.uidgen.service.UIDGeneratorService
"
point="generators">
<generator name="geideDoc"
class="org.nuxeo.ecm.platform.uidgen.generators.UIDGenerator1
">
<propertyName>uid:uid</propertyName>
<propertyName>unique:uid2</propertyName>
<docType>as</docType>
<docType>DOc</docType>
</generator>
<generator name="coreDocs"
class="org.nuxeo.ecm.platform.uidgen.generators.UIDGCoreDocument
">
<propertyName>uid:uid</propertyName>
<docType>File</docType>
<docType>Folder</docType>
<docType>Note</docType>
</generator>
</extension>
</component>
after uploading the file, the uid2 field still remained
blanck and values are not populated from the generator.
how to implement this thing and in which files i ned to
update?>
---
Mailing list: [email protected]
Forum: http://forum.nuxeo.org/f/1/