All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.rocketbase.commons.service.AppUserPersistenceService Maven / Gradle / Ivy

There is a newer version: 4.4.1
Show newest version
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();
}