Package com.infoclinika.mssharing.model.internal.entity

Examples of com.infoclinika.mssharing.model.internal.entity.User


        return USER_DETAILS_FROM_USER.apply(user);
    }

    @Override
    public UserDetails getUserDetails(long id) {
        final User user = userRepository.findOne(id);
        return USER_DETAILS_FROM_USER.apply(user);
    }
View Full Code Here


        this.instrumentRepository = instrumentRepository;
    }

    @Override
    public UserDetails userDetails(long id) {
        final User one = userRepository.findOne(id);
        return new UserDetails(one.getFullName(), one.getEmail());
    }
View Full Code Here

    @Inject
    private InboxMessageRepository messageRepository;

    @Override
    public void notify(long from, long to, String message) {
        User fromUser = Util.USER_FROM_ID.apply(from);
        User toUser = Util.USER_FROM_ID.apply(to);
        messageRepository.save(new InboxMessage(fromUser, toUser, new Date(), message));
    }
View Full Code Here

            httpClient.getCredentialsProvider().setCredentials(AuthScope.ANY, new UsernamePasswordCredentials(bitBucketUsername, bitBucketPassword));

            final HttpPost httpPost = new HttpPost(endpoint);
            final List<NameValuePair> params = new ArrayList<NameValuePair>();

            final User user = userRepository.findOne(actor);
            if(user == null) {
                LOG.error("Cannot post an issue. User not found for ID: " + user);
                return;
            }

            final String actorName = user.getFullName() + " (<" + user.getEmail() + ">)";
            final String contentsWithUser = "Reported by: " + actorName + "\n\n";

            params.add(new BasicNameValuePair(TITLE_PARAM, issueTitle));
            params.add(new BasicNameValuePair(CONTENT_PARAM, contentsWithUser + issueContents));
            params.add(new BasicNameValuePair(COMPONENT_PARAM, componentName));
View Full Code Here

TOP

Related Classes of com.infoclinika.mssharing.model.internal.entity.User

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.