Topic
  • No replies
Pratz25
Pratz25
1 Post

Pinned topic CMIS says the propertydef has a choice list when FEM says <NONE>

‏2012-08-02T07:34:58Z |
Hi all,
I am in learning phase of CMIS and filenet.

Making a webApplication using openCMIS and GWT.

While retriving the choice list of a propertyDefination , I got the choiceList but in FEM there is no choice List.

I already restarted my CE , webApplication many time.

Attaching file with image ,code and Output.

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 tell me how to rectify this.

thanks

  • Already Posted in https://www.ibm.com/developerworks/forums/thread.jspa?messageID=14871229&#14871229