Return-Path: X-Original-To: apmail-chemistry-dev-archive@www.apache.org Delivered-To: apmail-chemistry-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0A1441877A for ; Fri, 27 Nov 2015 12:39:58 +0000 (UTC) Received: (qmail 2938 invoked by uid 500); 27 Nov 2015 12:39:57 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 2860 invoked by uid 500); 27 Nov 2015 12:39:57 -0000 Mailing-List: contact dev-help@chemistry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@chemistry.apache.org Delivered-To: mailing list dev@chemistry.apache.org Received: (qmail 2849 invoked by uid 99); 27 Nov 2015 12:39:57 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Nov 2015 12:39:57 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 45561180A62 for ; Fri, 27 Nov 2015 12:39:57 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.002 X-Spam-Level: X-Spam-Status: No, score=0.002 tagged_above=-999 required=6.31 tests=[UNPARSEABLE_RELAY=0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id mxEoE9SfX8Bh for ; Fri, 27 Nov 2015 12:39:45 +0000 (UTC) Received: from plasma6.jpberlin.de (plasma6.jpberlin.de [80.241.56.68]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 16661210B7 for ; Fri, 27 Nov 2015 12:39:45 +0000 (UTC) Received: from gerste.heinlein-support.de (gerste.heinlein-support.de [91.198.250.173]) by plasma.jpberlin.de (Postfix) with ESMTP id 60750B098D; Fri, 27 Nov 2015 13:39:43 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from plasma.jpberlin.de ([91.198.250.140]) by gerste.heinlein-support.de (gerste.heinlein-support.de [91.198.250.173]) (amavisd-new, port 10024) with ESMTP id 1dHUsxl0l_OX; Fri, 27 Nov 2015 13:39:42 +0100 (CET) Received: from webmail.jpberlin.de (sinatra7.heinlein-hosting.de [91.198.250.143]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: fmueller@jpberlin.de) by plasma.jpberlin.de (Postfix) with ESMTPSA id 181A9B098B; Fri, 27 Nov 2015 13:39:42 +0100 (CET) Received: from RV9a54ovxC+YNlJid1oNcOMdivVDf0Mk0i+4rW+RbC4= (SYQMQiiDMxI9hzRJtQw+memQMYmeyqWP) by webmail.jpberlin.de with HTTP (HTTP/1.1 POST); Fri, 27 Nov 2015 13:39:41 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 27 Nov 2015 13:39:41 +0100 From: =?UTF-8?Q?Florian_M=C3=BCller?= To: Paul Santa Maria Cc: dev@chemistry.apache.org Subject: Re: Unable to access "Choices" in DotCMIS 0.7 In-Reply-To: References: Message-ID: X-Sender: fmui@apache.org User-Agent: RoundCube Webmail Hi Paul, I don't know much ab VB. In C# the class definition of PropertyStringDefinition looks like this: public class PropertyStringDefinition : PropertyDefinition, IPropertyStringDefinition { public IList DefaultValue { get; set; } public IList> Choices { get; set; } public long? MaxLength { get; set; } } I would assume that "Choices" is also accessible in VB. I have no idea why you can't see it. - Florian > I'm using DotCMIS version0.7 + AtomPub binding. My server is > IBM/FileNet P8 5.2. My client is VB.Net. > > I'm trying to access a ChoiceList I configured in my FileNet/P8 > repository. > > If I use Java/Chemistry, I can: > > 1. Query the FileNet Document class definition: > session.getTypeDefinition(docClassName) > > 2. Get the properties, and look for the property with the choice > list: docClassTypeDef.getPropertyDefinitions()/ropertyDefinition > propDef = propDefs.get(key); > > 3. Get the choice list from the property: List ch = > propDef.getChoices(); > > PROBLEM: > There doesn't seem to be any equivalent to Java/Chemistry "List ch > = propDef.getChoices();" in my v0.7 DotCMIS library. > > Specifically, I believe there should be a "Choices" property on > IPropertyDefinition. I can't find one. > > ADDITiONAL NOTES: > 1. As I said above, the Java/Chemistry API seems to work fine. > I can log on to my FileNet/P8 repository, query my DocClass, find > the DocProperty, call .getChoices(), and see the expected values in > the choice list. > > 2. My DotCMIS/VB.Net client is successfully querying the FileNet/P8 > repository for the DocClass and associated DocProperties: I can see > the choice list in the AtomPub XML: > > ATOMPUB XML RETURNED FROM DOTCMIS QUERY: > > xmlns:atom="http://www.w3.org/2005/Atom" > xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200908/" > xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200908/" > xmlns:p8ext="http://www.ibm.com/xmlns/prod/ecm/cmis/p8extensions" > xmlns:cmism="http://docs.oasis-open.org/ns/cmis/messaging/200908/"> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > RGBClass2 > RGBClass2 > > ... > > RGBChoiceList > RGBChoiceList > RGBChoiceList > RGBChoiceList > RGBChoiceList > string > single > readwrite > false > false > true > true > false > false > > RGBChoice > > RGBChoice > > Joe > > > Dan > > > Paul > > > 3. The problem is that the VB.Net IPropertyDefinition" object doesn't > have a "Choices" property: > > IPROPERTYDEFINITION OBJECT IN MSVS DEBUGGER: > > ?p > {DotCMIS.Data.Impl.PropertyStringDefinition} > DotCMIS.Data.Impl.PropertyStringDefinition: > {DotCMIS.Data.Impl.PropertyStringDefinition} > Cardinality: Single {0} > Description: "RGBChoiceList" > DisplayName: "RGBChoiceList" > Id: "RGBChoiceList" > IsInherited: False > IsOpenChoice: False > IsOrderable: True > IsQueryable: True > IsRequired: False > LocalName: "RGBChoiceList" > LocalNamespace: Nothing > PropertyType: String {6} > QueryName: "RGBChoiceList" > Updatability: ReadWrite {1} > <= No "Choices" VB object property available... > 4. The last Jira bug relating to DotCMIS "Choices" was Jira > https://issues.apache.org/jira/browse/CMIS-380. > This was fixed in 17/Oct/11, DotCMIS 0.3. > The problem in CMIS-380 was "IPropertyDefinition.Choices == null". > My current problem is that I don't even *see* any > ""IPropertyDefinition.Choices". > > 5. I have not stepped through the DotCMIS library code yet. > > 6. I have not tested to see if it works in C# yet (my client is VB.Net) > > Please let me know if you have any suggestions for what I can try, or > what I can do next. > > I'm new to the chemistry.apache.org community