Class ProgramBuilder
java.lang.Object
io.meeds.gamification.rest.builder.ProgramBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbuildAdministrators(ProgramService programService, org.exoplatform.portal.config.UserACL userAcl) static List<ProgramRestEntity>toRestEntities(ProgramService programService, RuleService ruleService, io.meeds.social.translation.service.TranslationService translationService, org.exoplatform.portal.config.UserACL userAcl, Locale locale, List<ProgramDTO> programs, List<String> expandFields, String username) static ProgramRestEntitytoRestEntity(ProgramService programService, RuleService ruleService, io.meeds.social.translation.service.TranslationService translationService, org.exoplatform.portal.config.UserACL userAcl, ProgramDTO program, Locale locale, String username, List<String> expandFields, boolean expandAdministrators) static UserInfoContexttoUserContext(ProgramService programService, ProgramDTO program, String username) static voidtranslatedLabels(io.meeds.social.translation.service.TranslationService translationService, ProgramDTO program, Locale locale)
-
Method Details
-
toRestEntity
public static ProgramRestEntity toRestEntity(ProgramService programService, RuleService ruleService, io.meeds.social.translation.service.TranslationService translationService, org.exoplatform.portal.config.UserACL userAcl, ProgramDTO program, Locale locale, String username, List<String> expandFields, boolean expandAdministrators) -
translatedLabels
public static void translatedLabels(io.meeds.social.translation.service.TranslationService translationService, ProgramDTO program, Locale locale) -
toRestEntities
public static List<ProgramRestEntity> toRestEntities(ProgramService programService, RuleService ruleService, io.meeds.social.translation.service.TranslationService translationService, org.exoplatform.portal.config.UserACL userAcl, Locale locale, List<ProgramDTO> programs, List<String> expandFields, String username) -
buildAdministrators
public static List<String> buildAdministrators(ProgramService programService, org.exoplatform.portal.config.UserACL userAcl) -
toUserContext
public static UserInfoContext toUserContext(ProgramService programService, ProgramDTO program, String username)
-