Friday 12 December 2014

Winners of the AEM 2014 Community Code Contest

During the month of November 2014, the AEM community team held a code contest where AEM Developers submitted functioning AEM code. For more information about the contest see:
AEM Code/Developer Community Contest.

The AEM community team is excited to present you with the three winning submissions:

AEM Dashboard application

AEM platform users spend time clicking links and moving between tools, pages and environments. The AEM Dashboard application reduces this time to a minimum by letting users search from a common dashboard. Using this tool, an AEM user can use AEM platform tools, search pages in the Site Admin, and access JCR nodes quickly. 


Congratulations to Krystian Panek for this winning submission. 

AEM timeline video component

When an AEM video is playing, Digital Marketers may need to showcase content at specific point(s) during the video. For example, a marketing team would like to highlight a feature of a product along with their product video. The AEM Timeline video component solves this business use case by letting an AEM author set  the timeline point(s) of a video and specify the content to display.


Congratulations to Lokesh Bs for this winning submission.

AEM dynamic grid component

The AEM dynamic grid component lets AEM authors plot content into a grid. Then visitors to the web site can dynamically move around the content as they see fit. Users can  build draggable layouts from elements spanning multiple columns. You can even dynamically add and remove elements from the grid.



Congratulations to Jaison Sunny  for this winning submission.

Each of these winners will win the prize specified in the contest rules. Look for AEM community articles in 2015 that relate to these submissions. 


Join the Adobe Experience Cloud Community 

Join the Adobe Experience Cloud Community by clicking this banner




I (Scott Macdonald) am a Senior Digital Marketing Community Manager at Adobe Systems with 20 years in the high tech industry. I am also a programmer with knowledge in Java, JavaScript, C#,C++, HTML, XML and ActionScript. If  you would like to see more CQ or other Adobe Digital Marketing end to end articles like this, then leave a comment and let me know what content you would like to see.


TwitterFollow the Digital Marketing Customer Care team on Twitter @AdobeExpCare.

YouTube: Subscribe to the AEM Community Channel


Thursday 4 December 2014

Querying Adobe Experience Manager 6 data using the Sling getServiceResourceResolver method

You can create an Adobe Experience Manager (AEM) 6 application that queries data located in the AEM Java Content Repository (JCR). To query data, you use a javax.jcr.query.Query instance that belongs to the JCR Query API. This API supports both searching and querying operations. For example, assume that your AEM application tracks your organization’s customers. You can query the JCR to obtain a customer result set in which a digital marketer is interested.

As of AEM 6, you get a session instance (required to work with the JCR API) by using a Sling method named getServiceResourceResolver(). This new method replaces the use of the following API code:

 ResourceResolver resourceResolver = resolverFactory.getAdministrativeResourceResolver(null);
  session = resourceResolver.adaptTo(Session.class);

 The following code shows use of the more secure getServiceResourceResolver API call.

Map<String, Object> param = new HashMap<String, Object>();
param.put(ResourceResolverFactory.SUBSERVICE, "datawrite");
ResourceResolver resolver = null;

try {
           
    //Invoke the adaptTo method to create a Session used to create a QueryManager
resolver = resolverFactory.getServiceResourceResolver(param);
    session = resolver.adaptTo(Session.class);

This code uses a specific AEM account with JCR read and write privileges to access the AEM 6 JCR.

Note: As of AEM 6, the getAdministrativeResourceResolver method is deprecated.

This article creates the following AEM Query application.



To watch the video, click: 




Join the Adobe Experience Cloud Community 

Join the Adobe Experience Cloud Community by clicking this banner




I (Scott Macdonald) am a Senior Digital Marketing Community Manager at Adobe Systems with 20 years in the high tech industry. I am also a programmer with knowledge in Java, JavaScript, C#,C++, HTML, XML and ActionScript. If  you would like to see more CQ or other Adobe Digital Marketing end to end articles like this, then leave a comment and let me know what content you would like to see.


TwitterFollow the Digital Marketing Customer Care team on Twitter @AdobeExpCare.

YouTube: Subscribe to the AEM Community Channel