Developing a Custom Polling Importer:
Ingesting and Processing External Content
Marcel Boucher | AEM Evangelist | @marcelb...
© 2013 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
AEM Feed Importer – Social Communities
2
Auto ...
© 2013 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
The Use Case
3
© 2013 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
The Required Pieces
4
Data Source Importer Sch...
© 2013 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
The Data Source
5
Jira Query
Result is a 13MB ...
© 2013 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
The Importer Scheme
6
Add a custom Scheme
1) M...
© 2013 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
The Implementation
7
OSGi Bundle
1) Add servic...
DEMO
Thank You
Upcoming SlideShare
Loading in …5
×

Developing a Custom Polling Importer by Marcel Boucher

1,073 views
908 views

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,073
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
14
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Developing a Custom Polling Importer by Marcel Boucher

  1. 1. Developing a Custom Polling Importer: Ingesting and Processing External Content Marcel Boucher | AEM Evangelist | @marcelboucher
  2. 2. © 2013 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. AEM Feed Importer – Social Communities 2 Auto blogging with RSS and ATOM Calendar Subscriptions via iCal Analytics integration for top …
  3. 3. © 2013 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. The Use Case 3
  4. 4. © 2013 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. The Required Pieces 4 Data Source Importer Scheme Implementation
  5. 5. © 2013 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. The Data Source 5 Jira Query Result is a 13MB XML document o Useless elements o Calculations needed to be applied in parallel
  6. 6. © 2013 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. The Importer Scheme 6 Add a custom Scheme 1) Make a Copy of: /libs/cq/ui/widgets/source/widgets/wcm/FeedImporter.js 2) To: /apps/cq/ui/widgets/source/widgets/wcm/FeedImporter.js 3) Add your scheme: { "text":"Jira Feed", "value":"jira” }
  7. 7. © 2013 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. The Implementation 7 OSGi Bundle 1) Add service descriptors @Service(value=Importer.class) @Component(immediate = true, metatype = true) @Properties({ @Property(name = "service.name", value = "Jira RSS Polling Importer"), @Property(name = "service.description", value = "JIRA Polling Data Importer"), @Property(name = "importer.scheme", value="jira") , @Property(name = "jira.username", description = "The JIRA service account to be used."), @Property(name = "jira.password", description = "The JIRA servuce account password to be used."), @Property(name = "xslt.path", description = "The JCR path to the XSLT to be applied to the Jira feed.") }) 2) Implement the importData method public void importData(final String scheme, final String dataSource, final Resource resource) throws ImportException {}
  8. 8. DEMO
  9. 9. Thank You

×