io.rocketbase.commons.service.AppUserPersistenceService Maven / Gradle / Ivy
package io.rocketbase.commons.service;
import io.rocketbase.commons.dto.appuser.QueryAppUser;
import io.rocketbase.commons.model.AppUserEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import java.util.Optional;
public interface AppUserPersistenceService {
Optional findByUsername(String username);
Optional findByEmail(String email);
Page findAll(QueryAppUser query, Pageable pageable);
S save(S entity);
Optional findById(String id);
long count();
void delete(S entity);
void deleteAll();
S initNewInstance();
}