<configure
    xmlns="http://namespaces.zope.org/zope"
    xmlns:browser="http://namespaces.zope.org/browser"
    >

  <!-- Register notfound as page displaying a notfound message. -->
  <browser:page
      name="notfound"
      for="*"
      class=".switchoff.Deny"
      permission="zope.Public"
      />

  <!-- Switch off various standard Plone pages that are not wanted.
       We could and should remove links to these, but we may forget
       some, or users may try to be smart, which we want to avoid.

       zope.Public by necessity to serve unauthorized users
  -->

  <browser:pages
      for="Products.CMFPlone.interfaces.IPloneSiteRoot"
      class=".switchoff.Deny"
      permission="zope.Public"
      layer="ploneintranet.layout.interfaces.IPloneintranetLayoutLayer"
      >
    <browser:page name="member-registration" />
  </browser:pages>

  <!--
       zope.Public by necessity to serve unauthorized users
  -->
  <browser:pages
      for="plone.app.layout.navigation.interfaces.INavigationRoot"
      class=".switchoff.Deny"
      permission="zope.Public"
      layer="ploneintranet.layout.interfaces.IPloneintranetLayoutLayer"
      >
    <browser:page name="register" />
    <browser:page name="new-user" />
    <browser:page name="personal-preferences" />
    <browser:page name="user-preferences" />
    <browser:page name="personal-information" />
    <browser:page name="user-information" />
  </browser:pages>

  <!--
       zope.Public by necessity to serve unauthorized users
  -->
  <browser:pages
      for="*"
      class=".switchoff.Deny"
      permission="zope.Public"
      layer="ploneintranet.layout.interfaces.IPloneintranetLayoutLayer"
      >
    <browser:page name="member-search" />
  </browser:pages>

  <!-- Switch off plone.app.contenttypes views -->
  <browser:pages
      for="Products.CMFPlone.interfaces.IPloneSiteRoot"
      class=".switchoff.RedirectToDashboard"
      permission="zope.Public"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      >
    <browser:page name="listing_view" />
    <browser:page name="summary_view" />
    <browser:page name="tabular_view" />
    <browser:page name="full_view" />
    <browser:page name="album_view" />
  </browser:pages>

  <browser:pages
      for="plone.dexterity.interfaces.IDexterityContainer"
      class=".switchoff.Deny"
      permission="zope.Public"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      >
    <browser:page name="listing_view" />
    <browser:page name="summary_view" />
    <browser:page name="tabular_view" />
    <browser:page name="full_view" />
    <browser:page name="album_view" />
  </browser:pages>

  <browser:pages
      for="plone.app.contenttypes.behaviors.collection.ISyndicatableCollection"
      class=".switchoff.Deny"
      permission="zope.Public"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      >
    <browser:page name="listing_view" />
    <browser:page name="summary_view" />
    <browser:page name="tabular_view" />
    <browser:page name="full_view" />
    <browser:page name="album_view" />
  </browser:pages>

  <browser:page
      name="listing_view"
      for="plone.app.contenttypes.interfaces.ICollection"
      class=".switchoff.Deny"
      permission="zope.Public"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      />

  <browser:page
      name="full_view_item"
      for="*"
      class=".switchoff.Deny"
      permission="zope.Public"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      />

  <!--- BBB Views -->
  <browser:pages
      for="plone.dexterity.interfaces.IDexterityContainer"
      class=".switchoff.Deny"
      permission="zope.Public"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      >
    <browser:page name="folder_listing" />
    <browser:page name="folder_full_view" />
    <browser:page name="folder_summary_view" />
    <browser:page name="folder_tabular_view" />
    <browser:page name="folder_album_view" />
    <browser:page name="atct_album_view" />
  </browser:pages>

  <browser:pages
      for="Products.CMFPlone.interfaces.IPloneSiteRoot"
      class=".switchoff.Deny"
      permission="zope.Public"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      >
    <browser:page name="folder_listing" />
    <browser:page name="folder_summary_view" />
    <browser:page name="folder_tabular_view" />
  </browser:pages>

  <browser:pages
      for="plone.app.contenttypes.interfaces.ICollection"
      class=".switchoff.Deny"
      permission="zope.Public"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      >
    <browser:page name="view" />
    <browser:page name="standard_view" />
  </browser:pages>

  <browser:pages
      for="plone.app.contenttypes.behaviors.collection.ISyndicatableCollection"
      class=".switchoff.Deny"
      permission="zope.Public"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      >
    <browser:page name="collection_view" />
    <browser:page name="all_content" />
    <browser:page name="thumbnail_view" />
  </browser:pages>

</configure>
