How to rename top level folder with nuxeo drive ?

Hello,

I've just followed the extend nuxeo drive series #1 #2 #3 #4 and I found those blogposts really helpfull to get into nuxeo drive. I'm just wondering about this fragment

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

  <topLevelFolderItemFactory
    class="org.nuxeo.drive.service.impl.DefaultTopLevelFolderItemFactory">
    <parameters>
      <parameter name="folderName">Nuxeo Drive</parameter>
    </parameters>
  </topLevelFolderItemFactory>

</extension>

Is it supposed as i supposed it actually was to rename top of the hierarchy folder on user file system ? If yes, I can't make it work, though other contributions i made (userWorkspace auto sync) are taken into account …

Here is the fragment I use:

  <extension target="org.nuxeo.drive.service.FileSystemItemAdapterService"
    point="topLevelFolderItemFactory">
    <topLevelFolderItemFactory
      class="org.nuxeo.drive.hierarchy.userworkspace.factory.UserWorkspaceOnlyTopLevelFactory">
      <parameters>
        <parameter name="folderName">NOT WORKING</parameter>
        <parameter name="syncRootParentFactory">userWorkspaceSyncRootParentFactory
        </parameter>
      </parameters>
    </topLevelFolderItemFactory>
  </extension>

Thank you,

Antoine

0 votes

0 answers

1255 views

ANSWER