@Path(value="/user/") @Produces(value="application/json") @Consumes(value="application/json") public interface UsersResource extends de.alpharogroup.service.rs.RestfulResource<Integer,de.alpharogroup.user.domain.User>
UsersResource provides methods for resolve users.| 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. |
@GET @Path(value="/exists/user/with/username/{username}") boolean existsUserWithUsername(@PathParam(value="username") String username)
username - the user name@POST @Path(value="/find/addresses") List<de.alpharogroup.address.book.domain.Address> findAddressesFromUser(de.alpharogroup.user.domain.User user)
Address from the given User.user - the userAddress from the given User.@POST @Path(value="/find/address") de.alpharogroup.address.book.domain.Address findAddressFromUser(de.alpharogroup.user.domain.User user)
Address from the given User.user - the userAddress from the given User.@POST @Path(value="/find/roles") List<de.alpharogroup.user.domain.Role> findRolesFromUser(de.alpharogroup.user.domain.User user)
User.user - the userRole from the given User.@POST @Path(value="/find/users") List<de.alpharogroup.user.domain.User> findUsers(de.alpharogroup.collections.pairs.Triple<Integer,de.alpharogroup.user.management.enums.GenderType,Integer> searchCriteria)
GenderType object and the range from till until.searchCriteria - the KeyValuePair object that encapsulate the from age the gender and the
until age.User objects that matches the criteria.@POST @Path(value="/find/users/by/geo") List<de.alpharogroup.user.domain.User> findUsers(de.alpharogroup.user.management.domain.model.UserSearchCriteria userSearchCriteria)
GenderType object and the range from till until and the
given geohash code.userSearchCriteria - the UserSearchCriteria object that encapsulate the search criteria for
find usersUser objects that matches the criteria.@GET @Path(value="/find/by/email/{email}") de.alpharogroup.user.domain.User findUserWithEmail(@PathParam(value="email") String email)
User object with the given email.email - the emailUser object@GET @Path(value="/find/by/username/{username}") de.alpharogroup.user.domain.User findUserWithUsername(String username)
User object from the given user name.username - the user nameUser object@POST @Path(value="/user/is/in/role") boolean userIsInRole(de.alpharogroup.collections.pairs.KeyValuePair<de.alpharogroup.user.domain.User,de.alpharogroup.user.domain.Role> user)
User object is in the given Role object.user - the KeyValuePair object that encapsulate the user and the roleCopyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.