Class RuleBuilder

java.lang.Object
io.meeds.gamification.rest.builder.RuleBuilder

public class RuleBuilder extends Object
  • 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

      public static void translatedLabels(io.meeds.social.translation.service.TranslationService translationService, RuleDTO rule, Locale locale)
    • toUserContext

      public static UserInfoContext toUserContext(ProgramService programService, RealizationService realizationService, RuleDTO rule, String username)
    • processRichEditorContent

      public static String processRichEditorContent(org.exoplatform.social.common.xmlprocessor.XMLProcessor xmlProcessor, String content)