All checks were successful
CI - Build & Test (develop) / build-and-test (pull_request) Successful in 32s
35 lines
1.1 KiB
Java
Executable File
35 lines
1.1 KiB
Java
Executable File
package io.gmss.fiscad.interfaces.user;
|
|
|
|
import io.gmss.fiscad.entities.user.Profile;
|
|
import io.gmss.fiscad.enums.UserProfile;
|
|
import io.gmss.fiscad.exceptions.BadRequestException;
|
|
import io.gmss.fiscad.exceptions.NotFoundException;
|
|
import io.gmss.fiscad.paylaods.request.crudweb.ProfilePaylaodWeb;
|
|
import org.springframework.data.domain.Page;
|
|
import org.springframework.data.domain.Pageable;
|
|
|
|
import java.util.List;
|
|
import java.util.Optional;
|
|
|
|
public interface ProfileService {
|
|
|
|
Profile createProfile(ProfilePaylaodWeb profilePaylaodWeb) throws BadRequestException;
|
|
|
|
Profile updateProfile(Long id, ProfilePaylaodWeb profilePaylaodWeb) throws NotFoundException;
|
|
|
|
void deleteProfile(Long id) throws NotFoundException;
|
|
|
|
Page<Profile> getProfileList(Pageable pageable);
|
|
|
|
List<Profile> getProfileList();
|
|
|
|
Optional<Profile> getProfileById(Long id);
|
|
|
|
Optional<Profile> getProfileByProfileName(UserProfile userProfile);
|
|
|
|
boolean profileExistByProfileName(UserProfile userProfile);
|
|
|
|
Profile retrieveProfileByProfileName(UserProfile userProfile);
|
|
|
|
}
|