Class RuleRest

java.lang.Object
io.meeds.gamification.rest.RuleRest
All Implemented Interfaces:
org.exoplatform.services.rest.resource.ResourceContainer

public class RuleRest extends Object implements org.exoplatform.services.rest.resource.ResourceContainer
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.exoplatform.social.core.manager.ActivityManager
     
    protected org.exoplatform.social.metadata.favorite.FavoriteService
     
    protected org.exoplatform.social.core.manager.IdentityManager
     
    protected ProgramService
     
     
    protected RuleService
     
    protected io.meeds.portal.security.service.SecuritySettingService
     
    protected io.meeds.social.translation.service.TranslationService
     
    protected org.exoplatform.portal.config.UserACL
     
    protected org.exoplatform.social.common.xmlprocessor.XMLProcessor
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    RuleRest(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, io.meeds.portal.security.service.SecuritySettingService securitySettingService, org.exoplatform.social.core.manager.ActivityManager activityManager, org.exoplatform.social.common.xmlprocessor.XMLProcessor xmlProcessor, org.exoplatform.portal.config.UserACL userAcl)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    javax.ws.rs.core.Response
    createRule(jakarta.servlet.http.HttpServletRequest request, RulePublication rule)
     
    javax.ws.rs.core.Response
    deleteRule(jakarta.servlet.http.HttpServletRequest request, long ruleId)
     
    javax.ws.rs.core.Response
    getRule(jakarta.servlet.http.HttpServletRequest request, long id, int realizationsLimit, String lang, String expand)
     
    javax.ws.rs.core.Response
    getRules(jakarta.servlet.http.HttpServletRequest request, int offset, int limit, long programId, List<Long> spaceIds, String eventName, EntityFilterType ruleType, EntityStatusType programStatus, EntityStatusType ruleStatus, DateFilterType dateFilter, String term, boolean favorites, List<String> tagNames, String sortField, boolean sortDescending, boolean includeDeleted, int realizationsLimit, boolean groupByProgram, boolean orderByRealizations, List<Long> excludedRuleIds, PeriodType periodType, boolean returnSize, String lang, String expand)
     
    javax.ws.rs.core.Response
    updateRule(jakarta.servlet.http.HttpServletRequest request, RulePublication rule)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • programService

      protected ProgramService programService
    • ruleService

      protected RuleService ruleService
    • realizationService

      protected RealizationService realizationService
    • translationService

      protected io.meeds.social.translation.service.TranslationService translationService
    • favoriteService

      protected org.exoplatform.social.metadata.favorite.FavoriteService favoriteService
    • identityManager

      protected org.exoplatform.social.core.manager.IdentityManager identityManager
    • securitySettingService

      protected io.meeds.portal.security.service.SecuritySettingService securitySettingService
    • activityManager

      protected org.exoplatform.social.core.manager.ActivityManager activityManager
    • xmlProcessor

      protected org.exoplatform.social.common.xmlprocessor.XMLProcessor xmlProcessor
    • userAcl

      protected org.exoplatform.portal.config.UserACL userAcl
  • Constructor Details

    • RuleRest

      public RuleRest(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, io.meeds.portal.security.service.SecuritySettingService securitySettingService, org.exoplatform.social.core.manager.ActivityManager activityManager, org.exoplatform.social.common.xmlprocessor.XMLProcessor xmlProcessor, org.exoplatform.portal.config.UserACL userAcl)
  • Method Details

    • getRules

      public javax.ws.rs.core.Response getRules(@Context jakarta.servlet.http.HttpServletRequest request, int offset, int limit, long programId, List<Long> spaceIds, String eventName, EntityFilterType ruleType, EntityStatusType programStatus, EntityStatusType ruleStatus, DateFilterType dateFilter, String term, boolean favorites, List<String> tagNames, String sortField, boolean sortDescending, boolean includeDeleted, int realizationsLimit, boolean groupByProgram, boolean orderByRealizations, List<Long> excludedRuleIds, PeriodType periodType, boolean returnSize, String lang, String expand)
    • getRule

      public javax.ws.rs.core.Response getRule(@Context jakarta.servlet.http.HttpServletRequest request, long id, int realizationsLimit, String lang, String expand)
    • createRule

      @RolesAllowed("users") public javax.ws.rs.core.Response createRule(@Context jakarta.servlet.http.HttpServletRequest request, RulePublication rule)
    • updateRule

      @RolesAllowed("users") public javax.ws.rs.core.Response updateRule(@Context jakarta.servlet.http.HttpServletRequest request, RulePublication rule)
    • deleteRule

      @RolesAllowed("users") public javax.ws.rs.core.Response deleteRule(@Context jakarta.servlet.http.HttpServletRequest request, long ruleId)