com.atlassian.mywork.host.rest
Class LoggedInUserResource

java.lang.Object
  extended by com.atlassian.mywork.host.rest.LoggedInUserResource

public class LoggedInUserResource
extends java.lang.Object

Handlers host-agnostic user services. This is currently only used by the Chrome extension.


Constructor Summary
LoggedInUserResource(com.atlassian.sal.api.user.UserManager userManager)
           
 
Method Summary
 javax.ws.rs.core.Response getUsername(javax.servlet.http.HttpServletRequest request)
          Retrieves the currently logged in user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggedInUserResource

public LoggedInUserResource(com.atlassian.sal.api.user.UserManager userManager)
Method Detail

getUsername

public javax.ws.rs.core.Response getUsername(@Context
                                             javax.servlet.http.HttpServletRequest request)
                                      throws java.lang.Exception
Retrieves the currently logged in user.

Throws:
java.lang.Exception


Copyright © 2012 Atlassian. All Rights Reserved.