Package models.entities

Examples of models.entities.UserRole


                Logger.debug("Failed to get contact " + contactId + " from UserDto.");
            }
        }
        if (user.getRole() == null || !user.getRole().equals(role)) {
            try {
                UserRole role = DaoManager.getUserRoleDao().findByName(this.role);
                if (role != null) {
                    user.setRole(role);
                }
            } catch (DataAccessException e) {
                Logger.debug("Failed to get role from UserDto.");
View Full Code Here


    @Transactional
    @Restrict({@Group("manager"), @Group("admin"), @Group("supervisor"), @Group("executor"), @Group("delivery-manager")})
    public static Result getByRole(String roleName) {
        try {
            UserRole role = DaoManager.getUserRoleDao().findByName(roleName);
            if (role == null) {
                return notFound("Can't find role " + roleName);
            }
            List<User> users = DaoManager.getUserDao().findByRole(role);
            UsersListDto usersDto = UsersListDto.createFrom(users, 1);
View Full Code Here

TOP

Related Classes of models.entities.UserRole

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.