chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From learning coding <learning.codin...@gmail.com>
Subject Property Defination of Immediate SUbclass.
Date Thu, 29 Mar 2012 12:27:41 GMT
Hi,


   - As i need to* Immediate Subclass* ; I used the method

 *session**.getTypeChildren("cmis:document", true);*

 output of this is all the immediate subclass *included* the one
whoes *"IsHidden"
property is "True";*
 i *want* only the *subclasses* whoes "*isHidden*" value is "*false*"

Similary this was the case in rootFolder , there are some folder in root
folder whose propertyValue for "IsHiddenContainer" is "true".
so using

getPropertyValue("IsHiddenContainer") method i got the folder which hidden
value is false.

but i couldnt find the such kind of method for immediate subclass


   -  i also need the *propertyDefination* of the Immediate Subclass:

 I used   "*getPropertyDefinitions*();"

*output* is all the *customized property,Inherited Property,System Property.
*
But i dont want to show the inherited and system property in output.

How to do it.


My Code :


*ItemIterable<ObjectType> v = **session.getTypeChildren("cmis:document",
true**);*

*Iterator<ObjectType> i = v.iterator();*

**

*while**(i.hasNext()){*

*ObjectType a = i.next();*

**

**

*System.**out.println(" Display name> " + a.getDisplayName() + " "** );*

**

* *

*Map<String, PropertyDefinition<?>> d = a.getPropertyDefinitions();*

*Iterator itr = d.keySet().iterator();*

*while**(itr.hasNext()){*

*String key = itr.next().toString();*

*PropertyDefinition<?> value = d.get(key);*

*System.**out.println(""**);*

*System.**out.println("key >  "** + key );*

*System.**out.println(" value "** +value);*

*}*

*}*

**

*Thanks*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message