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, updateMongoEntity
public UserSessionAdapter(MongoUserSessionEntity entity, RealmAdapter realm, MongoStoreInvocationContext invContext)
protected MongoUserSessionEntity getMongoEntity()
getMongoEntity
in class AbstractMongoAdapter<MongoUserSessionEntity>
public String getId()
getId
in interface UserSessionModel
public void setId(String id)
setId
in interface UserSessionModel
public UserModel getUser()
getUser
in interface UserSessionModel
public void setUser(UserModel user)
setUser
in interface UserSessionModel
public String getIpAddress()
getIpAddress
in interface UserSessionModel
public void setIpAddress(String ipAddress)
setIpAddress
in interface UserSessionModel
public int getStarted()
getStarted
in interface UserSessionModel
public void setStarted(int started)
setStarted
in interface UserSessionModel
public int getLastSessionRefresh()
getLastSessionRefresh
in interface UserSessionModel
public void setLastSessionRefresh(int seconds)
setLastSessionRefresh
in interface UserSessionModel
public void associateClient(ClientModel client)
associateClient
in interface UserSessionModel
public List<ClientModel> getClientAssociations()
getClientAssociations
in interface UserSessionModel
public void removeAssociatedClient(ClientModel client)
removeAssociatedClient
in interface UserSessionModel
Copyright © 2014. All Rights Reserved.