I've created a custom poll component as it is not available in AEM 6.1 and managed to post some UGC to the Mongo DB through the MSRP API.
Now, I would also like to query the SRP to determine if the current logged in user has already responded to a poll or not and also show the overall poll response values.
To implement this, I require an API that can iterate through the values that are in the SRP and return results as per the above requirements.
Is there an API already available which does this? I'm assuming that there should be one since the Rating Social component also does most of the above functionality.
The documentation around creating custom components using the SRP is very limited and I haven't been able to find too many example implementations either.
Can someone pls provide some recommendations / suggestions?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
For a 'quick' reply, have a look at
https://github.com/Adobe-Marketing-Cloud/communities-srp-tools
The path to UGC is the value of the asipath property of the /etc/socialconfig/srpc/defaultconfiguration node.
- JK
Views
Replies
Total Likes
Hi,
For a 'quick' reply, have a look at
https://github.com/Adobe-Marketing-Cloud/communities-srp-tools
The path to UGC is the value of the asipath property of the /etc/socialconfig/srpc/defaultconfiguration node.
- JK
Views
Replies
Total Likes
I've used the below implementation and querying is working,
String query = "parent_id_s:\"" + socialResource.getParent().getPath() + "\"";
Iterator<Resource> searchResults = (Iterator<Resource>) srp.findResources(this.serviceResourceResolver, query,"MONGOQUERY");
Views
Replies
Total Likes