Tuesday, 9 May 2017

Ask the AEM Community Experts for May 2017


Title: Using Lazybones and Editable template in AEM projects

Date: Tues May 30, 2017 11 AM EST

Description: Join Ankur Ahlawat and Scott Macdonald for a discussion about using Lazybones and Editable template in AEM Projects. By joining this session, you will gain a better understanding of how to build AEM projects that take advantage of Lazybones and the new Editable Templates in your projects.


To watch this session - click: https://communities.adobeconnect.com/pkou4185bxyh/?proto=true .

Promote this blog in your own AEM Community Channels - take advantage of this free AEM webinar!!


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

4 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. Hello Scott

    The Sign up link leads to 404 page.

    Could you please provide us updated link?

    Thanks
    Prasanna

    ReplyDelete
  3. Hey Scott

    I am getting null after this line of code:
    ResourceResolver rr = resolverFactory.getServiceResourceResolver(paramMap);


    my funtion :-

    public void writeToDam(InputStream is, String fileName)
    {
    try {
    //Inject a ResourceResolver

    Map paramMap = new HashMap();
    //Mention the subServiceName you had used in the User Mapping
    paramMap.put(ResourceResolverFactory.SUBSERVICE,"mongoDBSampleUser");

    ResourceResolver rr = resolverFactory.getServiceResourceResolver(paramMap);

    //Use AssetManager to place the file into the AEM DAM
    AssetManager assetMgr = rr.adaptTo(AssetManager.class);

    String newFile = "/content/dam/wda/"+fileName ;
    assetMgr.createAsset(newFile, is,"Attachment/xlsx", true);

    }
    catch (Exception e) {
    log.error("error in.... write to DAM function >>"+e.getMessage());
    }

    }


    user mapper Service config:
    com.aem.mongodbProject-bundle:mongoDBSampleUser=mongoDBUser


    system user " mongoDBUser " given all permissions

    ReplyDelete