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

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

There is a newer version: 4.4.1
Show newest version
package io.rocketbase.commons.service;

import io.rocketbase.commons.dto.appinvite.QueryAppInvite;
import io.rocketbase.commons.model.AppInviteEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.Optional;

public interface AppInvitePersistenceService {

    Page findAll(QueryAppInvite query, Pageable pageable);

    S save(S entity);

    Optional findById(String id);

    long count();

    void delete(S entity);

    void deleteAll();

    S initNewInstance();

    long deleteExpired();
}