Uploaded image for project: 'Chemistry (Retired)'
  1. Chemistry (Retired)
  2. CMIS-900

Add example code for CMIS 1.1 Type Mutability - type creation

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • OpenCMIS 0.12.0
    • None
    • opencmis-client
    • None

    Description

      Currently there are no examples (that I can find anyway) of how to
      create new types (and corresponding property types), choice lists, etc., using the CMIS 1.1 type mutability feature.

      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.

      Attachments

        1. CreateTestCommandLine.java
          30 kB
          jay brown

        Activity

          People

            fmui Florian Müller
            jay.brown jay brown
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: