@Transactional @Service(value="usersService") public class UsersBusinessService extends de.alpharogroup.db.service.jpa.AbstractBusinessService<de.alpharogroup.user.management.entities.Users,Integer,de.alpharogroup.user.management.daos.UsersDao> implements UsersService
| Constructor and Description |
|---|
UsersBusinessService() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
existsUserWithUsername(String username)
Checks if a user exists with the given user name.
|
List<de.alpharogroup.address.book.entities.Addresses> |
findAddressesFromUser(de.alpharogroup.user.management.entities.Users user)
Find all
Addresses from the given Users. |
de.alpharogroup.address.book.entities.Addresses |
findAddressFromUser(de.alpharogroup.user.management.entities.Users user)
Find the main
Addresses from the given Users. |
List<de.alpharogroup.user.management.entities.Roles> |
findRolesFromUser(de.alpharogroup.user.management.entities.Users user)
Find roles from the given
Users. |
List<de.alpharogroup.user.management.entities.Users> |
findUsers(Integer from,
de.alpharogroup.user.management.enums.GenderType searchGender,
Integer until)
Find users from the given
GenderType object and the range from till until. |
List<de.alpharogroup.user.management.entities.Users> |
findUsers(Integer from,
de.alpharogroup.user.management.enums.GenderType searchGender,
Integer until,
String geohash)
Find users from the given
GenderType object and the range from till until and the
given geohash code. |
de.alpharogroup.user.management.entities.Users |
findUserWithEmail(String email)
Find the
Users object with the given email. |
de.alpharogroup.user.management.entities.Users |
findUserWithUsername(String username)
Find
Users object from the given user name. |
void |
setUsersDao(de.alpharogroup.user.management.daos.UsersDao usersDao) |
boolean |
userIsInRole(de.alpharogroup.user.management.entities.Users user,
de.alpharogroup.user.management.entities.Roles role)
Checks if the given
Users object is in the given Roles
object. |
delete, delete, delete, evict, exists, findAll, get, getDao, getQuery, load, merge, merge, refresh, save, save, saveOrUpdate, saveOrUpdate, setDao@Autowired public void setUsersDao(de.alpharogroup.user.management.daos.UsersDao usersDao)
public boolean existsUserWithUsername(String username)
existsUserWithUsername in interface UsersServiceusername - the user namepublic List<de.alpharogroup.address.book.entities.Addresses> findAddressesFromUser(de.alpharogroup.user.management.entities.Users user)
Addresses from the given Users.findAddressesFromUser in interface UsersServiceuser - the userAddresses from the given Users.public de.alpharogroup.address.book.entities.Addresses findAddressFromUser(de.alpharogroup.user.management.entities.Users user)
Addresses from the given Users.findAddressFromUser in interface UsersServiceuser - the userAddresses from the given Users.public List<de.alpharogroup.user.management.entities.Roles> findRolesFromUser(de.alpharogroup.user.management.entities.Users user)
Users.findRolesFromUser in interface UsersServiceuser - the userRoles from the given Users.@Transactional public de.alpharogroup.user.management.entities.Users findUserWithEmail(String email)
Users object with the given email.findUserWithEmail in interface UsersServiceemail - the emailUsers objectpublic de.alpharogroup.user.management.entities.Users findUserWithUsername(String username)
Users object from the given user name.findUserWithUsername in interface UsersServiceusername - the user nameUsers objectpublic boolean userIsInRole(de.alpharogroup.user.management.entities.Users user,
de.alpharogroup.user.management.entities.Roles role)
Users object is in the given Roles
object.userIsInRole in interface UsersServiceuser - the userrole - the rolepublic List<de.alpharogroup.user.management.entities.Users> findUsers(Integer from, de.alpharogroup.user.management.enums.GenderType searchGender, Integer until)
UsersServiceGenderType object and the range from till until.findUsers in interface UsersServicefrom - the fromsearchGender - the search genderuntil - the untilUsers objects that matches the criteria.public List<de.alpharogroup.user.management.entities.Users> findUsers(Integer from, de.alpharogroup.user.management.enums.GenderType searchGender, Integer until, String geohash)
UsersServiceGenderType object and the range from till until and the
given geohash code.findUsers in interface UsersServicefrom - the fromsearchGender - the search genderuntil - the untilgeohash - the geohashUsers objects that matches the criteria.Copyright © 2015–2016 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.