Package com.atlassian.stash.user

Examples of com.atlassian.stash.user.StashUser


    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        resp.setContentType("text/plain");
        Writer writer = new OutputStreamWriter(resp.getOutputStream());
        StashUser currentUser = stashAuthenticationContext.getCurrentUser();
        if (currentUser != null) {
            writer.write("First ten keys for " + currentUser.getName() + ":\n");
            for (SshKey key : sshKeyService.findSshKeysForUser(currentUser, new PageRequestImpl(0, 10)).getValues()) {
                writer.write(key.getLabel() + " " + key.getText() + "\n");
            }
            writer.write("\n");
        } else {
View Full Code Here

TOP

Related Classes of com.atlassian.stash.user.StashUser

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.