public class UserProfileManagementImpl extends UserProfileManagementBase
UserProfileManagement
Constructor and Description |
---|
UserProfileManagementImpl() |
addMessagingConnectorConfig, anonymizeUserProfile, findUserProfileByUserId, findUserProfileDetailListItemByUserId, findUserProfileVOByUserId, getContactDao, getMessagerConnectorConfigDao, getMessagerConnectorConfigs, getNotificationConfigDao, getPrincipal, getUserDao, getUserImageDao, getUserProfileDao, hasCustomUserImage, loadImage, removeUserImage, setContactDao, setMessagerConnectorConfigDao, setNotificationConfigDao, setUserDao, setUserImageDao, setUserProfileDao, updateImage, updateNotificationConfig, updateUserProfile
@Transactional(readOnly=true) public UserProfileDetails getUserProfileDetailsById(Long userId)
userId
- the ID of the user@Transactional(readOnly=true) public UserProfileDetails getUserProfileDetailsById(Long userId, boolean needExternalAuthentications)
userId
- the ID of the userneedExternalAuthentications
- Set to true, if the external authentications are needed for the user.protected void handleAddMessagingConnectorConfig(Long notificationConfigId, MessagerConnectorConfig config)
UserProfileManagementBase.addMessagingConnectorConfig(Long, MessagerConnectorConfig)
handleAddMessagingConnectorConfig
in class UserProfileManagementBase
protected void handleAnonymizeUserProfile(Long profileId)
UserProfileManagementBase.anonymizeUserProfile(Long)
handleAnonymizeUserProfile
in class UserProfileManagementBase
protected UserProfile handleFindUserProfileByUserId(Long userId)
UserProfileManagementBase.findUserProfileByUserId(Long)
handleFindUserProfileByUserId
in class UserProfileManagementBase
protected UserProfileDetailListItem handleFindUserProfileDetailListItemByUserId(Long userId)
UserProfileManagementBase.findUserProfileDetailListItemByUserId(Long)
handleFindUserProfileDetailListItemByUserId
in class UserProfileManagementBase
userId
- the ID of the userprotected UserProfileVO handleFindUserProfileVOByUserId(Long userId)
UserProfileManagementBase.findUserProfileVOByUserId(Long)
handleFindUserProfileVOByUserId
in class UserProfileManagementBase
protected List<MessagerConnectorConfigTO> handleGetMessagerConnectorConfigs()
UserProfileManagementBase.getMessagerConnectorConfigs()
handleGetMessagerConnectorConfigs
in class UserProfileManagementBase
@Transactional(readOnly=true) protected boolean handleHasCustomUserImage(Long userId)
handleHasCustomUserImage
in class UserProfileManagementBase
protected ImageVO handleLoadImage(Long userId)
#loadImage(Long, com.communote.server.persistence.user.ImageSizeType)
handleLoadImage
in class UserProfileManagementBase
userId
- The users id.protected boolean handleRemoveUserImage(Long userId) throws AuthorizationException, UserNotFoundException
UserProfileManagementBase
handleRemoveUserImage
in class UserProfileManagementBase
userId
- The ID of the user whose image should be removedAuthorizationException
- in case the current user is not the user whose image should be removed or client
manager or internal system userUserNotFoundException
- in case the user with ID userId does not existprotected void handleUpdateImage(Long userId, byte[] userImage) throws UserNotFoundException, AuthorizationException
UserProfileManagementBase
handleUpdateImage
in class UserProfileManagementBase
userId
- The users id.UserNotFoundException
- in case the user with ID userId does not existAuthorizationException
- 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 userprotected void handleUpdateNotificationConfig(Map<MessagerConnectorType,MessagerConnectorConfigTO> connectorConfigs)
UserProfileManagementBase.updateNotificationConfig(Map)
handleUpdateNotificationConfig
in class UserProfileManagementBase
connectorConfigs
- the new configuration dataprotected void handleUpdateUserProfile(Long userId, UserProfileVO userProfile)
UserProfileManagementBase.updateUserProfile(Long, com.communote.server.persistence.user.UserProfileVO)
handleUpdateUserProfile
in class UserProfileManagementBase
Copyright © 2019 Communote team. All rights reserved.