Class ProgramRest

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

public class ProgramRest extends Object implements org.exoplatform.services.rest.resource.ResourceContainer
  • Field Details

    • portalContainer

      protected org.exoplatform.container.PortalContainer portalContainer
    • programService

      protected ProgramService programService
    • ruleService

      protected RuleService ruleService
    • identityManager

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

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

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

      protected org.exoplatform.portal.config.UserACL userAcl
    • defaultProgramCover

      public byte[] defaultProgramCover
    • defaultProgramAvatar

      public byte[] defaultProgramAvatar
  • Constructor Details

    • ProgramRest

      public ProgramRest(org.exoplatform.container.PortalContainer portalContainer, ProgramService programService, RuleService ruleService, io.meeds.social.translation.service.TranslationService translationService, org.exoplatform.social.core.manager.IdentityManager identityManager, io.meeds.portal.security.service.SecuritySettingService securitySettingService, org.exoplatform.portal.config.UserACL userAcl)
  • Method Details

    • getPrograms

      public javax.ws.rs.core.Response getPrograms(@Context javax.servlet.http.HttpServletRequest request, int offset, int limit, EntityStatusType programStatus, boolean owned, boolean sortByBudget, boolean includeDeleted, boolean returnSize, String lang, String query, String sortField, boolean sortDescending, String expand)
    • createProgram

      @RolesAllowed("users") public javax.ws.rs.core.Response createProgram(@Context javax.servlet.http.HttpServletRequest request, ProgramDTO program)
    • updateProgram

      @RolesAllowed("users") public javax.ws.rs.core.Response updateProgram(@Context javax.servlet.http.HttpServletRequest request, long programId, ProgramDTO program)
    • deleteProgram

      @RolesAllowed("users") public javax.ws.rs.core.Response deleteProgram(@Context javax.servlet.http.HttpServletRequest request, long programId)
    • checkProgramColorValidity

      public javax.ws.rs.core.Response checkProgramColorValidity(long programId, String color)
    • getProgramCover

      public javax.ws.rs.core.Response getProgramCover(@Context javax.ws.rs.core.Request request, Long lastModified, String programId, String token) throws IOException
      Throws:
      IOException
    • getProgramAvatar

      public javax.ws.rs.core.Response getProgramAvatar(@Context javax.ws.rs.core.Request request, Long lastModified, String programId, String token) throws IOException
      Throws:
      IOException
    • deleteProgramCover

      @RolesAllowed("users") public javax.ws.rs.core.Response deleteProgramCover(@Context javax.servlet.http.HttpServletRequest request, long programId)
    • deleteProgramAvatar

      @RolesAllowed("users") public javax.ws.rs.core.Response deleteProgramAvatar(@Context javax.servlet.http.HttpServletRequest request, long programId)
    • getProgramById

      public javax.ws.rs.core.Response getProgramById(@Context javax.servlet.http.HttpServletRequest request, long programId, String lang, String expand)