mirror of
https://git.imnavajas.es/jjimenez/erp-imprimelibros.git
synced 2026-01-13 08:58:48 +00:00
20 lines
659 B
Java
20 lines
659 B
Java
package com.imprimelibros.erp.users;
|
|
|
|
import org.springframework.security.core.userdetails.UserDetailsService;
|
|
import org.springframework.data.domain.Page;
|
|
import org.springframework.data.domain.Pageable;
|
|
|
|
public interface UserService extends UserDetailsService {
|
|
|
|
/**
|
|
* Busca usuarios por rol y texto libre (en username, email o fullName),
|
|
* con paginación.
|
|
*
|
|
* @param role nombre del rol (ej. "ROL_USER")
|
|
* @param query texto de búsqueda (puede ser null o vacío)
|
|
* @param pageable paginación
|
|
* @return página de usuarios
|
|
*/
|
|
Page<User> findByRoleAndSearch(String role, String query, Pageable pageable);
|
|
}
|