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

ru.foodtechlab.lib.auth.service.domain.role.usecases.DeleteAccessFromRolesUseCase Maven / Gradle / Ivy

There is a newer version: 4.1.0
Show newest version
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