Is there a way to access SocialComponentFactory object in Java thru OSGI? | Community
Skip to main content
jv_chua
Level 2
October 16, 2015
Solved

Is there a way to access SocialComponentFactory object in Java thru OSGI?

  • October 16, 2015
  • 2 replies
  • 818 views

We read about this tutorials about Social Community Framework in Adobe CQ 6.

http://docs.adobe.com/docs/en/aem/6-0/develop/social-communities/scf/server-customize.html

http://helpx.adobe.com/experience-manager/using/social_components.html

http://docs.adobe.com/docs/en/aem/6-0/develop/social-communities/essentials/calendar.html

We want to post Calendar events programmatically and not use the client hbs UI. We would like to know if there is a way we can call classes 'com.adobe.cq.social.commons.client.api.SocialComponentFactory' in our custom Java classes and deploy the bundle to OSGI. 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

smacdonald2008
Level 10
October 16, 2015

The article that you referenced: http://helpx.adobe.com/experience-manager/using/social_components.html 

shows how to create an OSGi bundle that contains a class that extends a social class:

public class CustomCommentFactory extends CommentSocialComponentFactory

You can do a similar development pattern and extend the SocialComponentFactory. 

http://docs.adobe.com/docs/en/aem/6-0/develop/ref/javadoc/com/adobe/cq/social/commons/client/api/SocialComponentFactory.html