@StableMinor(version="12.2", sinceVersion="4.0") public interface IUserManager extends IConfigDeleter
Modifier and Type | Method and Description |
---|---|
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.
|
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.
Since 4.0.10, replaced by
getUserIdByLogin(SessionConfig, String, ITransaction) . |
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.
|
deleteConfig
String add(SessionConfig sessionConfig, UserConfig userConfig, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- userConfig
- transaction
- ManagerException
PortalException
UserConfig get(SessionConfig sessionConfig, String userId, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- userId
- transaction
- ManagerException
PortalException
@Deprecated String getUserId(SessionConfig sessionConfig, String userLogin, ITransaction transaction) throws ManagerException, PortalException
getUserIdByLogin(SessionConfig, String, ITransaction)
.sessionConfig
- userLogin
- transaction
- ManagerException
PortalException
String getUserIdByLogin(SessionConfig sessionConfig, String userLogin, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- the current user session information.userLogin
- the login.transaction
- the transaction for persistence access.ManagerException
PortalException
void delete(SessionConfig sessionConfig, String userId, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- userId
- transaction
- ManagerException
PortalException
void update(SessionConfig sessionConfig, UserConfig userConfig, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- userConfig
- transaction
- ManagerException
PortalException
void setPassword(SessionConfig sessionConfig, String userId, String password, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- userId
- password
- transaction
- ManagerException
PortalException
Collection<UserConfig> getByChannelId(SessionConfig sessionConfig, String channelId, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- channelId
- transaction
- ManagerException
PortalException
void addOrUpdate(SessionConfig sessionConfig, UserConfig userConfig, ITransaction transaction) throws ManagerException, PortalException
ManagerException
PortalException
void addAlternativeLogin(SessionConfig sessionConfig, String userId, String newLogin, ITransaction transaction) throws PortalException
sessionConfig
- the user session information.userId
- the user id.newLogin
- the new alternative login.transaction
- the transaction for persistence access.PortalException
Collection<String> getAlternativeLogins(SessionConfig sessionConfig, String userId, ITransaction transaction) throws PortalException
sessionConfig
- the user session information.userId
- the user id.transaction
- the transaction for persistence access.PortalException
void deleteAlternativeLogin(SessionConfig sessionConfig, String loginToDelete, ITransaction transaction) throws PortalException
sessionConfig
- the user session information.loginToDelete
- the login to be deleted.transaction
- the transaction for persistence access.PortalException
Collection<UserConfig> getByOrigin(SessionConfig sessionConfig, String origin, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- the user session information.origin
- the origin.transaction
- the transaction for persistence access.DaoException
PortalException
ManagerException
LumisXP 12.2.0.200122 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.