Class ProfileResource
java.lang.Object
dev.getelements.elements.rest.profile.ProfileResource
Created by patricktwohig on 6/27/17.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateProfile
(CreateProfileRequest profileRequest) void
deactivateProfile
(String profileId) getProfile
(String profileId) getProfiles
(int offset, int count, Long beforeTimestamp, Long afterTimestamp, String applicationNameOrId, String userId, String search) void
setProfileService
(ProfileService profileService) void
setValidationHelper
(ValidationHelper validationHelper) updateProfile
(String profileId, UpdateProfileRequest profileRequest) updateProfileImage
(String profileId, UpdateProfileImageRequest updateProfileImageRequest)
-
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
-
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
-
setProfileService
-
getValidationHelper
-
setValidationHelper
-