hi!
i'm trying to make a new users types, so i use nuxeo-book(authentification, 
groups users ) chapter to do that. 
i fellowed the instructions but i don't see the new field (petName) when i 
create a new user.
my question is: is there somme one who did that successufelly and if there is 
changes to do for spéscification.

---------------------------------------------------------------------------------------------
*myusers.xsd*
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
xmlns:nxs="http://www.nuxeo.org/ecm/schemas/myuser/";
targetNamespace="http://www.nuxeo.org/ecm/schemas/myuser";>
<xs:include schemaLocation="base.xsd" />
<xs:element name="username" type="xs:string" />
<xs:element name="password" type="xs:string" />
<xs:element name="email" 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="petName" type="xs:string" />
<!-- inverse reference -->
<xs:element name="groups" type="nxs:stringList" />
</xs:schema>
----------------------------------------------------------------------------------------------
*userManager.xml:*
<?xml version="1.0" encoding="UTF-8"?>
<extension target="org.nuxeo.ecm.platform.usermanager.UserService" 
point="userManager">
<userManager>
<users>
<directory>MyUserDirectory</directory>
<emailField>email</emailField>
<searchFields append="true">
<searchField>username</searchField>
<searchField>firstName</searchField>
<searchField>lastName</searchField>
<searchField>petName</searchField>
</searchFields>
</users>
</userManager>
</extension>
---------------------------------------------------------------------------------------------------
*manifest.mf:*
Manifest-Version: 1.0
Bundle-ManifestVersion: 1
Bundle-Name: cdta project
Bundle-SymbolicName: ecm;singleton:=true
Bundle-Version: 1.0.0
Bundle-Vendor: Nuxeo
Provide-Package: pack
Require-Bundle: org.nuxeo.runtime,
 org.nuxeo.ecm.core.api,
 org.nuxeo.ecm.core,
 org.nuxeo.ecm.webapp.core
Nuxeo-Component: 
 OSGI-INF/theme-contrib.xml,
 OSGI-INF/MyUserDirectory.xml,
 OSGI-INF/event-listener-contrib.xml,
 OSGI-INF/schema-contrib.xml,
 OSGI-INF/userManager.xml,
 OSGI-INF/user-interface.xml,
 OSGI-INF/deployment-fragment.xml
---------------------------------------------------------------------------------------------
*MyuserDirectory:*
<?xml version="1.0" encoding="UTF-8"?>
<extension target="org.nuxeo.ecm.directory.sql.SQLDirectoryFactory" 
point="directories">
<directory name="MyUserDirectory">
<schema>myuser</schema>
<idField>username</idField>
<passwordField>password</passwordField>
<dataSource>java:/nxsqldirectory</dataSource>
<table>myusers</table>
<dataFile>myusers.csv</dataFile>
<createTablePolicy>on_missing_columns</createTablePolicy>
<references>
<inverseReference field="groups" directory="groupDirectory"
dualReferenceField="members" />
</references>
</directory>
</extension>
------------------------------------------------------------------------------------------------
--
Posted by "isteve7" at Nuxeo Discussions <http://nuxeo.org/discussions>
View the complete thread: 
<http://www.nuxeo.org/discussions/thread.jspa?threadID=2436#6617>
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Reply via email to