|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.emf.emfstore.internal.common.api.AbstractAPIImpl<ESUsersessionImpl,Usersession>
org.eclipse.emf.emfstore.internal.client.model.impl.api.ESUsersessionImpl
public class ESUsersessionImpl
Mapping between ESUsersession and Usersession.
| Constructor Summary | |
|---|---|
ESUsersessionImpl(Usersession usersession)
Constructor. |
|
| Method Summary | |
|---|---|
void |
delete()
Deletes this usersession. |
ESSessionId |
getESSessionId()
Returns the session ID. |
String |
getPassword()
Returns the password. |
ESServer |
getServer()
Returns the usersession's server. |
ESSessionId |
getSessionId()
Returns the session id of this session. |
String |
getUsername()
Returns the name of the user this user session is associated with. |
boolean |
isLoggedIn()
Checks whether the user session has a ESSessionId. |
boolean |
isSavePassword()
Whether the password that is used by this session will be saved. |
void |
logout()
Logs out the user session. |
void |
refresh()
Relogins into the server using the same credentials in order to update the ESSessionId. |
void |
setPassword(String password)
Sets the password to be used by this session when logging in. |
void |
setSavePassword(boolean shouldSavePassword)
Whether the password that is used by this session should be saved. |
void |
setServer(ESServerImpl server)
Sets the server. |
void |
setUsername(String name)
Sets the user's name to be used by this session when logging in. |
| Methods inherited from class org.eclipse.emf.emfstore.internal.common.api.AbstractAPIImpl |
|---|
equals, hashCode, toInternalAPI |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ESUsersessionImpl(Usersession usersession)
usersession - the delegate| Method Detail |
|---|
public ESServer getServer()
getServer in interface ESUsersessionESUsersession.getServer()public String getUsername()
getUsername in interface ESUsersessionESUsersession.getUsername()public String getPassword()
getPassword in interface ESUsersessionESUsersession.getPassword()public boolean isLoggedIn()
ESSessionId.
isLoggedIn in interface ESUsersessionESUsersession.isLoggedIn()
public void refresh()
throws ESException
ESSessionId.
refresh in interface ESUsersessionESException - in case renewal of the session failedESUsersession.refresh()
public void logout()
throws ESException
logout in interface ESUsersessionESException - in case an error occurred during logoutESUsersession.logout()public ESSessionId getESSessionId()
public void setUsername(String name)
name - the name of the userpublic void setPassword(String password)
password - the new passwordpublic void setServer(ESServerImpl server)
server - the serverpublic ESSessionId getSessionId()
getSessionId in interface ESUsersessionESUsersession.getSessionId()public void setSavePassword(boolean shouldSavePassword)
setSavePassword in interface ESUsersessionshouldSavePassword - true if the password should be saved, false otherwiseESUsersession.setSavePassword(boolean)public boolean isSavePassword()
isSavePassword in interface ESUsersessiontrue if the password is saved, false otherwiseESUsersession.isSavePassword()
public void delete()
throws ESException
delete in interface ESUsersessionESException - in case removing the session failsESUsersession.delete()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||