AEM 6.1 MSRP | Searching UGC | Adobe Higher Education
Skip to main content
Naveen_AEM_dev
Level 4
February 24, 2016
Beantwortet

AEM 6.1 MSRP | Searching UGC

  • February 24, 2016
  • 2 Antworten
  • 1029 Ansichten

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?

Dieses Thema wurde für Antworten geschlossen.
Beste Antwort von JK_Kendall

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

2 Antworten

JK_Kendall
JK_KendallAntwort
Level 9
February 24, 2016

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

Naveen_AEM_dev
Level 4
February 25, 2016

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");