Details
-
New Feature
-
Resolution: Fixed
-
Major
-
1.1.6
-
None
Description
The files should be organized in a tree hierarchy of folders with the following strong requirements:
- Unlimited depth
- The leafs (files) can have multiple parents; folders can have only one parent
- Namespacing (files/folders with the same name but with different parents)
- Be able to set rights on files (rights on folders is currently not required)
The following structure satisfies these requirements:
DriveClass | |
---|---|
id | doc.space |
name | doc.title |
FolderClass | |
---|---|
id | doc.name |
name | doc.title |
parent | doc.parent |
FileClass | |
---|---|
id | doc.name |
name | doc.attachmentList.get(0).filename |
parent | doc.tags (FolderClass#id) |
description | doc.content |
I've used two marker xclasses (i.e. with no real properties, at least for now), FileClass and FolderClass, to be able to distinguish between files and folders.
As you can see I've mixed parent-child with tags:
- parent-child for the folder tree structure
- tags to be able to have multiple parents on files
Files and folders are grouped in drives. A drive is implemented as an XWiki space. When you install the File Manager application you get by default a single drive, the FileManager space. You should be able to create new drives and 'point' the File Manager to these drives.
Attachments
Issue Links
- blocks
-
FILEMAN-23 Add support for migrating the old files to the new tree hierarchy
- Closed