ru.foodtechlab.lib.auth.service.domain.role.usecases.DeleteAccessFromRolesUseCase Maven / Gradle / Ivy
package ru.foodtechlab.lib.auth.service.domain.role.usecases;
import com.rcore.domain.commons.usecase.UseCase;
import com.rcore.domain.commons.usecase.model.VoidOutputValues;
import lombok.RequiredArgsConstructor;
import lombok.Value;
import ru.foodtechlab.lib.auth.service.domain.role.port.RoleRepository;
@RequiredArgsConstructor
public class DeleteAccessFromRolesUseCase extends UseCase {
private final RoleRepository roleRepository;
@Override
public VoidOutputValues execute(InputValues inputValues) {
roleRepository.deleteRoleAccessFromRole(inputValues.getAccessId());
return new VoidOutputValues();
}
@Value(staticConstructor = "of")
public static class InputValues implements UseCase.InputValues {
String accessId;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy