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

Allow customization of the default object types in JcrTypeManager and allow registration of base object types

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • OpenCMIS 0.6.0
    • OpenCMIS 0.6.0
    • opencmis-server-jcr
    • None

    Description

      I want our repository to expose only two object types, cmis:folder and cmis:document which should be set as non-versionable.

      However it's not possible to remove a type from JcrTypeManager and since the default ones are registered in the default constructor of JcrTypeManager its not possible to avoid them being registered. So I cannot get rid of the cmis:unversioned-document.

      I would like it if JcrTypeManager did not add any default types when it is created, instead they could be added by JcrServiceFactory. Currently it's not possible to add additional new base types to JcrTypeManager so that will need to change too.

      Also, this change means that addBasePropertyDefinitions, addFolderPropertyDefinitions, addDocumentPropertyDefinitions and createPropDef need to be made public or possible moved elsewhere, possibly to a util class, as they are very useful when creating type definitions.

      Attachments

        1. JcrTypeManager.patch
          20 kB
          Tobias Mattsson

        Activity

          People

            mduerig Michael Dürig
            sigget Tobias Mattsson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: