Class RuleBuilder
java.lang.Object
io.meeds.gamification.rest.builder.RuleBuilder
-
Method Summary
Modifier and TypeMethodDescriptionstatic RuleRestEntitytoRestEntity(ProgramService programService, RuleService ruleService, RealizationService realizationService, io.meeds.social.translation.service.TranslationService translationService, org.exoplatform.social.metadata.favorite.FavoriteService favoriteService, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.manager.ActivityManager activityManager, org.exoplatform.social.common.xmlprocessor.XMLProcessor xmlProcessor, org.exoplatform.portal.config.UserACL userAcl, RuleDTO rule, Locale locale, List<String> expandFields, int realizationsLimit, boolean noProgram, boolean anonymous, PeriodType periodType) static UserInfoContexttoUserContext(ProgramService programService, RealizationService realizationService, RuleDTO rule, String username) static voidtranslatedLabels(io.meeds.social.translation.service.TranslationService translationService, RuleDTO rule, Locale locale)
-
Method Details
-
toRestEntity
public static RuleRestEntity toRestEntity(ProgramService programService, RuleService ruleService, RealizationService realizationService, io.meeds.social.translation.service.TranslationService translationService, org.exoplatform.social.metadata.favorite.FavoriteService favoriteService, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.manager.ActivityManager activityManager, org.exoplatform.social.common.xmlprocessor.XMLProcessor xmlProcessor, org.exoplatform.portal.config.UserACL userAcl, RuleDTO rule, Locale locale, List<String> expandFields, int realizationsLimit, boolean noProgram, boolean anonymous, PeriodType periodType) -
translatedLabels
-
toUserContext
public static UserInfoContext toUserContext(ProgramService programService, RealizationService realizationService, RuleDTO rule, String username)
-