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. [image:
Inline image 1]
In above , choice List of propertyDefination of email Document Class is
"Entry Choice"
[image: Inline image 2]
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