chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pratyush Sinha <pratyush.sinha2...@gmail.com>
Subject Re: outPut of the choiceList not matched with choice list in CE.
Date Fri, 27 Jul 2012 00:41:20 GMT

I have already restarted my application and also the CE many times..
I

On 26-Jul-2012, at 20:27, Dave Sanders <dave8435@gmail.com> wrote:

> CMIS for FileNet caches metadata.  If the property definition recently changed, either
restart the app or wait for the cache to expire.  If that does not resolve the issue,
> please post to the CMIS for FileNet forum - http://www.ibm.com/developerworks/forums/forum.jspa?forumID=2334
.
> 
> 
> 
> 
> On Thu, Jul 26, 2012 at 8:00 AM, Pratyush Sinha <pratyush.sinha2511@gmail.com>
wrote:
> Hi all ,
> 
> I have found some wrong values retrived while i was retrieving choiceList of each propertyDefination
in DocumentClass
> 
> some values doesnot match with the value in content Management.
> 
> Sending you the outPut , code and the image of content Engine.  <email.jpg>
>  
> 
> In above , choice List of propertyDefination of  email  Document Class is  "Entry Choice"
> 
> 
> 
> <training docClass.jpg>
> In above , choice List of propertyDefination of  training Class is  "none"
>  but the outPut of code show its not none.
> 
> 
> Now Code :
> 
> public void getDocumentClass() {
> 		// TODO Auto-generated method stub
> 
> 	System.out.println("checking  " + session.getRepositoryInfo());
> 	ItemIterable<ObjectType> v = session.getTypeChildren("cmis:document", true);
> 	Iterator<ObjectType> i = v.iterator();
> 	
> 	while(i.hasNext()){
> 		ObjectType a = i.next();
> 		if(a!=null){	 
> 			System.out.println("Document Class Name  - >" +a.getDisplayName());
> 		    				    	 
> 			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("Property Defination ->>  " +key+" *****  " + " display
name -> " +value.getDisplayName() );
> 					List<Choice> ch = value.getChoices();
> 					System.out.print("size of choice List " + ch.size());
> 								
> 					for (Choice choice : ch) {
> 								
> 						System.out.print(" choice list ->" +choice.getDisplayName())
> 					}
> 					System.out.println("");
> 					System.out.println("");
> 				}
> 			}
> 		}
> 	}
> }
> 
> OUTPUT
> 
> Document Class Name  - >Email
> Property Defination ->>  DocumentTitle *****   display name -> Document Title
> size of choice List 0
> 
> Property Defination ->>  From *****   display name -> From
> size of choice List 0
> 
> Property Defination ->>  To *****   display name -> To
> size of choice List 0
> 
> Property Defination ->>  CarbonCopy *****   display name -> Cc
> size of choice List 2 choice list ->User choice list ->Site
> 
> Property Defination ->>  EmailSubject *****   display name -> Subject
> size of choice List 3 choice list ->document choice list ->folder choice list ->customobject
> 
> Property Defination ->>  SentOn *****   display name -> Sent On
> size of choice List 0
> 
> Property Defination ->>  ReceivedOn *****   display name -> Received On
> size of choice List 0
> 
> Document Class Name  - >Record
> Property Defination ->>  DocumentTitle *****   display name -> Document Title
> size of choice List 0
> 
> Property Defination ->>  RecordedDocuments *****   display name -> RecordedDocuments
> size of choice List 0
> 
> ________________________________________________________________________________________________
> 
> Document Class Name  - >training
> Property Defination ->>  DocumentTitle *****   display name -> Document Title
> size of choice List 0
> 
> Property Defination ->>  AnimationEnabled *****   display name -> Animation
Enabled
> size of choice List 0
> 
> Property Defination ->>  ReceivedOn *****   display name -> Received On
> size of choice List 0
> 
> Property Defination ->>  EmailSubject *****   display name -> Subject
> size of choice List 3 choice list ->document choice list ->folder choice list ->customobject
> 
> Property Defination ->>  checking *****   display name -> checking
> size of choice List 0
> 
> Property Defination ->>  testingBoolean *****   display name -> testingBoolean
> size of choice List 0
> 
> Property Defination ->>  testingDate *****   display name -> testingDate
> size of choice List 0
> 
> Property Defination ->>  testString *****   display name -> testString
> size of choice List 0
> 
> 
> 
> Plz explain me how this is possible.
> 
> thanks
> Pratyush SINHA
> 

Mime
  • Unnamed multipart/alternative (inline, 7-Bit, 0 bytes)
View raw message