|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.bamboo.rest.DefaultSessionManager
public class DefaultSessionManager
This class manages user rest api sessions.
| Field Summary | |
|---|---|
static long |
DEFAULT_TIMEOUT
|
| Constructor Summary | |
|---|---|
DefaultSessionManager(BambooUserManager bambooUserManager)
Default constructor that uses the default user timeout |
|
DefaultSessionManager(long sessionTimeout,
BambooUserManager bambooUserManager)
Custom constructor to control the length of the timeout |
|
| Method Summary | |
|---|---|
String |
getUserNameFromSession(String sessionId)
What is the username associated with this session? |
String |
login(String username,
String password)
Allow remote users to login to bamboo, providing them with a session id to pass into remote methods. |
void |
logout(String sessionId)
Log users out of the session |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static long DEFAULT_TIMEOUT
| Constructor Detail |
|---|
public DefaultSessionManager(BambooUserManager bambooUserManager)
public DefaultSessionManager(long sessionTimeout,
BambooUserManager bambooUserManager)
sessionTimeout - How much inactive use before the user's session timesout?| Method Detail |
|---|
public String login(String username,
String password)
throws BambooRemoteException
login in interface SessionManagerusername - The username we want to login underpassword - The password associatedd with the username
BambooRemoteException - Failed to loginpublic void logout(String sessionId)
logout in interface SessionManagersessionId - The session identifer
public String getUserNameFromSession(String sessionId)
throws BambooRemoteException
getUserNameFromSession in interface SessionManagersessionId - The session identifier
BambooRemoteException - Unknown or timed out session,
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||