chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Sanders <dave8...@gmail.com>
Subject Re: Document class property
Date Wed, 25 Apr 2012 18:33:30 GMT
getTypeChildren (CMIS spec [1] and OpenCMIS) returns all subtypes (unless
limited by skipCount and maxItems).

This question was previously answered at [2] and [3].

[1]
http://docs.oasis-open.org/cmis/CMIS/v1.0/errata-01/os/cmis-spec-v1.0-errata-01-os-complete.html#_Toc243905438
[2]
http://mail-archives.apache.org/mod_mbox/chemistry-dev/201203.mbox/%3CCAGdvheTEDL_SEeN_DoSE8EonY9KV%3DGB_RfAktcaeceDf0S4OkQ%40mail.gmail.com%3E
[3]
http://www.ibm.com/developerworks/forums/thread.jspa?threadID=423894&tstart=0
Please use this forum for FileNet-specific questions.




On Wed, Apr 25, 2012 at 7:12 AM, learning coding <
learning.coding25@gmail.com> wrote:

> 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