on 05-25-2006 10:02 AM
Hi all!
I need to classify KM resourses in a taxonomy and I don't know how can I find out type of the resourses (whether the resourse is folder or document). Is the type stored in any indexable property?
Thanks in advance for any idea!
Regards
Zbynek
Hi there,
IResource resource = ...;
I think you can check the <i>resource</i> object you have is an <b>instanceof</b> <i>ICollection</i> or not.. like..
if(resource <b>instanceof</b> ICollection){
....
..
}
If Yes, it's a folder
If No, it's a file
or you can also try
if(resource.isCollection() ) {
ICollection collection = (ICollection)resource;
.....
}
How'z that?
Regards,
SK.
<i>PS: Plz rewards points if helpful!</i>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.