<?xml version="1.0" encoding="utf-8"?>
<registry>

  <record name="ploneintranet.userprofile.hidden_fields">
    <field type="plone.registry.field.Tuple">
      <title>Hidden fields</title>
      <description>
        User profile fields that are hidden from the profile editing page
      </description>
      <value_type type="plone.registry.field.TextLine" />
      <required>False</required>
    </field>
    <value>
      <element>language</element>
      <element>preferred_content_language</element>
    </value>
  </record>

  <record name="ploneintranet.userprofile.hide_email_by_default">
    <field type="plone.registry.field.Bool">
      <title>Hide email address by default?</title>
      <description>
        If checked, the email address for all new users will be hidden by default from all others.
        A user who wishes to let other users see their email address can still enable this by
        editing their personal profile.
        If unchecked, new users have to explicitly disable showing their email address. The default
        will be to make it visible to other users.
      </description>
    </field>
    <value>False</value>
  </record>

  <record name="ploneintranet.userprofile.property_sheet_mapping">
    <field type="plone.registry.field.Dict">
      <title>Property sheet mapping</title>
      <description>
        A mapping of a user property to a specific property sheet which
	should be used to obtain the data for this attribute.
      </description>
      <key_type type="plone.registry.field.ASCII" />
      <value_type type="plone.registry.field.TextLine" />
    </field>
    <value>
</value>
  </record>

  <record name="ploneintranet.userprofile.primary_external_user_source">
    <field type="plone.registry.field.ASCIILine">
      <title>Primary External User Source</title>
      <description>
        The ID of the PAS plugin that will be treated as the primary source of external users.
      </description>
      <default></default>
      <required>False</required>
    </field>
    <value />
  </record>

  <record name="ploneintranet.userprofile.read_only_fields">
    <field type="plone.registry.field.Tuple">
      <title>Read only fields</title>
      <description>
        User profile fields that are read-only
        (shown on profile editing page but not editable)
      </description>
      <value_type type="plone.registry.field.TextLine" />
    </field>
    <value>
      <element>username</element>
    </value>
  </record>

  <record name="ploneintranet.userprofile.reactivate_on_sync">
    <field type="plone.registry.field.Bool">
      <title>Reactivate users when present in external source.</title>
      <description>
        Deactivated user profiles by default remain deactivated, even when present in the external user souce.
        Setting this record to True will reactivate such deactivated user profiles if they are present in the external user source.
      </description>>
    </field>
    <value>False</value>
  </record>


  <record name="ploneintranet.userprofile.locations">
    <field type="plone.registry.field.Tuple">
      <title>Hidden fields</title>
      <description>
        User profile fields that are hidden from the profile editing page
      </description>
      <value_type type="plone.registry.field.TextLine" />
    </field>
    <value>
      <element>London</element>
      <element>Amsterdam</element>
      <element>Berlin</element>
      <element>Paris</element>
      <element>New York</element>
    </value>
  </record>

  <record name="ploneintranet.userprofile.only_membrane_groups">
    <field type="plone.registry.field.Bool">
      <title>Use only membrane groups</title>
      <description>
        If set to True the system will assume
        that only membrane groups are used
        allowing various optimizations
      </description>
    </field>
    <value>False</value>
  </record>

  <record name="ploneintranet.userprofile.extranet_enabled">
    <field type="plone.registry.field.Bool">
      <default>False</default>
      <title>Enable extranet guest users</title>
      <description>If true, you can remove users from the "All
      intranet users" group to turn them into extranet users with
      strongly limited access to the system.
      </description>
      <required>False</required>
    </field>
    <value>False</value>
  </record>

  <!-- By default we use usernames to login -->
  <record name="dexterity.membrane.behavior.settings.IDexterityMembraneSettings.use_email_as_username">
    <field type="plone.registry.field.Bool">
</field>
    <value>False</value>
  </record>

  <!-- By default we use username as userid for compatibility with external
       auth systems e.g. LDAP/AD -->
  <record name="dexterity.membrane.behavior.settings.IDexterityMembraneSettings.use_uuid_as_userid">
    <field type="plone.registry.field.Bool">
</field>
    <value>False</value>
  </record>

  <record name="ploneintranet.userprofile.enable_password_reset">
    <field type="plone.registry.field.Bool">
      <title>Allow users to reset their password</title>
    </field>
    <value>True</value>
  </record>

  <record name="ploneintranet.userprofile.portlet_contacts_recent">
    <field type="plone.registry.field.Bool">
      <title>Show recent contacts in the contacts portlet</title>
    </field>
    <value>True</value>
  </record>

  <record name="ploneintranet.userprofile.portlet_contacts_byline_field">
    <field type="plone.registry.field.TextLine">
      <title>Field to show in contacts portlet search result byline</title>
    </field>
    <value>contact_telephone</value>
  </record>

  <record interface="Products.CMFPlone.interfaces.controlpanel.ISecuritySchema"
          name="plone.use_email_as_login"
  >
    <value>False</value>
  </record>

  <record name="plone.types_not_searched">
    <value purge="false">
      <element>ploneintranet.userprofile.userprofilecontainer</element>
      <element>ploneintranet.userprofile.workgroupcontainer</element>
    </value>
  </record>

</registry>
