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 C3A031061D for ; Tue, 17 Mar 2015 10:19:38 +0000 (UTC) Received: (qmail 75650 invoked by uid 500); 17 Mar 2015 10:19:38 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 75596 invoked by uid 500); 17 Mar 2015 10:19:38 -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 75571 invoked by uid 99); 17 Mar 2015 10:19:38 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Mar 2015 10:19:38 +0000 Date: Tue, 17 Mar 2015 10:19:38 +0000 (UTC) From: =?utf-8?Q?Florian_M=C3=BCller_=28JIRA=29?= To: dev@chemistry.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CMIS-900) Add example code for CMIS 1.1 Type Mutability - type creation MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CMIS-900?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:all-tabpanel ] Florian M=C3=BCller resolved CMIS-900. --------------------------------- Resolution: Fixed Fix Version/s: (was: OpenCMIS 0.12.0) Added to website: https://chemistry.apache.org/java/examples/example-create-type.html > Add example code for CMIS 1.1 Type Mutability - type creation > ------------------------------------------------------------- > > Key: CMIS-900 > URL: https://issues.apache.org/jira/browse/CMIS-900 > Project: Chemistry > Issue Type: Improvement > Components: opencmis-client > Affects Versions: OpenCMIS 0.12.0 > Reporter: jay brown > Assignee: Florian M=C3=BCller > Attachments: CreateTestCommandLine.java > > > Currently there are no examples (that I can find anyway) of how to=20 > create new types (and corresponding property types), choice lists, etc., = using the CMIS 1.1 type mutability feature.=20 > I have written a (generic) Java command-line example that > has no dependencies other than OpenCMIS. This sample code > creates a sub-type of cmis:document with 4 new properties (one of each > { Integer, Boolean, Id and String } and an associated choice list for the > String. (checking first that these are creatable property types) > The code is a few hundred lines long but is very simple to follow and I > believe would make a good addition to the > http://chemistry.apache.org/java/examples/index.html > (examples) section. -- This message was sent by Atlassian JIRA (v6.3.4#6332)