You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Tomek Rękawek (JIRA)" <ji...@apache.org> on 2015/02/28 13:12:04 UTC

[jira] [Updated] (SLING-4223) make Content Loader extensible to support new import formats

     [ https://issues.apache.org/jira/browse/SLING-4223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tomek Rękawek updated SLING-4223:
---------------------------------
    Attachment: SLING-4223.patch

I prepared a strawman patch, according to the JIRA description. The {{ContentReader.PROPERTY_TYPE}} property on the {{ContentReader}} is not used anywhere yet. Oliver, Felix, Bruce - could you take a look and give some feedback?

> make Content Loader extensible to support new import formats
> ------------------------------------------------------------
>
>                 Key: SLING-4223
>                 URL: https://issues.apache.org/jira/browse/SLING-4223
>             Project: Sling
>          Issue Type: Improvement
>          Components: JCR
>    Affects Versions: JCR ContentLoader 2.1.10
>            Reporter: Oliver Lietz
>            Assignee: Tomek Rękawek
>             Fix For: JCR ContentLoader 2.2.0
>
>         Attachments: SLING-4223.patch
>
>
> The current Content Loader supports a basic set of import formats which are identified by extension: {{.xml}}, {{.jcr.xml}}, {{.json}}, {{.jar}} and {{.zip}}.
> There is a [user request|http://mail-archives.apache.org/mod_mbox/sling-users/201412.mbox/%3cD0A6198C.20FBEB%25bruce.edge@nextissuemedia.com%3e] to support custom formats like Adobe Folio and [some ideas how to implement|http://mail-archives.apache.org/mod_mbox/sling-users/201412.mbox/%3cA2AB572F-FA83-4AE2-806E-49CCE87B9FBE@adobe.com%3e]:
> * we create a new org.apache.sling.contentloader.reader package to be exported at version 1.0
> * move the ContentCreator (@ProviderType) and ContentReader (@ConsumerType) to that new package
> * convert the BaseImportLoader into a standalone ContentReader service holder used by the DefaultContentImporter and ContentLoaderService components.
> * For the ContentReader service interface we define service registration properties for the service to expose the file name extension (and maybe content type) the reader supports.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)