Class ProfileResource

java.lang.Object
dev.getelements.elements.rest.profile.ProfileResource

@Path("profile") public class ProfileResource extends Object
Created by patricktwohig on 6/27/17.
  • Constructor Details

    • ProfileResource

      public ProfileResource()
  • Method Details

    • getProfiles

      @GET @Produces("application/json") public Pagination<Profile> getProfiles(@QueryParam("offset") @DefaultValue("0") int offset, @QueryParam("count") @DefaultValue("20") int count, @QueryParam("before") Long beforeTimestamp, @QueryParam("after") Long afterTimestamp, @QueryParam("application") String applicationNameOrId, @QueryParam("user") String userId, @QueryParam("search") String search)
    • getProfile

      @GET @Path("{name}") @Produces("application/json") public Profile getProfile(@PathParam("name") String profileId)
    • getCurrentProfile

      @GET @Path("current") @Produces("application/json") public Profile getCurrentProfile()
    • updateProfile

      @PUT @Path("{profileId}") @Produces("application/json") public Profile updateProfile(@PathParam("profileId") String profileId, UpdateProfileRequest profileRequest)
    • updateProfileImage

      @PUT @Path("{profileId}/image") @Produces("application/json") public Profile updateProfileImage(@PathParam("profileId") String profileId, UpdateProfileImageRequest updateProfileImageRequest) throws IOException
      Throws:
      IOException
    • createProfile

      @POST @Produces("application/json") public Profile createProfile(CreateProfileRequest profileRequest)
    • deactivateProfile

      @DELETE @Path("{profileId}") public void deactivateProfile(@PathParam("profileId") String profileId)
    • getProfileService

      public ProfileService getProfileService()
    • setProfileService

      @Inject public void setProfileService(ProfileService profileService)
    • getValidationHelper

      public ValidationHelper getValidationHelper()
    • setValidationHelper

      @Inject public void setValidationHelper(ValidationHelper validationHelper)