|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.riotfamily.riot.security.session.RiotUserDaoWrapper
public class RiotUserDaoWrapper
Wrapper that invokes UserHolder.updateUser(String, RiotUser) whenever
a user is updated or deleted.
| Constructor Summary | |
|---|---|
RiotUserDaoWrapper(RiotUserDao userDao)
|
|
| Method Summary | |
|---|---|
void |
delete(Object entity,
Object parent)
Deletes the given entity. |
RiotUser |
findUserByCredentials(String username,
String password)
|
RiotUser |
findUserById(String userId)
|
Class<?> |
getEntityClass()
Returns the class that is accessed by the DAO. |
int |
getListSize(Object parent,
ListParams params)
Returns the total number of entities. |
String |
getObjectId(Object entity)
Returns the id of the given entity. |
Collection<?> |
list(Object parent,
ListParams params)
Returns a list of entities. |
Object |
load(String id)
Returns the entity with the given id. |
Object |
merge(Object entity)
Re-attaches the given entity. |
void |
save(Object entity,
Object parent)
Saves the given entity. |
void |
update(Object entity)
Updates the given entity. |
void |
updatePassword(RiotUser user,
String newPassword)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RiotUserDaoWrapper(RiotUserDao userDao)
| Method Detail |
|---|
public RiotUser findUserByCredentials(String username,
String password)
findUserByCredentials in interface RiotUserDaopublic RiotUser findUserById(String userId)
findUserById in interface RiotUserDao
public void updatePassword(RiotUser user,
String newPassword)
updatePassword in interface RiotUserDaopublic Class<?> getEntityClass()
RiotDao
getEntityClass in interface RiotDao
public int getListSize(Object parent,
ListParams params)
throws DataAccessException
RiotDao
getListSize in interface RiotDaoDataAccessException
public Collection<?> list(Object parent,
ListParams params)
throws DataAccessException
RiotDao
list in interface RiotDaoDataAccessExceptionpublic String getObjectId(Object entity)
RiotDaoload()
method.
getObjectId in interface RiotDao
public Object load(String id)
throws DataAccessException
RiotDao
load in interface RiotDaoDataAccessException
public void save(Object entity,
Object parent)
throws DataAccessException
RiotDao
save in interface RiotDaoDataAccessExceptionpublic Object merge(Object entity)
RiotDao
merge in interface RiotDaopublic void update(Object entity)
RiotDao
update in interface RiotDao
public void delete(Object entity,
Object parent)
RiotDao
delete in interface RiotDao
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||