|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.portal.user.UserDaoJdbc
public class UserDaoJdbc
Implementation of IUserDao
based on jdbc.
Constructor Summary | |
---|---|
UserDaoJdbc()
|
Method Summary | |
---|---|
void |
add(UserConfig userConfig,
ITransaction transaction)
Add the user. |
void |
addAlternativeLogin(String userId,
String newLogin,
ITransaction transaction)
Adds an alternative login to a user. |
void |
delete(String userId,
ITransaction transaction)
Delete the user. |
void |
deleteAlternativeLogin(String loginToDelete,
ITransaction transaction)
Deletes an alternative login. |
UserConfig |
get(String userId,
ITransaction transaction)
get the user. |
Collection<String> |
getAllUserIds(ITransaction transaction)
Returns all user ids. |
Collection<String> |
getAlternativeLogins(String userId,
ITransaction transaction)
Returns the alternative logins of an user. |
Collection<String> |
getByChannelId(String channelId,
ITransaction transaction)
Return the local users IDs of the specified channel |
Collection<String> |
getByOrigin(String origin,
ITransaction transaction)
Return the user ids, searching by the user's origin. |
String |
getUserIdByLogin(String login,
ITransaction transaction)
Get the id of the user. |
void |
setPassword(String userId,
String password,
ITransaction transaction)
Sets a new password for the user |
void |
update(UserConfig userConfig,
ITransaction transaction)
Update the user. |
void |
updateLastLogin(String userId,
Date lastLogin)
Sets when the user last loged in |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserDaoJdbc()
Method Detail |
---|
public UserConfig get(String userId, ITransaction transaction) throws DaoException, PortalException
IUserDao
get
in interface IUserDao
DaoException
PortalException
public String getUserIdByLogin(String login, ITransaction transaction) throws DaoException, PortalException
IUserDao
getUserIdByLogin
in interface IUserDao
DaoException
PortalException
public void add(UserConfig userConfig, ITransaction transaction) throws DaoException, PortalException
IUserDao
add
in interface IUserDao
DaoException
PortalException
public void update(UserConfig userConfig, ITransaction transaction) throws DaoException, PortalException
IUserDao
update
in interface IUserDao
DaoException
PortalException
public void setPassword(String userId, String password, ITransaction transaction) throws DaoException, PortalException
IUserDao
setPassword
in interface IUserDao
DaoException
PortalException
public void updateLastLogin(String userId, Date lastLogin) throws DaoException, PortalException
IUserDao
updateLastLogin
in interface IUserDao
DaoException
PortalException
public void delete(String userId, ITransaction transaction) throws DaoException, PortalException
IUserDao
delete
in interface IUserDao
DaoException
PortalException
public Collection<String> getByChannelId(String channelId, ITransaction transaction) throws DaoException, PortalException
IUserDao
getByChannelId
in interface IUserDao
DaoException
PortalException
public void addAlternativeLogin(String userId, String newLogin, ITransaction transaction) throws PortalException
IUserDao
addAlternativeLogin
in interface IUserDao
userId
- the user id.newLogin
- the alternative login to be added.transaction
- the transaction for persistence access.
PortalException
public Collection<String> getAlternativeLogins(String userId, ITransaction transaction) throws PortalException
IUserDao
getAlternativeLogins
in interface IUserDao
userId
- the user id.transaction
- the transaction for persistence access.
PortalException
public void deleteAlternativeLogin(String loginToDelete, ITransaction transaction) throws PortalException
IUserDao
deleteAlternativeLogin
in interface IUserDao
loginToDelete
- the alternative login to be deleted.transaction
- the transaction for persistence access.
PortalException
public Collection<String> getByOrigin(String origin, ITransaction transaction) throws DaoException, PortalException
IUserDao
getByOrigin
in interface IUserDao
origin
- the origin.transaction
- the transaction for persistence access.
DaoException
PortalException
public Collection<String> getAllUserIds(ITransaction transaction) throws PortalException
IUserDao
getAllUserIds
in interface IUserDao
transaction
- the transaction for persistence access.
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |