You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by Jay Brown <ja...@us.ibm.com> on 2015/03/10 18:42:56 UTC

OpenCMIS Client example: How to create Object Types and Properties (aka CMIS 1.1 Type Mutability)


In our next fixpack for the FileNet CMIS 1.1 tech preview server we will be
shipping support for CMIS 1.1 Type Mutability.
In the process of getting ready for this I realized that this is not a
subject we ever covered in the Manning CMIS book, nor it discussed anywhere
here:

   http://chemistry.apache.org/java/developing/index.html

So our clients will not be able to find any working examples showing how to
do this (somewhat advanced) operation using OpenCMIS.

To address this I have written a (generic) Java command-line example that
has no dependencies other than OpenCMIS and Java.   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.

If you feel this code would make a useful contribution please let me know
along with instructions of how you would like to proceed.

Thanks.


Jay Brown
Senior Engineer, ECM Development
IBM Software Group
www.linkedin.com/in/parityerror/

Re: OpenCMIS Client example: How to create Object Types and Properties (aka CMIS 1.1 Type Mutability)

Posted by "Huebel, Jens" <j....@sap.com>.
Nice Š
+1 to add this to the examples.

Jens

On 10/03/15 18:42, "Jay Brown" <ja...@us.ibm.com> wrote:

>
>
>In our next fixpack for the FileNet CMIS 1.1 tech preview server we will
>be
>shipping support for CMIS 1.1 Type Mutability.
>In the process of getting ready for this I realized that this is not a
>subject we ever covered in the Manning CMIS book, nor it discussed
>anywhere
>here:
>
>   http://chemistry.apache.org/java/developing/index.html
>
>So our clients will not be able to find any working examples showing how
>to
>do this (somewhat advanced) operation using OpenCMIS.
>
>To address this I have written a (generic) Java command-line example that
>has no dependencies other than OpenCMIS and Java.   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.
>
>If you feel this code would make a useful contribution please let me know
>along with instructions of how you would like to proceed.
>
>Thanks.
>
>
>Jay Brown
>Senior Engineer, ECM Development
>IBM Software Group
>www.linkedin.com/in/parityerror/


Re: OpenCMIS Client example: How to create Object Types and Properties (aka CMIS 1.1 Type Mutability)

Posted by Jay Brown <ja...@us.ibm.com>.
Done.

https://issues.apache.org/jira/browse/CMIS-900

Thanks.


Jay Brown
Senior Engineer, ECM Development
IBM Software Group
www.linkedin.com/in/parityerror/


|------------>
| From:      |
|------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |Florian Müller <fm...@apache.org>                                                                                                                  |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| To:        |
|------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |dev@chemistry.apache.org                                                                                                                          |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Cc:        |
|------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |Jay Brown/Costa Mesa/IBM@IBMUS                                                                                                                    |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Date:      |
|------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |03/12/2015 12:58 AM                                                                                                                               |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Subject:   |
|------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |Re: OpenCMIS Client example: How to create Object Types and Properties  (aka CMIS 1.1 Type Mutability)                                            |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|





Hi Jay,

Please open an improvement issue in JIRA and attach the code.


Thanks,

Florian


> In our next fixpack for the FileNet CMIS 1.1 tech preview server we
> will be
> shipping support for CMIS 1.1 Type Mutability.
> In the process of getting ready for this I realized that this is not a
> subject we ever covered in the Manning CMIS book, nor it discussed
> anywhere
> here:
>
>    http://chemistry.apache.org/java/developing/index.html
>
> So our clients will not be able to find any working examples showing
> how to
> do this (somewhat advanced) operation using OpenCMIS.
>
> To address this I have written a (generic) Java command-line example
> that
> has no dependencies other than OpenCMIS and Java.   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.
>
> If you feel this code would make a useful contribution please let me
> know
> along with instructions of how you would like to proceed.
>
> Thanks.
>
>
> Jay Brown
> Senior Engineer, ECM Development
> IBM Software Group
> www.linkedin.com/in/parityerror/



Re: OpenCMIS Client example: How to create Object Types and Properties (aka CMIS 1.1 Type Mutability)

Posted by Florian Müller <fm...@apache.org>.
Hi Jay,

Please open an improvement issue in JIRA and attach the code.


Thanks,

Florian


> In our next fixpack for the FileNet CMIS 1.1 tech preview server we 
> will be
> shipping support for CMIS 1.1 Type Mutability.
> In the process of getting ready for this I realized that this is not a
> subject we ever covered in the Manning CMIS book, nor it discussed 
> anywhere
> here:
> 
>    http://chemistry.apache.org/java/developing/index.html
> 
> So our clients will not be able to find any working examples showing 
> how to
> do this (somewhat advanced) operation using OpenCMIS.
> 
> To address this I have written a (generic) Java command-line example 
> that
> has no dependencies other than OpenCMIS and Java.   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.
> 
> If you feel this code would make a useful contribution please let me 
> know
> along with instructions of how you would like to proceed.
> 
> Thanks.
> 
> 
> Jay Brown
> Senior Engineer, ECM Development
> IBM Software Group
> www.linkedin.com/in/parityerror/


Re: OpenCMIS Client example: How to create Object Types and Properties (aka CMIS 1.1 Type Mutability)

Posted by Jay Brown <ja...@us.ibm.com>.
Yes.  Anyone who has a FileNet license gets access to the CMIS 1.1 tech
preview.    It is included with all recent version of Content Navigator
(which also includes our CMIS client)
Note the tech preview is based on the OpenCMIS server framework.

This blog post talks about where the tech preview can be found in the
release.

http://ibmecmblog.com/2014/09/16/early-access-to-our-next-generation-cmis-server-architecture/



Jay Brown
Senior Engineer, ECM Development
IBM Software Group
www.linkedin.com/in/parityerror/


|------------>
| From:      |
|------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |Tim Webster <ti...@gmail.com>                                                                                                               |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| To:        |
|------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |"dev@chemistry.apache.org" <de...@chemistry.apache.org>                                                                                             |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Date:      |
|------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |03/11/2015 02:34 AM                                                                                                                               |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Subject:   |
|------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |Re: OpenCMIS Client example: How to create Object Types and Properties (aka CMIS 1.1 Type Mutability)                                             |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|





I would definitely like to see it.

Is the FileNet tech preview server available to IBM partners?

Tim


On Tue, Mar 10, 2015 at 5:42 PM, Jay Brown <ja...@us.ibm.com> wrote:

>
>
> In our next fixpack for the FileNet CMIS 1.1 tech preview server we will
be
> shipping support for CMIS 1.1 Type Mutability.
> In the process of getting ready for this I realized that this is not a
> subject we ever covered in the Manning CMIS book, nor it discussed
anywhere
> here:
>
>    http://chemistry.apache.org/java/developing/index.html
>
> So our clients will not be able to find any working examples showing how
to
> do this (somewhat advanced) operation using OpenCMIS.
>
> To address this I have written a (generic) Java command-line example that
> has no dependencies other than OpenCMIS and Java.   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.
>
> If you feel this code would make a useful contribution please let me know
> along with instructions of how you would like to proceed.
>
> Thanks.
>
>
> Jay Brown
> Senior Engineer, ECM Development
> IBM Software Group
> www.linkedin.com/in/parityerror/


Re: OpenCMIS Client example: How to create Object Types and Properties (aka CMIS 1.1 Type Mutability)

Posted by Tim Webster <ti...@gmail.com>.
I would definitely like to see it.

Is the FileNet tech preview server available to IBM partners?

Tim


On Tue, Mar 10, 2015 at 5:42 PM, Jay Brown <ja...@us.ibm.com> wrote:

>
>
> In our next fixpack for the FileNet CMIS 1.1 tech preview server we will be
> shipping support for CMIS 1.1 Type Mutability.
> In the process of getting ready for this I realized that this is not a
> subject we ever covered in the Manning CMIS book, nor it discussed anywhere
> here:
>
>    http://chemistry.apache.org/java/developing/index.html
>
> So our clients will not be able to find any working examples showing how to
> do this (somewhat advanced) operation using OpenCMIS.
>
> To address this I have written a (generic) Java command-line example that
> has no dependencies other than OpenCMIS and Java.   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.
>
> If you feel this code would make a useful contribution please let me know
> along with instructions of how you would like to proceed.
>
> Thanks.
>
>
> Jay Brown
> Senior Engineer, ECM Development
> IBM Software Group
> www.linkedin.com/in/parityerror/