public class UserDaoImpl extends UserDaoBase
User| Modifier and Type | Field and Description |
|---|---|
static String |
AND
AND
|
TRANSFORM_KENMEIUSERVO, TRANSFORM_NONE| Constructor and Description |
|---|
UserDaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
Object |
create(int transform,
User kenmeiUser)
Does the same thing as
UserDao.create(User) with an additional flag called
transform. |
long |
getActiveUserCount() |
long |
getActiveUserCount(String systemId,
UserRole role)
Get the number of users with status ACTIVE.
|
protected void |
handleCreateMailNotificationConfig(Long notificationConfigId)
Performs the core logic for
UserDaoBase.createMailNotificationConfig(Long) |
protected User |
handleFindByAlias(String alias)
Performs the core logic for
UserDaoBase.findByAlias(String) |
protected User |
handleFindByEmail(String email)
Performs the core logic for
UserDaoBase.findByEmail(String) |
protected List<User> |
handleFindByExternalSystemId(String systemId)
Performs the core logic for
UserDaoBase.findByExternalSystemId(String) |
protected User |
handleFindByExternalUserId(String userId,
String systemId)
Performs the core logic for
UserDaoBase.findByExternalUserId(String, String) |
protected List<User> |
handleFindByRole(UserRole userRole,
UserStatus status)
Performs the core logic for
UserDaoBase.findByRole(com.communote.server.model.user.UserRole, com.communote.server.model.user.UserStatus) |
protected List<User> |
handleFindLatestBySystemId(String externalSystemId,
Long userId,
int maxCount)
Performs the core logic for
UserDaoBase.findLatestBySystemId(String, Long, int) |
protected List<User> |
handleFindNotConfirmedUser(Date before,
boolean reminderMailSent)
Performs the core logic for
UserDaoBase.findNotConfirmedUser(java.util.Date, boolean) |
protected Collection<User> |
handleFindNotDeletedUser(boolean excludeSystemUsers)
Performs the core logic for
UserDaoBase.findNotDeletedUser(boolean) |
protected List<User> |
handleFindNotLoggedInActiveUser(Date before,
boolean reminderMailSent,
boolean includeTermsNotAccepted)
Performs the core logic for
UserDaoBase.findNotLoggedInActiveUser(java.util.Date, boolean, boolean) |
protected List<Long> |
handleGetFollowedBlogs(Long userId,
long blogIdRangeStart,
long blogIdRangeEnd)
Performs the core logic for
UserDaoBase.getFollowedBlogs(Long, long, long) |
protected List<Long> |
handleGetFollowedDiscussions(Long userId,
long discussionIdRangeStart,
long discussionIdRangeEnd)
Performs the core logic for
UserDaoBase.getFollowedDiscussions(Long, long, long) |
protected List<Long> |
handleGetFollowedTags(Long userId,
Long idRangeStart,
Long idRangeEnd)
Performs the core logic for
UserDaoBase.getFollowedTags(Long, Long, Long) |
protected List<Long> |
handleGetFollowedUsers(Long userId,
long userIdRangeStart,
long userIdRangeEnd)
Performs the core logic for
UserDaoBase.getFollowedUsers(Long, long, long) |
protected void |
handleResetTermsAccepted(Long userIdToIgnore)
Performs the core logic for
#resetTermsAccepted() |
protected boolean |
handleUserFollowsItem(Long userId,
Long globalId)
Performs the core logic for
UserDaoBase.userFollowsItem(Long, Long) |
User |
userVOToEntity(UserVO kenmeiUserVO)
Creates a new (not persisted) entity and copies the fields of the VO to the corresponding
fields of the entity.
|
void |
userVOToEntity(UserVO source,
User target)
Copies the fields of the VO to the corresponding fields of the entity.
|
create, create, create, createMailNotificationConfig, evict, findByAlias, findByEmail, findByExternalSystemId, findByExternalUserId, findByRole, findLatestBySystemId, findNotConfirmedUser, findNotDeletedUser, findNotLoggedInActiveUser, getFollowedBlogs, getFollowedDiscussions, getFollowedTags, getFollowedUsers, getGlobalIdDao, getLanguageDao, getNotificationConfigDao, getUserAuthorityDao, getUserProfileDao, load, load, loadAll, loadAll, remove, remove, remove, resetTermsAccepted, setGlobalIdDao, setLanguageDao, setNotificationConfigDao, setUserAuthorityDao, setUserProfileDao, toKenmeiUserVO, toUserVO, toUserVO, toUserVOCollection, transformEntities, transformEntity, update, update, userFollowsItempublic static final String AND
public Object create(int transform, User kenmeiUser)
Does the same thing as UserDao.create(User) with an additional flag called
transform. If this flag is set to TRANSFORM_NONE then the returned
entity will NOT be transformed. If this flag is any of the other constants
defined here then the result WILL BE passed through an operation which can
optionally transform the entity (into a value object for example). By default, transformation
does not occur.
create in interface UserDaocreate in class UserDaoBasecom.communote.server.persistence.user.UserDao#create(int transform,
com.communote.server.persistence.user.KenmeiUser)public long getActiveUserCount()
public long getActiveUserCount(String systemId, UserRole role)
systemId - ID of an external system to only count the users which originate from this
external system. If null, all users are counted.role - the role of a user. If not null only the users with that role will be counted
otherwise all roles (including system users) are considered.protected void handleCreateMailNotificationConfig(Long notificationConfigId)
UserDaoBaseUserDaoBase.createMailNotificationConfig(Long)handleCreateMailNotificationConfig in class UserDaoBasenotificationConfigId - The notification to add mail notification to.protected User handleFindByAlias(String alias)
UserDaoBase.findByAlias(String)handleFindByAlias in class UserDaoBaseprotected User handleFindByEmail(String email)
UserDaoBase.findByEmail(String)handleFindByEmail in class UserDaoBaseprotected List<User> handleFindByExternalSystemId(String systemId)
UserDaoBase.findByExternalSystemId(String)handleFindByExternalSystemId in class UserDaoBaseprotected User handleFindByExternalUserId(String userId, String systemId)
UserDaoBase.findByExternalUserId(String, String)handleFindByExternalUserId in class UserDaoBasecom.communote.server.persistence.user.UserDaoBase#handleFindByExternalUserId(String)protected List<User> handleFindByRole(UserRole userRole, UserStatus status)
UserDaoBase.findByRole(com.communote.server.model.user.UserRole, com.communote.server.model.user.UserStatus)handleFindByRole in class UserDaoBaseprotected List<User> handleFindLatestBySystemId(String externalSystemId, Long userId, int maxCount)
UserDaoBase.findLatestBySystemId(String, Long, int)handleFindLatestBySystemId in class UserDaoBaseprotected List<User> handleFindNotConfirmedUser(Date before, boolean reminderMailSent)
UserDaoBase.findNotConfirmedUser(java.util.Date, boolean)handleFindNotConfirmedUser in class UserDaoBaseUserDaoBase.handleFindNotConfirmedUser(java.util.Date,
boolean)protected Collection<User> handleFindNotDeletedUser(boolean excludeSystemUsers)
UserDaoBase.findNotDeletedUser(boolean)handleFindNotDeletedUser in class UserDaoBaseprotected List<User> handleFindNotLoggedInActiveUser(Date before, boolean reminderMailSent, boolean includeTermsNotAccepted)
UserDaoBaseUserDaoBase.findNotLoggedInActiveUser(java.util.Date, boolean, boolean)handleFindNotLoggedInActiveUser in class UserDaoBaseprotected List<Long> handleGetFollowedBlogs(Long userId, long blogIdRangeStart, long blogIdRangeEnd)
UserDaoBase.getFollowedBlogs(Long, long, long)handleGetFollowedBlogs in class UserDaoBaseprotected List<Long> handleGetFollowedDiscussions(Long userId, long discussionIdRangeStart, long discussionIdRangeEnd)
UserDaoBase.getFollowedDiscussions(Long, long, long)handleGetFollowedDiscussions in class UserDaoBaseprotected List<Long> handleGetFollowedTags(Long userId, Long idRangeStart, Long idRangeEnd)
UserDaoBase.getFollowedTags(Long, Long, Long)handleGetFollowedTags in class UserDaoBaseprotected List<Long> handleGetFollowedUsers(Long userId, long userIdRangeStart, long userIdRangeEnd)
UserDaoBase.getFollowedUsers(Long, long, long)handleGetFollowedUsers in class UserDaoBaseprotected void handleResetTermsAccepted(Long userIdToIgnore)
UserDaoBase#resetTermsAccepted()handleResetTermsAccepted in class UserDaoBaseprotected boolean handleUserFollowsItem(Long userId, Long globalId)
UserDaoBase.userFollowsItem(Long, Long)handleUserFollowsItem in class UserDaoBasepublic User userVOToEntity(UserVO kenmeiUserVO)
Copyright © 2019 Communote team. All rights reserved.