cancel
Showing results for 
Search instead for 
Did you mean: 

Paths conversions

jbaton
Champ in-the-making
Champ in-the-making
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

{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
2 REPLIES 2

sirdodger
Champ in-the-making
Champ in-the-making
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://serverSmiley Tongueort/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).

jbaton
Champ in-the-making
Champ in-the-making
Let's take a look at

http://forums.alfresco.com/viewtopic.php?t=9943

keyword: nodeService