Examples of RichUser


Examples of com.infoclinika.mssharing.web.security.RichUser


    @RequestMapping(value = "/items", method = RequestMethod.POST)
    @ResponseBody
    public UploadFilesResponse save(@RequestBody UploadFilesRequest uploadFilesRequest, Principal principal) throws IOException {
        final RichUser user = get(principal);
        long userId = user.getId();

        if (user.getLabs().isEmpty()) {
            throw new AccessDenied("User isn't permitted to upload file - laboratory is not specified");
        }
        //todo: verify instrument ID?
        final long instrumentId = uploadFilesRequest.instrument;
View Full Code Here

Examples of com.infoclinika.mssharing.web.security.RichUser

    @ResponseBody
    @RequestMapping(method = RequestMethod.GET)
    public RichUser loggedInUser(Principal principal) {
        try {
            final RichUser richUser = get(principal);
            updateUserLabChanges(richUser);
            return richUser;
        } catch (AccessDeniedException e) {
            return null;
        }
View Full Code Here

Examples of com.infoclinika.mssharing.web.security.RichUser

            }
        }
    }

    private Author getAuthor(Principal principal) {
        RichUser richUser = RichUser.get(principal);
        Author author = new Author();
        author.setId(richUser.getId());
        author.setName(richUser.getFirstName() + " " + richUser.getLastName());
        return author;
    }
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.