Platform Explorer / Nuxeo Platform LTS 2017 9.10

Contribution org.nuxeo.drive.adapters.hierarchy.permission--fileSystemItemFactory

This contribution is part of XML component org.nuxeo.drive.adapters.hierarchy.permission inside nuxeo-drive-core-9.10.jar /OSGI-INF/nuxeodrive-hierarchy-permission-adapter-contrib.xml

Extension Point

Extension point fileSystemItemFactory of component FileSystemItemAdapterService.

Contributed Items

  • <fileSystemItemFactory class="org.nuxeo.drive.hierarchy.permission.factory.UserSyncRootParentFactory" name="userSyncRootParentFactory" order="30">
          <parameters>
            <parameter name="folderName">My Docs</parameter>
          </parameters>
        </fileSystemItemFactory>
  • <fileSystemItemFactory class="org.nuxeo.drive.hierarchy.permission.factory.PermissionSyncRootFactory" facet="DriveSynchronized" name="permissionSyncRootFactory" order="40">
          <parameters>
            <parameter name="requiredPermission">Read</parameter>
            <parameter name="userSyncRootParentFactory">userSyncRootParentFactory</parameter>
            <parameter name="sharedSyncRootParentFactory">
              sharedSyncRootParentFactory
            </parameter>
          </parameters>
        </fileSystemItemFactory>
  • <fileSystemItemFactory class="org.nuxeo.drive.hierarchy.permission.factory.SharedSyncRootParentFactory" name="sharedSyncRootParentFactory" order="100">
          <parameters>
            <parameter name="folderName">Other Docs</parameter>
          </parameters>
        </fileSystemItemFactory>

XML Source

<extension point="fileSystemItemFactory" target="org.nuxeo.drive.service.FileSystemItemAdapterService">

    <!-- User synchronization root parent factory (user workspace): order 
      before the "permissionSyncRootFactory" that has an order of 40 and before 
      the "defaultFileSystemItemFactory" that has an order of 50 -->
    <fileSystemItemFactory class="org.nuxeo.drive.hierarchy.permission.factory.UserSyncRootParentFactory" name="userSyncRootParentFactory" order="30">
      <parameters>
        <parameter name="folderName">My Docs</parameter>
      </parameters>
    </fileSystemItemFactory>

    <!-- Synchronization root factory: order before the "defaultFileSystemItemFactory" 
      that has an order of 50 -->
    <fileSystemItemFactory class="org.nuxeo.drive.hierarchy.permission.factory.PermissionSyncRootFactory" facet="DriveSynchronized" name="permissionSyncRootFactory" order="40">
      <parameters>
        <parameter name="requiredPermission">Read</parameter>
        <parameter name="userSyncRootParentFactory">userSyncRootParentFactory</parameter>
        <parameter name="sharedSyncRootParentFactory">
          sharedSyncRootParentFactory
        </parameter>
      </parameters>
    </fileSystemItemFactory>

    <!-- Shared synchronization root parent factory -->
    <fileSystemItemFactory class="org.nuxeo.drive.hierarchy.permission.factory.SharedSyncRootParentFactory" name="sharedSyncRootParentFactory" order="100">
      <parameters>
        <parameter name="folderName">Other Docs</parameter>
      </parameters>
    </fileSystemItemFactory>

  </extension>