Examples of appendToConfig()


Examples of com.streamreduce.core.model.User.appendToConfig()

    @Path("config")
    @Produces(MediaType.APPLICATION_JSON)
    public Response setConfigValues(JSONObject jsonObject) {
        User currentUser = securityService.getCurrentUser();
        try {
            currentUser.appendToConfig(jsonObject);
            userService.updateUser(currentUser);
            return Response.ok(currentUser.getConfig()).build();
        } catch (Exception e) {
            return error(e.getMessage(), Response.status(Response.Status.BAD_REQUEST));
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.