public class UsersRestResource extends de.alpharogroup.service.rs.AbstractRestfulResource<Integer,de.alpharogroup.user.domain.User,de.alpharogroup.user.management.service.api.UserService> implements UsersResource
| Constructor and Description |
|---|
UsersRestResource() |
| 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.domain.Address> |
findAddressesFromUser(de.alpharogroup.user.domain.User user)
Find all
Address from the given User. |
de.alpharogroup.address.book.domain.Address |
findAddressFromUser(de.alpharogroup.user.domain.User user)
Find the main
Address from the given User. |
List<de.alpharogroup.user.domain.User> |
findAll() |
List<de.alpharogroup.user.domain.Role> |
findRolesFromUser(de.alpharogroup.user.domain.User user)
Find roles from the given
User. |
List<de.alpharogroup.user.domain.User> |
findUsers(de.alpharogroup.collections.pairs.Triple<Integer,de.alpharogroup.user.management.enums.GenderType,Integer> searchCriteria)
Find users from the given
GenderType object and the range from till until. |
List<de.alpharogroup.user.domain.User> |
findUsers(de.alpharogroup.user.management.domain.model.UserSearchCriteria userSearchCriteria)
Find users from the given
GenderType object and the range from till until and the
given geohash code. |
de.alpharogroup.user.domain.User |
findUserWithEmail(String email)
Find the
User object with the given email. |
de.alpharogroup.user.domain.User |
findUserWithUsername(String username)
Find
User object from the given user name. |
boolean |
userIsInRole(de.alpharogroup.collections.pairs.KeyValuePair<de.alpharogroup.user.domain.User,de.alpharogroup.user.domain.Role> user)
Checks if the given
User object is in the given Role object. |
create, delete, getDomainService, read, setDomainService, updatepublic boolean existsUserWithUsername(String username)
UsersResourceexistsUserWithUsername in interface UsersResourceusername - the user namepublic List<de.alpharogroup.address.book.domain.Address> findAddressesFromUser(de.alpharogroup.user.domain.User user)
UsersResourceAddress from the given User.findAddressesFromUser in interface UsersResourceuser - the userAddress from the given User.public de.alpharogroup.address.book.domain.Address findAddressFromUser(de.alpharogroup.user.domain.User user)
UsersResourceAddress from the given User.findAddressFromUser in interface UsersResourceuser - the userAddress from the given User.public List<de.alpharogroup.user.domain.User> findAll()
findAll in interface UsersResourcepublic List<de.alpharogroup.user.domain.Role> findRolesFromUser(de.alpharogroup.user.domain.User user)
UsersResourceUser.findRolesFromUser in interface UsersResourceuser - the userRole from the given User.public List<de.alpharogroup.user.domain.User> findUsers(de.alpharogroup.collections.pairs.Triple<Integer,de.alpharogroup.user.management.enums.GenderType,Integer> searchCriteria)
UsersResourceGenderType object and the range from till until.findUsers in interface UsersResourcesearchCriteria - the KeyValuePair object that encapsulate the from age the gender and the
until age.User objects that matches the criteria.public List<de.alpharogroup.user.domain.User> findUsers(de.alpharogroup.user.management.domain.model.UserSearchCriteria userSearchCriteria)
UsersResourceGenderType object and the range from till until and the
given geohash code.findUsers in interface UsersResourceuserSearchCriteria - the UserSearchCriteria object that encapsulate the search criteria for
find usersUser objects that matches the criteria.public de.alpharogroup.user.domain.User findUserWithEmail(String email)
UsersResourceUser object with the given email.findUserWithEmail in interface UsersResourceemail - the emailUser objectpublic de.alpharogroup.user.domain.User findUserWithUsername(String username)
UsersResourceUser object from the given user name.findUserWithUsername in interface UsersResourceusername - the user nameUser objectpublic boolean userIsInRole(de.alpharogroup.collections.pairs.KeyValuePair<de.alpharogroup.user.domain.User,de.alpharogroup.user.domain.Role> user)
UsersResourceUser object is in the given Role object.userIsInRole in interface UsersResourceuser - the KeyValuePair object that encapsulate the user and the roleCopyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.