Class UserManagerResolver

java.lang.Object
org.nuxeo.ecm.core.schema.types.resolver.AbstractObjectResolver
org.nuxeo.ecm.platform.usermanager.UserManagerResolver
All Implemented Interfaces:
Serializable, ObjectResolver

public class UserManagerResolver extends AbstractObjectResolver implements ObjectResolver
This ObjectResolver allows to manage integrity for fields containing group or user references.

References should have a prefix. NuxeoPrincipal.PREFIX for users, NuxeoGroup.PREFIX for groups.

If only user or group are configured, the prefix is not needed but still supported. If noth user and group are configured, reference without prefix are resolved as user first.

To use it, put the following code in your schema XSD :

 
 <!-- user or group resolver -->
 <xs:simpleType name="userOrGroupReference">
   <xs:restriction base="xs:string" ref:resolver="userManagerResolver" />
 </xs:simpleType>

 <!-- user resolver -->
 <xs:simpleType name="userReference">
   <xs:restriction base="xs:string" ref:resolver="userManagerResolver" ref:type="user" />
 </xs:simpleType>

 <!-- group resolver -->
 <xs:simpleType name="groupReference">
   <xs:restriction base="xs:string" ref:resolver="userManagerResolver" ref:type="group" />
 </xs:simpleType>
 
 
Since:
7.1
See Also: