thanx On Tue, Jan 17, 2012 at 6:00 AM, <[email protected]> wrote:
> Send ECM mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.nuxeo.com/mailman/listinfo/ecm > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of ECM digest..." > > > Today's Topics: > > 1. how to override the default group.xsd schema? > ([email protected]) > 2. Re: how to override the default group.xsd schema? > ([email protected]) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 16 Jan 2012 20:25:09 -0600 > From: [email protected] > To: [email protected] > Subject: [Ecm] how to override the default group.xsd schema? > Message-ID: <[email protected]> > > > I need to extend the default group schema with the same > name, my contribution looks as follow but nothing happen, > what am i doing wrong? > > my contribution: > > <require>org.nuxeo.ecm.directory.types</require> > > <extension target="org.nuxeo.ecm.core.schema.TypeService" > point="schema"> > <schema name="group" src="directoryschema/group.xsd"/> > </extension> > > <require>org.nuxeo.ecm.directory.sql.storage</require> > <extension > target="org.nuxeo.ecm.directory.sql.SQLDirectoryFactory" > point="directories"> > <directory name="groupDirectory"> > <schema>group</schema> > <dataSource>jdbc/nxsqldirectory</dataSource> > <table>groups</table> > <idField>groupname</idField> > <autoincrementIdField>false</autoincrementIdField> > <dataFile>data/groups.csv</dataFile> > > <createTablePolicy>on_missing_columns</createTablePolicy> > <cacheTimeout>360</cacheTimeout> > <cacheMaxSize>1000</cacheMaxSize> > <references> > <inverseReference field="parentGroups" > directory="groupDirectory" dualReferenceField="subGroups"/> > <tableReference field="members" > directory="userDirectory" table="user2group" > sourceColumn="groupId" targetColumn="userId" > schema="user2group" dataFile="data/user2group.csv"/> > <tableReference field="subGroups" > directory="groupDirectory" table="group2group" > sourceColumn="parentGroupId" targetColumn="childGroupId" > schema="group2group"/> > </references> > </directory> > </extension> > > > directoryschema/group.xsd: > > <xs:schema > targetNamespace="http://www.nuxeo.org/ecm/schemas/group" > xmlns:xs="http://www.w3.org/2001/XMLSchema" > xmlns:nxs="http://www.nuxeo.org/ecm/schemas/group"> > > <xs:include schemaLocation="base.xsd" /> > > <xs:element name="groupname" type="xs:string" /> > <xs:element name="grouplabel" type="xs:string" /> > <xs:element name="groupcompany" type="xs:string" /> > <xs:element name="description" type="xs:string" /> > > <!-- references --> > <xs:element name="members" type="nxs:stringList" /> > <xs:element name="subGroups" type="nxs:stringList" /> > > <!-- inverse reference --> > <xs:element name="parentGroups" type="nxs:stringList" /> > > </xs:schema> > > > Thanks in advanced > > > ------------------------------ > > Message: 2 > Date: Tue, 17 Jan 2012 09:54:31 +0100 > From: [email protected] > To: [email protected] > Subject: Re: [Ecm] how to override the default group.xsd schema? > Message-ID: <[email protected]> > > Add override="true" as parameter of your schema > description. > > <schema override="true" name="group" > src="directoryschema/group.xsd"/> > > You must have a message in your log that says your > contribution is skipped as you didn't put this attribute :) > I'm not sure but I think... > > > ------------------------------ > > _______________________________________________ > ECM mailing list > [email protected] > http://lists.nuxeo.com/mailman/listinfo/ecm > > > End of ECM Digest, Vol 69, Issue 12 > *********************************** >
--- Mailing list: [email protected] Forum: http://forum.nuxeo.org/f/1/
