Interface UserEntityManager
-
- All Superinterfaces:
EntityManager<PlatformUserEntity>
- All Known Implementing Classes:
UserEntityManagerImpl
public interface UserEntityManager extends EntityManager<PlatformUserEntity>
- Author:
- Joram Barrez, Filip Hrisafov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Boolean
checkPassword(String userId, String password, PasswordEncoder passwordEncoder, PasswordSalt passwordSalt)
PlatformUserQuery
createNewPlatformUserQuery()
PlatformUserEntity
createNewUser(String userId)
PlatformUserEntity
findByIdNoCache(String userId)
Only used for very specific use cases: doesn't go nor store the fetched user in the cache.List<String>
findUniqueTenantIds()
List<PlatformUser>
findUserByQueryCriteria(PlatformUserQuery query)
long
findUserCountByNativeQuery(Map<String,Object> parameterMap)
long
findUserCountByQueryCriteria(PlatformUserQuery query)
List<PlatformUser>
findUsersByNativeQuery(Map<String,Object> parameterMap)
List<PlatformUser>
findUsersByPrivilegeId(String privilegeId)
boolean
isNewUser(User user)
void
updateUser(User updatedUser)
-
-
-
Method Detail
-
createNewUser
PlatformUserEntity createNewUser(String userId)
-
updateUser
void updateUser(User updatedUser)
-
findUserByQueryCriteria
List<PlatformUser> findUserByQueryCriteria(PlatformUserQuery query)
-
findUserCountByQueryCriteria
long findUserCountByQueryCriteria(PlatformUserQuery query)
-
createNewPlatformUserQuery
PlatformUserQuery createNewPlatformUserQuery()
-
checkPassword
Boolean checkPassword(String userId, String password, PasswordEncoder passwordEncoder, PasswordSalt passwordSalt)
-
findUsersByNativeQuery
List<PlatformUser> findUsersByNativeQuery(Map<String,Object> parameterMap)
-
isNewUser
boolean isNewUser(User user)
-
findUsersByPrivilegeId
List<PlatformUser> findUsersByPrivilegeId(String privilegeId)
-
findByIdNoCache
PlatformUserEntity findByIdNoCache(String userId)
Only used for very specific use cases: doesn't go nor store the fetched user in the cache. Use only when you know what you're doing.
-
-