Class UserReputationEndpoint

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

@RolesAllowed("users") public class UserReputationEndpoint extends Object implements org.exoplatform.services.rest.resource.ResourceContainer
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final BadgeService
     
    protected final org.exoplatform.commons.file.services.FileService
     
    protected final org.exoplatform.social.core.manager.IdentityManager
     
    protected final RealizationService
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    UserReputationEndpoint(RealizationService realizationService, org.exoplatform.social.core.manager.IdentityManager identityManager, BadgeService badgeService, org.exoplatform.commons.file.services.FileService fileService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    javax.ws.rs.core.Response
    getallBadges(javax.ws.rs.core.UriInfo uriInfo, jakarta.servlet.http.HttpServletRequest request, String url)
     
    javax.ws.rs.core.Response
    getAllOfBadges(javax.ws.rs.core.UriInfo uriInfo, jakarta.servlet.http.HttpServletRequest request, String url)
     
    javax.ws.rs.core.Response
    getBadgeAvatarById(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, Long id)
     
    javax.ws.rs.core.Response
    getOtherBadges(javax.ws.rs.core.UriInfo uriInfo, jakarta.servlet.http.HttpServletRequest request, String url)
     
    javax.ws.rs.core.Response
    getReputationStatus(javax.ws.rs.core.UriInfo uriInfo, jakarta.servlet.http.HttpServletRequest request, String username, String url)
     
    javax.ws.rs.core.Response
    getUserBadges(long identityId)
     
    javax.ws.rs.core.Response
    getUserBadges(javax.ws.rs.core.UriInfo uriInfo, jakarta.servlet.http.HttpServletRequest request, String url)
     
    javax.ws.rs.core.Response
    stat(javax.ws.rs.core.UriInfo uriInfo, jakarta.servlet.http.HttpServletRequest request, String url)
     

    Methods inherited from class java.lang.Object

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

    • realizationService

      protected final RealizationService realizationService
    • identityManager

      protected final org.exoplatform.social.core.manager.IdentityManager identityManager
    • badgeService

      protected final BadgeService badgeService
    • fileService

      protected final org.exoplatform.commons.file.services.FileService fileService
  • Constructor Details

    • UserReputationEndpoint

      public UserReputationEndpoint(RealizationService realizationService, org.exoplatform.social.core.manager.IdentityManager identityManager, BadgeService badgeService, org.exoplatform.commons.file.services.FileService fileService)
  • Method Details

    • getReputationStatus

      @RolesAllowed("users") public javax.ws.rs.core.Response getReputationStatus(@Context javax.ws.rs.core.UriInfo uriInfo, @Context jakarta.servlet.http.HttpServletRequest request, String username, String url)
    • getUserBadges

      @RolesAllowed("users") public javax.ws.rs.core.Response getUserBadges(long identityId)
    • getUserBadges

      public javax.ws.rs.core.Response getUserBadges(@Context javax.ws.rs.core.UriInfo uriInfo, @Context jakarta.servlet.http.HttpServletRequest request, String url)
    • getBadgeAvatarById

      @RolesAllowed("users") public javax.ws.rs.core.Response getBadgeAvatarById(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.Request request, Long id) throws IOException
      Throws:
      IOException
    • getallBadges

      @RolesAllowed("users") public javax.ws.rs.core.Response getallBadges(@Context javax.ws.rs.core.UriInfo uriInfo, @Context jakarta.servlet.http.HttpServletRequest request, String url)
    • stat

      @RolesAllowed("users") public javax.ws.rs.core.Response stat(@Context javax.ws.rs.core.UriInfo uriInfo, @Context jakarta.servlet.http.HttpServletRequest request, String url)
    • getOtherBadges

      @RolesAllowed("users") public javax.ws.rs.core.Response getOtherBadges(@Context javax.ws.rs.core.UriInfo uriInfo, @Context jakarta.servlet.http.HttpServletRequest request, String url)
    • getAllOfBadges

      @RolesAllowed("users") public javax.ws.rs.core.Response getAllOfBadges(@Context javax.ws.rs.core.UriInfo uriInfo, @Context jakarta.servlet.http.HttpServletRequest request, String url)