@Repository @Transactional public class UserDao extends Object implements IGroupAdminDataProviderDao<User>
User| コンストラクタと説明 |
|---|
UserDao() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
checkEmail(String email,
User.Type type,
Long domainId,
Long id)
Checks if a mail is already taken by someone else
|
boolean |
checkLogin(String login,
User.Type type,
Long domainId,
Long id)
check for duplicates
|
long |
count()
Count the number of instances of
T |
long |
count(String search)
Count the number of instances of
T |
long |
count(String search,
boolean filterContacts,
Long currentUserId) |
long |
count(String search,
Long adminId)
Count the number of instances of
T |
long |
countUsers(String search,
Long currentUserId) |
void |
delete(User u,
Long userId)
Delete an instance of
T |
List<User> |
get(Collection<Long> ids) |
List<User> |
get(int first,
int count)
Get a list of instances of
T |
User |
get(long id) |
User |
get(Long id)
Get an instance of an
T |
List<User> |
get(String search,
boolean excludeContacts,
int first,
int count) |
List<User> |
get(String search,
boolean filterContacts,
Long currentUserId) |
List<User> |
get(String search,
int start,
int count,
String order)
Get a list of instances of
T |
List<User> |
get(String search,
int start,
int count,
String sort,
boolean filterContacts,
Long currentUserId) |
List<User> |
get(String search,
Long adminId,
int start,
int count,
String order)
Get a list of instances of
T |
List<User> |
getAllBackupUsers() |
List<User> |
getAllUsers() |
User |
getByActivationHash(String hash) |
User |
getByEmail(String email) |
User |
getByEmail(String email,
User.Type type,
Long domainId) |
List<User> |
getByExpiredHash(long ttl) |
User |
getByLogin(String login,
User.Type type,
Long domainId) |
User |
getContact(String email,
Long ownerId) |
User |
getContact(String email,
String firstName,
String lastName,
Long ownerId) |
User |
getContact(String email,
String firstName,
String lastName,
Long langId,
String tzId,
Long ownerId) |
User |
getContact(String email,
String firstName,
String lastName,
Long langId,
String tzId,
User owner) |
User |
getContact(String email,
User owner) |
static Set<User.Right> |
getDefaultRights() |
User |
getExternalUser(String extId,
String extType) |
User |
getNewUserInstance(User currentUser)
Get a new instance of the
User entity, with all default values
set |
Set<User.Right> |
getRights(Long id) |
User |
getUserByHash(String hash) |
User |
login(String userOrEmail,
String userpass)
login logic
|
User |
resetPassword(User u,
String password) |
Long |
searchCountUserProfile(Long userId,
String text,
String offers,
String search) |
List<User> |
searchUserProfile(Long userId,
String text,
String offers,
String search,
String orderBy,
int start,
int max,
boolean asc) |
Long |
selectMaxFromUsersWithSearch(String search) |
User |
update(User u,
Long userId)
Update an instance of
T |
User |
update(User user,
String password,
Long updatedBy) |
boolean |
validLogin(String login) |
boolean |
verifyPassword(Long userId,
String password)
Returns true if the password is correct
|
public static Set<User.Right> getDefaultRights()
public User getNewUserInstance(User currentUser)
User entity, with all default values
setcurrentUser - - the user to copy time zone frompublic List<User> get(int first, int count)
IDataProviderDaoTget インタフェース内 IDataProviderDao<User>first - - the start to range to retrievecount - - maximum instance count to retrievepublic List<User> get(String search, int start, int count, String sort, boolean filterContacts, Long currentUserId)
public List<User> get(String search, Long adminId, int start, int count, String order)
IGroupAdminDataProviderDaoTget インタフェース内 IGroupAdminDataProviderDao<User>search - - string search criteria to filter entitiesadminId - - id of group admin userstart - - the start to range to retrievecount - - maximum instance count to retrieveorder - - column and sort orderpublic long count()
IDataProviderDaoTcount インタフェース内 IDataProviderDao<User>public long count(String search)
IDataProviderDaoTcount インタフェース内 IDataProviderDao<User>search - - string search criteria to filter entitiespublic long count(String search, Long adminId)
IGroupAdminDataProviderDaoTcount インタフェース内 IGroupAdminDataProviderDao<User>search - - string search criteria to filter entitiesadminId - - id of group admin userpublic User update(User u, Long userId)
IDataProviderDaoTupdate インタフェース内 IDataProviderDao<User>u - - entity to be updateduserId - - user performed updatepublic User resetPassword(User u, String password) throws NoSuchAlgorithmException
public User update(User user, String password, Long updatedBy) throws NoSuchAlgorithmException
public User get(Long id)
IDataProviderDaoTget インタフェース内 IDataProviderDao<User>id - - id of instance to retrievepublic User get(long id)
get インタフェース内 IDataProviderDao<User>public void delete(User u, Long userId)
IDataProviderDaoTdelete インタフェース内 IDataProviderDao<User>u - - entity to be deleteduserId - - user performed deletepublic List<User> get(Collection<Long> ids)
public boolean checkLogin(String login, User.Type type, Long domainId, Long id)
login - type - domainId - id - public boolean checkEmail(String email, User.Type type, Long domainId, Long id)
email - type - domainId - id - public boolean validLogin(String login)
public Long selectMaxFromUsersWithSearch(String search)
search - public boolean verifyPassword(Long userId, String password)
userId - password - public User getContact(String email, String firstName, String lastName, Long langId, String tzId, Long ownerId)
public User getContact(String email, String firstName, String lastName, Long langId, String tzId, User owner)
public List<User> searchUserProfile(Long userId, String text, String offers, String search, String orderBy, int start, int max, boolean asc)
public Long searchCountUserProfile(Long userId, String text, String offers, String search)
public List<User> get(String search, int start, int count, String order)
IDataProviderDaoTget インタフェース内 IDataProviderDao<User>search - - string search criteria to filter entitiesstart - - the start to range to retrievecount - - maximum instance count to retrieveorder - - column and sort orderpublic Set<User.Right> getRights(Long id)
public User login(String userOrEmail, String userpass) throws org.apache.openmeetings.util.OmException
userOrEmail: - login or email of the user being testeduserpass: - password of the user being testedorg.apache.openmeetings.util.OmException - in case of any issueCopyright © 2012–2017 Apache Software Foundation. All rights reserved.