Use case:
- Override userprofile schema in a bundle:
Schema:<?xml version="1.0"?> <xs:schema targetNamespace="http://www.nuxeo.core/ecm/schemas/userprofile/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:nxs="http://www.nuxeo.core/ecm/schemas/userprofile/"> <xs:include schemaLocation="core-types.xsd" /> <xs:include schemaLocation="base.xsd" /> <xs:element name="avatar" type="nxs:content" /> <xs:element name="birthdate" type="xs:date" /> <xs:element name="phonenumber" type="xs:string" /> <xs:element name="gender" type="xs:boolean" default="false" /> <xs:element name="locale" type="xs:string" /> <!-- Netflix user profile metadata --> <xs:element name="uservendor" type="nxs:stringList" /> <xs:element name="userrole" type="nxs:stringList" /> </xs:schema>
Contrib:
<?xml version="1.0"?> <component name="com.netflix.nuxeo.core.types.contrib"> <require>org.nuxeo.ecm.user.center.profile.core.types</require> <extension target="org.nuxeo.ecm.core.schema.TypeService" point="schema"> <schema name="userprofile" src="schemas/userprofile.xsd" prefix="userprofile" override="true"/> </extension> </component>
- hotreload the bundle
-> New fields are not taken in account