public class UserSessionAdapter extends AbstractMongoAdapter<MongoUserSessionEntity> implements UserSessionModel
invocationContext| Constructor and Description |
|---|
UserSessionAdapter(MongoUserSessionEntity entity,
RealmAdapter realm,
MongoStoreInvocationContext invContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
associateClient(ClientModel client) |
List<ClientModel> |
getClientAssociations() |
String |
getId() |
String |
getIpAddress() |
int |
getLastSessionRefresh() |
protected MongoUserSessionEntity |
getMongoEntity() |
int |
getStarted() |
UserModel |
getUser() |
void |
removeAssociatedClient(ClientModel client) |
void |
setId(String id) |
void |
setIpAddress(String ipAddress) |
void |
setLastSessionRefresh(int seconds) |
void |
setStarted(int started) |
void |
setUser(UserModel user) |
equals, getMongoStore, hashCode, updateMongoEntitypublic UserSessionAdapter(MongoUserSessionEntity entity, RealmAdapter realm, MongoStoreInvocationContext invContext)
protected MongoUserSessionEntity getMongoEntity()
getMongoEntity in class AbstractMongoAdapter<MongoUserSessionEntity>public String getId()
getId in interface UserSessionModelpublic void setId(String id)
setId in interface UserSessionModelpublic UserModel getUser()
getUser in interface UserSessionModelpublic void setUser(UserModel user)
setUser in interface UserSessionModelpublic String getIpAddress()
getIpAddress in interface UserSessionModelpublic void setIpAddress(String ipAddress)
setIpAddress in interface UserSessionModelpublic int getStarted()
getStarted in interface UserSessionModelpublic void setStarted(int started)
setStarted in interface UserSessionModelpublic int getLastSessionRefresh()
getLastSessionRefresh in interface UserSessionModelpublic void setLastSessionRefresh(int seconds)
setLastSessionRefresh in interface UserSessionModelpublic void associateClient(ClientModel client)
associateClient in interface UserSessionModelpublic List<ClientModel> getClientAssociations()
getClientAssociations in interface UserSessionModelpublic void removeAssociatedClient(ClientModel client)
removeAssociatedClient in interface UserSessionModelCopyright © 2014. All Rights Reserved.