Discussion:
Retrieving Item Type List
(too old to reply)
Valentin Hemmert
2008-08-21 08:16:14 UTC
Permalink
Hi,

To retrieve the Item Type List of the CM System I found 2 methods:
1.
DKSequentialCollection sequentialCollection = (DKSequentialCollection)
dsICM.listEntities();
iter = sequentialCollection.createIterator();
... ==> totally: 22 Item Types

2.
DKNVPair options[] = new DKNVPair[2];
options[0] = new DKNVPair(DKConstantICM.DK_ICM_ENTITY_TYPE, new
Integer(DKConstantICM.DK_ICM_BASE));
options[1] = new DKNVPair(DKConstant.DK_CM_PARM_END, null);
DKDatastoreDefICM dsDefICM = (DKDatastoreDefICM) dsICM.datastoreDef();
dkCollection itemTypeColl = dsDefICM.listEntities(options);
iter = itemTypeColl.createIterator();
- ICMBASE, Base BLOB part
- WORKNODE, Work node
- ROUTINGPROCESS, Routing process
- ICMBASETEXT, Text part
... ==> totally: 31 Item Types

The e-Client shows ==> only 17 Item Types.
How kind of retrieve does the IBM CM eClient?
How can I filter my Item Types to get the same Types as the IBM CM eClient?


Best regards
A***@sdc.ro
2008-08-27 12:07:30 UTC
Permalink
you can use one of the following

To DKDatastoreDefICM.listEntities(int) method allows the programmer to
specify which type
of objects to return:
. DK_ICM_ALL_ITEM_TYPES: Lists all item types from the persistent store.
Return
collection includes both DKItemTypeDefICM and DKItemTypeViewDefICM objects
. DK_ICM_SYSTEM_ITEM_TYPES:Lists system defined item types only
. DK_ICM_PARTS_ITEM_TYPES:Lists part item types only, that is, lists item
types
with classification equal to DK_ICM_ITEMTYPE_CLASS_DOC_PART
. DK_ICM_USER_ITEM_TYPES:Lists user defined item types only
Eduard Korenschi
2008-11-18 19:50:30 UTC
Permalink
I guess you get different results because eClient (and Windows Client)
support only the Document Model. So you don't get simple items or resource
items, only the document-classified items. To get the same result I think
you'll have to filter your results and look for the item types where
itemTypeDef.getClassification() ==
DKConstantICM.DK_ICM_ITEMTYPE_CLASS_DOC_MODEL.

Eduard Korenschi
Post by Valentin Hemmert
Hi,
1.
DKSequentialCollection sequentialCollection = (DKSequentialCollection)
dsICM.listEntities();
iter = sequentialCollection.createIterator();
... ==> totally: 22 Item Types
2.
DKNVPair options[] = new DKNVPair[2];
options[0] = new DKNVPair(DKConstantICM.DK_ICM_ENTITY_TYPE, new
Integer(DKConstantICM.DK_ICM_BASE));
options[1] = new DKNVPair(DKConstant.DK_CM_PARM_END, null);
DKDatastoreDefICM dsDefICM = (DKDatastoreDefICM) dsICM.datastoreDef();
dkCollection itemTypeColl = dsDefICM.listEntities(options);
iter = itemTypeColl.createIterator();
- ICMBASE, Base BLOB part
- WORKNODE, Work node
- ROUTINGPROCESS, Routing process
- ICMBASETEXT, Text part
... ==> totally: 31 Item Types
The e-Client shows ==> only 17 Item Types.
How kind of retrieve does the IBM CM eClient?
How can I filter my Item Types to get the same Types as the IBM CM eClient?
Best regards
Loading...