I don't have a prefix in the definition of the schema, these are the files I modified:
*usuario.xsd:* <?xml version="1.0"?> <xs:schema targetNamespace="http://www.nuxeo.org/ecm/schemas/user" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:nxs="http://www.nuxeo.org/ecm/schemas/user"> <xs:include schemaLocation="base.xsd" /> <xs:element name="username" type="xs:string" /> <xs:element name="password" type="xs:string" /> <xs:element name="firstName" type="xs:string" /> <xs:element name="lastName" type="xs:string" /> <xs:element name="company" type="xs:string" /> <xs:element name="email" type="xs:string" /> <xs:element name="oficina" type="xs:string" /> <!-- inverse reference --> <xs:element name="groups" type="nxs:stringList" /> </xs:schema> *usuarios.csv:* username,password,firstName,lastName,company,email,oficina "username","pass","username","surname","company","[email protected]","oficina1" *schema-contrib.xml:* <extension target="org.nuxeo.ecm.core.schema.TypeService" point="schema"> <schema name="usuario" src="schemas/usuario.xsd" /> </extension> *user-contrib.xml:* <?xml version="1.0"?> <component name="es.test.ui.user"> <require>org.nuxeo.ecm.platform.types</require> <extension target="org.nuxeo.ecm.platform.types.TypeService" point="types"> <type id="User" remove="true" /> <type id="User"> <label>User</label> <icon>/icons/user.gif</icon> <default-view>view_user</default-view> <layouts mode="any"> <layout>user</layout> </layouts> </type> </extension> </component> *directories-user-contrib.xml:* <extension target="org.nuxeo.ecm.directory.sql.SQLDirectoryFactory" point="directories"> <directory name="usuarios"> <schema>usuario</schema> <dataSource>java:/nxsqldirectory</dataSource> <table>usuarios</table> <idField>username</idField> <passwordField>password</passwordField> <createTablePolicy>always</createTablePolicy> <dataFile>directories/usuarios.csv</dataFile> <references> <inverseReference field="groups" directory="grupos" dualReferenceField="members" /> </references> </directory> *usermanager-contrib.xml:* <extension target="org.nuxeo.ecm.platform.usermanager.UserService" point="userManager"> <userManager> <users> <directory>usuarios</directory> <emailField>email</emailField> <searchFields append="true"> <searchField>username</searchField> <searchField>firstName</searchField> <searchField>lastName</searchField> <searchField>oficina</searchField> </searchFields> <virtualUser id="admin" searchable="false"> <password>admin</password> <group>administrators</group> </virtualUser> </users> I also have a layout-user-contrib.xml copied from the nuxeo book page I posted in the other post, changing the value field schema from "user" to "usuario". -- Posted by "aldago" at Nuxeo Discussions <http://nuxeo.org/discussions> View the complete thread: <http://www.nuxeo.org/discussions/thread.jspa?threadID=2676#9133> _______________________________________________ ECM mailing list [email protected] http://lists.nuxeo.com/mailman/listinfo/ecm To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm
