Paths conversions

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2006 05:38 PM
Hi Roy,
I want to use the ws api to browse entirely my repository so that I can detect duplicates (same name, mime type and size) to delete them.
So after a highly general query, I get the colums and find a NamedValue like this one
which is helpful to know the filesystem path used to store the document.
But I need to know the path in the repository form
(say something like /Guest Home/UsersManual/Cars/2CV.pdf) so that it is readable for my users.
How can I convert from one form to another ?
Should I request the server again, based on the UUID information ?
I am (still) using version 1.2.0 and can not upgrade yet.
Thanks
Jerome
I want to use the ws api to browse entirely my repository so that I can detect duplicates (same name, mime type and size) to delete them.
So after a highly general query, I get the colums and find a NamedValue like this one
{http://www.alfresco.org/model/content/1.0}content=contentUrl=store://2006/7/3/23/7d227fba-0adb-11db-...
in which I can read store://2006/7/3/23/7d227fba-0adb-11db-9eb9-0fb2fd5f52ba.bin
which is helpful to know the filesystem path used to store the document.
But I need to know the path in the repository form
(say something like /Guest Home/UsersManual/Cars/2CV.pdf) so that it is readable for my users.
How can I convert from one form to another ?
Should I request the server again, based on the UUID information ?
I am (still) using version 1.2.0 and can not upgrade yet.
Thanks
Jerome
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2006 01:18 PM
I could really use a feature like this, too. For example, I would like to be able to get a plain string path to an Alfresco folder so that I can bulk upload to it via FTP (since the content service doesn't let you write large files).
In order to get a path that I can FTP to (ftp://server
ort/Alfresco/<path>), I have to recursively call GetParents() and GetName() to build the parent hierarchy until I get to the root, then do some string munging to clean it up.
Another option might be to make the Alfresco FTP server more advanced so that you can upload to a specific uuid parent (which would also solve name conflicts between items; Alfresco supports multiple objects in the same namespace with the same name, FTP requires unique names).
In order to get a path that I can FTP to (ftp://server

Another option might be to make the Alfresco FTP server more advanced so that you can upload to a specific uuid parent (which would also solve name conflicts between items; Alfresco supports multiple objects in the same namespace with the same name, FTP requires unique names).

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2007 09:52 AM
