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

net.n2oapp.auth.gateway.rdm.RdmRefChangeDataExportService Maven / Gradle / Ivy

The newest version!
package net.n2oapp.auth.gateway.rdm;

import net.n2oapp.security.admin.api.service.RefChangeDataExportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import ru.inovus.ms.rdm.sync.service.change_data.RdmChangeDataClient;

import java.io.Serializable;
import java.util.List;

public class RdmRefChangeDataExportService implements RefChangeDataExportService {

    @Autowired(required = false)
    private RdmChangeDataClient changeDataClient;

    @Value("${rdm.sync.ref-book-code.system}")
    private String systemRefBookCode;

    @Value("${rdm.sync.ref-book-code.application}")
    private String applicationRefBookCode;


    @Override
    public  void changeSystemData(List addUpdate, List delete) {
        if (changeDataClient != null)
            changeDataClient.changeData(systemRefBookCode, addUpdate, delete);
    }

    @Override
    public  void changeApplicationData(List addUpdate, List delete) {
        if (changeDataClient != null)
            changeDataClient.changeData(applicationRefBookCode, addUpdate, delete);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy