CMIS for FileNet caches metadata for better performance.  It can take up to
an hour (the default time to live) to see new or modified type
definitions.   For further FileNet-specific discussion of this topic,
please post to the IBM CMIS for ECM forum [1].


[1]
http://www.ibm.com/developerworks/forums/forum.jspa?forumID=2334&start=0




On Mon, Jun 4, 2012 at 7:46 AM, learning coding <[email protected]
> wrote:

>
>
> ---------- Forwarded message ----------
> From: learning coding <[email protected]>
> Date: Mon, Jun 4, 2012 at 4:36 PM
> Subject: Property of Document class
> To: [email protected]
>
>
> Hi
>
> I have a problem in getting the getPropertyDefinitions() of a document
> class.
>
> I am using Filenet p8 for repository.
>
> For example of document class  , property  are     to , from ,cc;sent on
> etc. which are already available in content manager.
>
> now created my own property name 'delivered' but i can't able to retrive
> the 'delivered'     property.
>
> the code to better understand my code.
>
> with this code i am able to see the availble property not user created
> property. so how to see print user created property.
>
> *
>
> public
> *void getDocumentClass() {
>
> ItemIterable<ObjectType> v = *session*.getTypeChildren("cmis:document", *
> true*);
>
> Iterator<ObjectType> i = v.iterator();
>
>  *while*(i.hasNext()){
>
> ObjectType a = i.next();
>
> *if*(a!=*null*){
>
> Map<String, PropertyDefinition<?>> d = a.getPropertyDefinitions();
>
>   Iterator<String> itr = d.keySet().iterator();
>
> *while*(itr.hasNext()){
>
>   String key = itr.next().toString();
>
>    *if* (Boolean.*FALSE*.equals(d.get(key).isInherited())) {
>
>    PropertyDefinition<?> value = d.get(key);
>
> System.
>
> *out*.println(" "+key +" "+value.getDisplayName());
>
> }
>
> }
>
> }
>
> }
>
> }
>
>

Reply via email to