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

io.rocketbase.commons.api.AppUserApi Maven / Gradle / Ivy

The newest version!
package io.rocketbase.commons.api;

import io.rocketbase.commons.dto.PageableResult;
import io.rocketbase.commons.dto.appinvite.AppInviteRead;
import io.rocketbase.commons.dto.appinvite.InviteRequest;
import io.rocketbase.commons.dto.appuser.*;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;

import java.util.Optional;

public interface AppUserApi {

    @Deprecated
    default PageableResult find(int page, int pagesize) {
        return find(PageRequest.of(page, pagesize));
    }

    default PageableResult find(Pageable pageable) {
        return find(null, pageable);
    }

    PageableResult find(QueryAppUser query, Pageable pageable);

    Optional findOne(String usernameOrId);

    AppUserRead create(AppUserCreate create);

    AppUserRead resetPassword(String usernameOrId, AppUserResetPassword reset);

    AppUserRead patch(String usernameOrId, AppUserUpdate update);

    void delete(String id);

    AppInviteRead invite(InviteRequest inviteRequest);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy