|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.ws.server.AbstractRPCService net.sf.basedb.ws.server.SessionService
public class SessionService
Web service class for Session in BASE
Session
Field Summary |
---|
Fields inherited from class net.sf.basedb.ws.server.AbstractRPCService |
---|
util |
Constructor Summary | |
---|---|
SessionService()
|
Method Summary | |
---|---|
String |
getChallenge(String ID)
Service for net.sf.basedb.core.SessionControl#getChallenge() |
Integer |
getSessionTimeOut()
Gets the time in minutes when a session is automatically logged out. |
VersionInfo |
getVersion()
Return information about which Base version is in use. |
String |
login(String ID,
String login,
String password,
String comment,
boolean encrypted)
Service to login to BASE |
String |
logout(String ID)
Service to logout from BASE |
String |
newSession(String externalClientId)
Creates a new session control. |
String |
refreshSession(String ID)
Refresh a session so the time for logging out will be reset. |
Methods inherited from class net.sf.basedb.ws.server.AbstractRPCService |
---|
attachFile, getRemoteId, getSessionControl |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SessionService()
Method Detail |
---|
public String newSession(String externalClientId)
externalClientId
- The external id of a BASE client, or null if
the application hasn't been registered as a client application
public String getChallenge(String ID)
ID
-
public String login(String ID, String login, String password, String comment, boolean encrypted)
ID
- Id of a session controllogin
- Login name for the account to usepassword
- Password for the login above.comment
- Comment to be used with the new sessionencrypted
- If encrypted password should be used or not.
public String logout(String ID)
ID
- Id of the session to logout.
public Integer getSessionTimeOut()
public String refreshSession(String ID)
ID
- The session id as a string
public VersionInfo getVersion()
VersionInfo
object
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |