Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Override SocialActivitiesQueryHelper
I am trying to override SocialActivitiesQueryHelper service from com.liferay.social.activities.web.internal.util package. A new module is created and the service ranking is set so that my new service overrides the default one. @Component( immediate = true, property = { "service.ranking:Integer=100" }, service = SocialActivitiesQueryHelper.class)
public class MyCustomQueryHelper extends SocialActivitiesQueryHelper {
@Override
public List<SocialActivitySet> getSocialActivitySets(args){
// Do my changes here
}
I then deploy my new module. Somehow, the getSocialActivitySets() from MyCustomQueryHelper service is not being triggered/called.
Is this the correct approach? I would be grateful, if anyone can point out what I am doing wrong. Or I am open to suggestions, if there is a better way. Thanks a lot in advance.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™