|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IUserDao
Interface for user DAO operations.
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 |
Method Detail |
---|
void add(UserConfig userConfig, ITransaction transaction) throws DaoException, PortalException
userConfig
- transaction
-
DaoException
PortalException
UserConfig get(String userId, ITransaction transaction) throws DaoException, PortalException
userId
- transaction
-
DaoException
PortalException
String getUserIdByLogin(String login, ITransaction transaction) throws DaoException, PortalException
login
- transaction
-
DaoException
PortalException
void update(UserConfig userConfig, ITransaction transaction) throws DaoException, PortalException
userConfig
- transaction
-
DaoException
PortalException
void setPassword(String userId, String password, ITransaction transaction) throws DaoException, PortalException
userId
- password
- transaction
-
DaoException
PortalException
void updateLastLogin(String userId, Date lastLogin) throws DaoException, PortalException
userId
-
DaoException
PortalException
void delete(String userId, ITransaction transaction) throws DaoException, PortalException
userId
- transaction
-
DaoException
PortalException
Collection<String> getByChannelId(String channelId, ITransaction transaction) throws DaoException, PortalException
channelId
- transaction
-
DaoException
PortalException
void addAlternativeLogin(String userId, String newLogin, ITransaction transaction) throws PortalException
userId
- the user id.newLogin
- the alternative login to be added.transaction
- the transaction for persistence access.
PortalException
Collection<String> getAlternativeLogins(String userId, ITransaction transaction) throws PortalException
userId
- the user id.transaction
- the transaction for persistence access.
PortalException
void deleteAlternativeLogin(String loginToDelete, ITransaction transaction) throws PortalException
loginToDelete
- the alternative login to be deleted.transaction
- the transaction for persistence access.
PortalException
Collection<String> getByOrigin(String origin, ITransaction transaction) throws DaoException, PortalException
origin
- the origin.transaction
- the transaction for persistence access.
DaoException
PortalException
Collection<String> getAllUserIds(ITransaction transaction) throws PortalException
transaction
- the transaction for persistence access.
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |