Class 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" />
     <!-- user resolver -->
     <xs:simpleType name="userReference">
       <xs:restriction base="xs:string" ref:resolver="userManagerResolver" ref:type="user" />
     <!-- group resolver -->
     <xs:simpleType name="groupReference">
       <xs:restriction base="xs:string" ref:resolver="userManagerResolver" ref:type="group" />
    See Also:
    Serialized Form