com.flyfish.oauth.common.sync.AbstractSyncRequestAcceptor Maven / Gradle / Ivy
package com.flyfish.oauth.common.sync;
import com.flyfish.oauth.client.OAuth2SsoClientInitializer;
import com.flyfish.oauth.common.Function;
import com.flyfish.oauth.common.sync.support.CollectionComparator;
import com.flyfish.oauth.common.sync.support.SyncRequestEvent;
import com.flyfish.oauth.configuration.sync.SyncDomainService;
import com.flyfish.oauth.configuration.sync.SyncTransformer;
import com.flyfish.oauth.domain.raw.Domain;
import com.flyfish.oauth.utils.JacksonUtil;
import com.github.scribejava.core.utils.StreamUtils;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.*;
/**
* 抽象类,实现了基础的查找定位功能
*
* @author wangyu
*/
public abstract class AbstractSyncRequestAcceptor implements SyncRequestAcceptor {
private SyncRequestListener listener;
/**
* 比较并返回比较结果,根据不同实现策略进行不同的比较
*
* @param 泛型
* @param originList 原数据
* @param domainService 数据service
* @return 结果
*/
protected abstract CollectionComparator