Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

AEM Community Group Configuration update from Publish

Avatar

Community Advisor

I am currently working on AEM communities. After creation of a group, I see that only way to update the thumbnail Image, title and Description is to do it from author instance and publish the group. As a requirement I am looking to allow updating above three properties from Publish instance (User facing) by the community admins

This question is related to Communities Settings I posted few days back, but wanted to clarify the "settings update from publish" part in this question.

I am trying following

- Create a servlet and call api service that can update a group's properties

1. Call com.adobe.cq.social.group.client.api.CommunityGroupService - setCommunityGroupConfigure(ResourceResolver arg0, String arg1, ValueMap arg2) but I get an exception that the items already exists if I try to put the desired properties in the ValueMap. The arg2 is the Resource adaptation of the group's configuration node.

ValueMap vm = request.getResourceResolver().getResource(groupPath + "/configuration").getValueMap();

communityGroupService.setCommunityGroupConfigure(serviceResolver, groupPath, vm);

2. Use com.adobe.cq.social.group.client.endpoints.CommunityGroupOperations -  update(SlingHttpServletRequest arg0) method. While doing this I see a message that states "The type com.adobe.cq.social.site.endpoints.PublishOperation cannot be resolved. It is indirectly referenced from required .class files" I have looked up the Publish operation class in the latest communities jar 1.11.170 (and 1.10.167 FP3 jar) and AEM 6.2 SP1 Uber jar.

3. Use AbstractCommunityGroupOperationService<CommunityGroupOperationExtension,CommunityGroupOperation> - update(SlingHttpServletRequest request) method. In this case I see message as "The type com.adobe.cq.social.console.utils.api.FunctionDefinitionUtils cannot be resolved. It is indirectly referenced from required .class files" Again this class is also not found in the jars. The missing classes are probably available with 6.3 but not sure why are they referenced indirectly.

Please let me know if or how this can be possible.

Regards,

Shubham

1 Reply

Avatar

Administrator

Checking this with internal experts!!



Kautuk Sahni