How to have the PATH of a folder with his UUID
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2006 03:33 AM
I can extract those information :
{http://www.alfresco.org/model/content/1.0}modifier admin
{http://www.alfresco.org/model/content/1.0}modified 2006-10-26T16:18:53.501+02:00
{http://www.alfresco.org/model/content/1.0}description On retrouve ici, les informations disponibles en rapport avec l'administration
{http://www.alfresco.org/model/system/1.0}node-uuid fbf59d48-64d9-11db-94cb-9fa4684f506f
{http://www.alfresco.org/model/content/1.0}creator admin
{http://www.alfresco.org/model/system/1.0}node-dbid 435
{http://www.alfresco.org/model/system/1.0}store-protocol workspace
{http://www.alfresco.org/model/content/1.0}title VisionITGroup Administration
{http://www.alfresco.org/model/content/1.0}name VisionITGroup Administration
{http://www.alfresco.org/model/system/1.0}store-identifier SpacesStore
{http://www.alfresco.org/model/content/1.0}created 2006-10-26T12:08:53.562+02:00
In my object architecture, I need to have the path like /app:compagny_home/cm:……
Can you help me please.
- Labels:
-
Archive

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2006 06:33 AM
Thanks,
Kevin

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2006 06:31 AM
I suppose you're using webservices.
So, folderNode is your Node object (org.alfresco.webservice.types.Node)
You can get its path from the Reference object :
Reference nodeRef = folderNode.getReference();String strPath = nodeRef.getPath();
Fred
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2006 10:14 AM
I have the id in parameter
org.alfresco.webservice.types.Node[] tabNode = WebServiceFactory.getRepositoryService().get(new Predicate(new Reference[]{new Reference(Config.getStore(), id, null)}, Config.getStore(), null));
//extraction des informations.
this.setName(tabNode[0].getProperties(9).getValue());
this.setTitle(tabNode[0].getProperties(8).getValue());
this.setDescription(tabNode[0].getProperties(3).getValue());
this.setId(tabNode[0].getProperties(4).getValue());
this.setRef(tabNode[0].getReference());
this.setXPath(tabNode[0].getReference().getPath());
I have all information that I want but the ….getPath() return null.
Can you tell me what I have to do?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2006 02:47 PM
This is a problem if I want to retrieve a node using get(), browse several levels using getChildren(), and from there conduct a search of all descendents of a particular atribute value. If I don't know the child association names for the descendents, I have to guess at the path, so my xpath string is not guaranteed to be correct.
It would be great if the Node objects contained the path or child association name in addition to the uuid.
Please let me know if there is a workaround or if I've missed something. One possibility is to create a custom action to get the paths for an array of node uuids, but we are trying to limit hits to the server as much as possible. So hopefully there's a better way.
Thanks for the help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2006 11:54 AM
Martin BG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2006 01:36 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2006 11:01 AM
thanks prasanth

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2006 08:44 AM

If anyone finds a way to get it before the bug is solved please, share it :wink:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2006 09:41 AM
Just a simple question: where is the org.alfresco.webservice.types.QueryLanguageEnum class? The version of Alfresco (1.4) that I am using does not contain this class, so I cannot use the xpath query language to build queries but only Lucene. Am I correct?
Many thanks to all.
