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.
Join the Experience League
To become an Experience Business, you need more than just great tools and online help. You need a partner. Experience League is a new enablement program with guided learning to help you get the most out of Adobe Experience Cloud. With training materials, one-to-one expert support, and a thriving community of fellow professionals, Experience League is a comprehensive program designed to help you become your best.
Join the Adobe Experience League by clicking this banner.
I (Scott Macdonald) am a Senior Experience League 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 AEM or other end to end articles like this, then leave a comment and let me know what content you would like to see.
Twitter: Follow the Digital Marketing Customer Care team on Twitter @AdobeExpCare.
This comment has been removed by the author.
ReplyDeleteHello Scott
ReplyDeleteThe Sign up link leads to 404 page.
Could you please provide us updated link?
Thanks
Prasanna
Hey Scott
ReplyDeleteI 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
Thank you very much for this great post.
ReplyDeleterole of digital marketing