|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 delegateMethod Detail |
---|
public ESServer getServer()
getServer
in interface ESUsersession
ESUsersession.getServer()
public String getUsername()
getUsername
in interface ESUsersession
ESUsersession.getUsername()
public String getPassword()
getPassword
in interface ESUsersession
ESUsersession.getPassword()
public boolean isLoggedIn()
ESSessionId
.
isLoggedIn
in interface ESUsersession
ESUsersession.isLoggedIn()
public void refresh() throws ESException
ESSessionId
.
refresh
in interface ESUsersession
ESException
- in case renewal of the session failedESUsersession.refresh()
public void logout() throws ESException
logout
in interface ESUsersession
ESException
- 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 ESUsersession
ESUsersession.getSessionId()
public void setSavePassword(boolean shouldSavePassword)
setSavePassword
in interface ESUsersession
shouldSavePassword
- true
if the password should be saved, false
otherwiseESUsersession.setSavePassword(boolean)
public boolean isSavePassword()
isSavePassword
in interface ESUsersession
true
if the password is saved, false
otherwiseESUsersession.isSavePassword()
public void delete() throws ESException
delete
in interface ESUsersession
ESException
- in case removing the session failsESUsersession.delete()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |