chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From learning coding <learning.codin...@gmail.com>
Subject Document class property
Date Wed, 25 Apr 2012 14:12:14 GMT
Hi i am trying to retrive the document class of the repostory.

Explaination is after the code

my code is like this



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

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

*while*(i.hasNext()){

ObjectType a = i.next();

*int* o = 1;

*if*(a!=*null*)

{

System.
*out*.println("_____________" + k ++ );

System.
*out*.println(" Display name> " + a.getDisplayName());  // Display name of
document class inside the content Engine like  Display name> Email

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

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

*while*(itr.hasNext()){

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

*if* (Boolean.*FALSE*.equals(d.get(key).isInherited())) {// need only those
propertydefination which are not inherited.

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

List<CmisExtensionElement> *df* = value.getExtensions();

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

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

}

}

 }

}

}

///output my code

*_____________1***

* Display name> Workflow Definition*

 1

property def name   >VWVersion

 2

property def name   >WorkflowSourceSubscriptions



_____________2

 Display name> XML Property Mapping Script

 1

property def name   >XMLDocumentType

 2

property def name   >TargetClass



_____________3

 Display name> Entry Template

 1

property def name   >EntryTemplateDescription

 2

property def name   >TargetObjectType

 3

property def name   >TargetObjectClassId

 4

property def name   >TargetObjectStoreName



_____________4

 Display name> Form Data

 1

property def name   >FormPolicyLaunchedWorkflowNumber

 2

property def name   >FormPolicyStepDescriptor

 3

property def name   >FormPolicy

 4

property def name   >ITXFormTemplate



_____________5

 Display name> Form Template

 1

property def name   >FormDescription



_____________6

 Display name> Form Policy

 1

property def name   >FormPolicyWorkflowObjectStore

 2

property def name   >FormPolicyWorkflowId

 3

property def name   >FormTemplate

 4

property def name   >FormType

 5

property def name   >FormDatas

 6

property def name   >FormPolicyDescription



*_____________7***

* Display name> Email***

 1

property def name   >From

 2

property def name   >To

 3

property def name   >CarbonCopy

 4

property def name   >EmailSubject

 5

property def name   >SentOn

 6

property def name   >ReceivedOn

 7

property def name   >LinkIDs



_____________8

 Display name> Record

 1

property def name   >RecordedDocuments



*_____________9***

* Display name> training***

 1

property def name   >AnimationEnabled

 2

property def name   >ReceivedOn

 3

property def name   >EmailSubject

//

I check the Property  (not propertyDefination)  of all the document class ,
the hidden values is true or false.

ex for  Display name> Workflow Definition   is Hidden false

Display name> Email is Hidden false

Display name> training is Hidden false

AND

 Display name> XML Property Mapping Script is Hidden true

 Display name> Entry Template              is Hidden true

 Display name> Form Data                   is Hidden true

 Display name> Form Template               is Hidden true

 Display name> Form Policy                 is Hidden true

 i want to retrive only those DocumentClass whose is Hidden Value Is False.

How to do it. Plzz help.

**

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