I'm just wondering if the ConnectorServlet of FckEditor.java is able to support mapping to a 'virtual' file system.
In otherwords - the view that I want to present to the use in the browser is not necessarily exactly the same as the way the files are stored in the underlying file system. Is this possible?
For example:
Let's say we have a system that 'logically' stores images in a gallery under different categories. We want the user of the server browser to see the images organized into separate 'folders' that represent the categories. However the DB is responsible for storing the images and it allocates a unique ID to each image and stores them ALL in a single 'images' directory on the 'physical' file system. Is this kind of thing possible via the ConnectorServlet?
In otherwords - the view that I want to present to the use in the browser is not necessarily exactly the same as the way the files are stored in the underlying file system. Is this possible?
For example:
Let's say we have a system that 'logically' stores images in a gallery under different categories. We want the user of the server browser to see the images organized into separate 'folders' that represent the categories. However the DB is responsible for storing the images and it allocates a unique ID to each image and stores them ALL in a single 'images' directory on the 'physical' file system. Is this kind of thing possible via the ConnectorServlet?
Re: ConnectorServlet: indirect file system mappings
Check this link.
Re: ConnectorServlet: indirect file system mappings
I notice the method:
public List<Map<String, Object>> getFiles(ResourceType type,
String currentFolder)
returns a Map entry for each file. It looks like that currently only supports a name and size values.
Presumably it would be possible to enhance this to support other file parameters. For example if it could support a 'display name' then the value displayed to the users in the file browser could be a human readable name while the 'name' could be a machine generated unique filename. We could also have a 'thumbNail' value that specifies the name of a thumbnail to use in the file browser while FckEditor should use the 'name' when injecting the image tag into the content.
Obviously this would require changes to the File browser but it would go a long way to allowing greater 'virtualization' or 'indirection' between the items the user sees in the file browser and their underlying storage.
Re: ConnectorServlet: indirect file system mappings