|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.portal.user.UserManager
public class UserManager
Class responsible for managing operations on the portal users.
Constructor Summary | |
---|---|
UserManager()
|
Method Summary | |
---|---|
String |
add(SessionConfig sessionConfig,
UserConfig userConfig,
ITransaction transaction)
Adds a user to the portal and returns the identifier of the user added. |
void |
addAlternativeLogin(SessionConfig sessionConfig,
String userId,
String newLogin,
ITransaction transaction)
Adds an alternative login for an user. |
void |
addOrUpdate(SessionConfig sessionConfig,
UserConfig userConfig,
ITransaction transaction)
|
void |
delete(SessionConfig sessionConfig,
String userId,
ITransaction transaction)
Delete an user. |
void |
deleteAlternativeLogin(SessionConfig sessionConfig,
String loginToDelete,
ITransaction transaction)
Deletes an alternative login. |
void |
deleteConfig(DeserializationContext deserializationContext,
String configId)
|
UserConfig |
get(SessionConfig sessionConfig,
String userId,
ITransaction transaction)
Get user configuration from userId. |
Collection<String> |
getAlternativeLogins(SessionConfig sessionConfig,
String userId,
ITransaction transaction)
Returns the alternative logins for an user. |
Collection<UserConfig> |
getByChannelId(SessionConfig sessionConfig,
String channelId,
ITransaction transaction)
Returns the local users of the specified channel |
Collection<UserConfig> |
getByOrigin(SessionConfig sessionConfig,
String origin,
ITransaction transaction)
Return the users, searching by the user's origin. |
String |
getUserId(SessionConfig sessionConfig,
String userLogin,
ITransaction transaction)
Deprecated. |
String |
getUserIdByLogin(SessionConfig sessionConfig,
String userLogin,
ITransaction transaction)
Get the id for a user with the given login. |
void |
setPassword(SessionConfig sessionConfig,
String userId,
String password,
ITransaction transaction)
Set a new password for the user |
void |
update(SessionConfig sessionConfig,
UserConfig userConfig,
ITransaction transaction)
Update the user configuration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserManager()
Method Detail |
---|
public void addOrUpdate(SessionConfig sessionConfig, UserConfig userConfig, ITransaction transaction) throws ManagerException, PortalException
addOrUpdate
in interface IUserManager
ManagerException
PortalException
public String add(SessionConfig sessionConfig, UserConfig userConfig, ITransaction transaction) throws ManagerException, PortalException
IUserManager
add
in interface IUserManager
ManagerException
PortalException
public void update(SessionConfig sessionConfig, UserConfig userConfig, ITransaction transaction) throws ManagerException, PortalException
IUserManager
update
in interface IUserManager
ManagerException
PortalException
public void setPassword(SessionConfig sessionConfig, String userId, String password, ITransaction transaction) throws ManagerException, PortalException
IUserManager
setPassword
in interface IUserManager
ManagerException
PortalException
public UserConfig get(SessionConfig sessionConfig, String userId, ITransaction transaction) throws ManagerException, PortalException
IUserManager
get
in interface IUserManager
ManagerException
PortalException
@Deprecated public String getUserId(SessionConfig sessionConfig, String userLogin, ITransaction transaction) throws ManagerException, PortalException
IUserManager
getUserId
in interface IUserManager
ManagerException
PortalException
public String getUserIdByLogin(SessionConfig sessionConfig, String userLogin, ITransaction transaction) throws ManagerException, PortalException
IUserManager
getUserIdByLogin
in interface IUserManager
sessionConfig
- the current user session information.userLogin
- the login.transaction
- the transaction for persistence access.
ManagerException
PortalException
public void delete(SessionConfig sessionConfig, String userId, ITransaction transaction) throws ManagerException, PortalException
IUserManager
delete
in interface IUserManager
ManagerException
PortalException
public Collection<UserConfig> getByChannelId(SessionConfig sessionConfig, String channelId, ITransaction transaction) throws ManagerException, PortalException
IUserManager
getByChannelId
in interface IUserManager
ManagerException
PortalException
public Collection<UserConfig> getByOrigin(SessionConfig sessionConfig, String origin, ITransaction transaction) throws ManagerException, PortalException
IUserManager
getByOrigin
in interface IUserManager
sessionConfig
- the user session information.origin
- the origin.transaction
- the transaction for persistence access.
DaoException
PortalException
ManagerException
public void deleteConfig(DeserializationContext deserializationContext, String configId) throws PortalException
deleteConfig
in interface IConfigDeleter
PortalException
public void addAlternativeLogin(SessionConfig sessionConfig, String userId, String newLogin, ITransaction transaction) throws PortalException
IUserManager
addAlternativeLogin
in interface IUserManager
sessionConfig
- the user session information.userId
- the user id.newLogin
- the new alternative login.transaction
- the transaction for persistence access.
PortalException
public Collection<String> getAlternativeLogins(SessionConfig sessionConfig, String userId, ITransaction transaction) throws PortalException
IUserManager
getAlternativeLogins
in interface IUserManager
sessionConfig
- the user session information.userId
- the user id.transaction
- the transaction for persistence access.
PortalException
public void deleteAlternativeLogin(SessionConfig sessionConfig, String loginToDelete, ITransaction transaction) throws PortalException
IUserManager
deleteAlternativeLogin
in interface IUserManager
sessionConfig
- the user session information.loginToDelete
- the login to be deleted.transaction
- the transaction for persistence access.
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |