public interface UserProfileManagement
Modifier and Type | Method and Description |
---|---|
void |
addMessagingConnectorConfig(Long notificationConfigId,
MessagerConnectorConfig config) |
void |
anonymizeUserProfile(Long profileId)
Makes a user profile anonymous.
|
UserProfile |
findUserProfileByUserId(Long userId)
Finds the user profile to a user.
|
UserProfileDetailListItem |
findUserProfileDetailListItemByUserId(Long userId) |
UserProfileVO |
findUserProfileVOByUserId(Long userId) |
List<MessagerConnectorConfigTO> |
getMessagerConnectorConfigs()
Returns the messager connector configurations of the current user.
|
UserProfileDetails |
getUserProfileDetailsById(Long id)
Deprecated.
Use
getUserProfileDetailsById(Long, boolean) instead. |
UserProfileDetails |
getUserProfileDetailsById(Long id,
boolean needsExternalAuthentications) |
boolean |
hasCustomUserImage(Long userId)
Return whether a user uploaded a custom image.
|
ImageVO |
loadImage(Long userId)
Get the user image
|
boolean |
removeUserImage(Long userId)
Remove the image of a user.
|
void |
updateImage(Long userId,
byte[] largeUserImage)
Update the image of a user.
|
void |
updateNotificationConfig(Map<MessagerConnectorType,MessagerConnectorConfigTO> connectorConfigs)
Updates the notification configuration of the current user by adding new, removing or
updating existing messager connector configurations.
|
void |
updateUserProfile(Long userId,
UserProfileVO userProfile)
Updates the user profile in the database.
|
void addMessagingConnectorConfig(Long notificationConfigId, MessagerConnectorConfig config)
notificationConfigId
- Id of the notification config.config
- The configuration.void anonymizeUserProfile(Long profileId)
Makes a user profile anonymous.
profileId
- Id of the profile.UserProfile findUserProfileByUserId(Long userId)
Finds the user profile to a user.
userId
- The users id.UserProfileDetailListItem findUserProfileDetailListItemByUserId(Long userId)
userId
- The users id.UserProfileVO findUserProfileVOByUserId(Long userId)
userId
- The users id.@Deprecated UserProfileDetails getUserProfileDetailsById(Long id)
getUserProfileDetailsById(Long, boolean)
instead.id
- the ID of the userUserProfileDetails getUserProfileDetailsById(Long id, boolean needsExternalAuthentications)
id
- the ID of the userneedsExternalAuthentications
- Set to true, if the external authentications are needed for the user.List<MessagerConnectorConfigTO> getMessagerConnectorConfigs()
boolean hasCustomUserImage(Long userId)
userId
- the ID of the userImageVO loadImage(Long userId)
userId
- The users id.boolean removeUserImage(Long userId) throws AuthorizationException, UserNotFoundException
userId
- The ID of the user whose image should be removedAuthorizationException
- in case the current user is not the user whose image should be updated or the
current user is not client manager or internal system userUserNotFoundException
- in case the user with ID userId does not existvoid updateImage(Long userId, byte[] largeUserImage) throws AuthorizationException, UserNotFoundException
userId
- The users id.largeUserImage
- The user image as byte array.AuthorizationException
- in case the current user is not the user whose image should be updated or the
current user is not client manager or internal system userUserNotFoundException
- in case the user with ID userId does not existvoid updateNotificationConfig(Map<MessagerConnectorType,MessagerConnectorConfigTO> connectorConfigs)
connectorConfigs
- a definition with the new connector configurations. Configurations for connector
types that are not yet part of the notification configuration of the current user
will be added. Configurations with connector types that are part of the current
notification configuration but that are not listed in the mapping will be removed.
All the the other configurations will be updated if necessary.void updateUserProfile(Long userId, UserProfileVO userProfile)
userId
- The users id.userProfile
- The profile.Copyright © 2019 Communote team. All rights reserved.