Platform Explorer / Nuxeo Platform LTS 2015 7.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-7.10-HF07.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">ReadWrite</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">ReadWrite</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>