|
Dekoh platform API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.pramati.bfly.das.helper.SessionUtil
public class SessionUtil
Helper to get loggedin user information.
| Constructor Summary | |
|---|---|
SessionUtil()
|
|
| Method Summary | |
|---|---|
static HttpSession |
getDesktopSession(HttpServletRequest request)
To create or get a Desktop Portal session for the given request. |
static HttpSession |
getDesktopSession(HttpServletRequest request,
boolean createNew)
|
static HttpSession |
getDesktopSession(String sid,
boolean createNew)
To get a Desktop Portal session for the given request. |
static String |
getLoggedInAccountId(HttpServletRequest request)
Same as invoking getLoggedInDesktopUser(request).getAccountId() on an authenticated session
request. |
static DesktopUser |
getLoggedInDesktopUser(HttpServletRequest request)
To get LoggedIn Desktop user in this session. |
static String |
getLoggedInUser(HttpServletRequest request)
Same as invoking getLoggedInDesktopUser(request).getUsername() on an authenticated session request. |
static String |
getPublicViewLink(HttpServletRequest request,
String localPath)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SessionUtil()
| Method Detail |
|---|
public static String getLoggedInUser(HttpServletRequest request)
getLoggedInDesktopUser(request).getUsername() on an authenticated session request.
request - current httpServletRequest.
public static String getLoggedInAccountId(HttpServletRequest request)
getLoggedInDesktopUser(request).getAccountId() on an authenticated session
request.
request - current httpServletRequest.
public static DesktopUser getLoggedInDesktopUser(HttpServletRequest request)
request - current httpServletRequest.
public static HttpSession getDesktopSession(HttpServletRequest request)
SessionUtil.getDesktopSession(String,boolean), except that this api assumes that dekohportal application is deployed, and
failing fetch or create a dekoh portal session would throw a IllegalArgumentException.
request - HttpServletRequest which needs the dekohportal session.
public static HttpSession getDesktopSession(HttpServletRequest request,
boolean createNew)
public static HttpSession getDesktopSession(String sid,
boolean createNew)
sid - SessionId for the needed session instance.createNew - if true, will try creating a new Desktop portal session if no session exists.
public static String getPublicViewLink(HttpServletRequest request,
String localPath)
|
Dekoh platform API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
© 2009 Pramati Technologies - Dekoh - Portal for Developers