Package org.fluxtream.core.mvc.models

Examples of org.fluxtream.core.mvc.models.AvatarImageModel


            @ApiResponse(code=403, message="Buddy-to-access authorization has been revoked")
    })
    @ApiOperation(value = "Retrieve the avatar (gravatar) of the currently logged in's guest", response = AvatarImageModel.class)
    public Response getAvatarImage(@ApiParam(value="Buddy to access username parameter (" + BuddiesService.BUDDY_TO_ACCESS_PARAM + ")", required=false) @QueryParam(BuddiesService.BUDDY_TO_ACCESS_PARAM) String buddyToAccessParameter) {
        Guest guest = AuthHelper.getGuest();
        AvatarImageModel avatarImage = getAvatarImageModel(buddyToAccessParameter, guest);
        return Response.ok(avatarImage).build();
    }
View Full Code Here


        AvatarImageModel avatarImage = getAvatarImageModel(buddyToAccessParameter, guest);
        return Response.ok(avatarImage).build();
    }

    private AvatarImageModel getAvatarImageModel(String buddyToAccessParameter, Guest guest) {
        AvatarImageModel avatarImage = new AvatarImageModel();
        String type = "none";
        String url;
        try {
            final CoachingBuddy coachee = AuthHelper.getCoachee(buddyToAccessParameter, buddiesService);
            if (coachee!=null)
View Full Code Here

TOP

Related Classes of org.fluxtream.core.mvc.models.AvatarImageModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.