Is there any function in FirstSpirit API to get the UID Path
Author: saurabh
Publication Date: 12/4/2013 16:38
Hi,
Is there any function in FirstSprit API from which i can get the UID Path.
Example :
If Inside the Site Store having foder Internet.
Inside the Internet folder having folder parts
inside the parts folder having folder specification
inside the specification having folder about
i want UID Path of folder " about" like this root/Internet/parts/specification/about
i didt get any function in API since i have one requirement where i have to show UID path of each folder
-
Author: rednoss - 12/5/2013 7:49
Hello Saurabh,
if you got your folder you can use a combination of getParent() and getUid() and build the uid_path with a StringBuilder. For example:
uid_path = uid_path.append(element.getUid());
while(element.getParent() != null) {
element = element.getParent();
uid_path = uid_path.insert(0,"/");
uid_path = uid_path.insert(0,idp.getUid());
}
Best regards,
René Rednoß
0
Please sign in to leave a comment.
Comments
1 comment