synyx GmbH & Co. KG Homepage Welcome Guest   | Login
  Search  
  Index  | Recent Threads  | Who's Online  | User List  | Register  | Search  | Help  | RSS feeds


Quick Go »
Thread Status: Normal
Total posts in this thread: 2
[Add To My Favorites] [Watch this Thread]
Author
Previous Thread This topic has been viewed 1210 times and has 1 reply Next Thread
Male jeffwhitejvol
Stranger



Joined: Jan 15, 2008
Posts: 1
Status: Offline

How do I get the path name of a resource object?

How do I get the folder path from a resource eg. org.opencms.file.CmsResource
or org.opencms.file.CmsFolder ?

The methods on these classes are all static and require the full resource name as a parameter...

The code I am using to get the resource object is :-

java.util.List list = cmsobj.getResourcesInFolder(foldername, CmsResourceFilter.ALL.addRequireFolder()) ;
java.util.Iterator i = list.iterator();
while (i.hasNext() && password == null)
{
CmsResource authrsc = (CmsResource)i.next();
/* Need to get the resource path here... */
}
[Jan 15, 2008 1:17:17 PM] Show Printable Version of Post        Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Male Flo
Advanced Member



Joined: May 7, 2004
Posts: 546
Status: Offline

Re: How do I get the path name of a resource object?

I think there is a a static method in CmsResource
----------------------------------------
/**
* Florian Hopf
* synyx GmbH & Co. KG
*/
[Jan 16, 2008 2:32:52 PM] Show Printable Version of Post     [Link] Report threatening or abusive post: please login first  Go to top 
[Show Printable Version of Thread]