Expand my Community achievements bar.

SOLVED

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

Avatar

Level 2

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. 

1 Accepted Solution

Avatar

Correct answer by
Level 10
2 Replies

Avatar

Level 10

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/Soc...

Avatar

Correct answer by
Level 10