package eu.dnetlib.contract.mocks;

import java.util.List;

import org.apache.log4j.Logger;

import eu.dnetlib.enabling.is.registry.ISRegistryDocumentNotFoundException;
import eu.dnetlib.enabling.is.registry.rmi.ISRegistryException;
import eu.dnetlib.enabling.is.registry.rmi.ISRegistryService;

public class ISRegistryMock implements ISRegistryService {

	protected final Logger log = Logger.getLogger(this.getClass()); 
	
	@Override
	public void addBlackBoardMessage(String arg0, String arg1, String arg2)
			throws ISRegistryException {
		// TODO Auto-generated method stub

	}

	@Override
	public boolean addOrUpdateResourceType(String arg0, String arg1)
			throws ISRegistryException {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean addProfileNode(String arg0, String arg1, String arg2)
			throws ISRegistryException {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean addResourceType(String arg0, String arg1)
			throws ISRegistryException {
		// TODO returns always true
		return true;
	}

	@Override
	public void deleteBlackBoardMessage(String arg0, String arg1)
			throws ISRegistryException {
		// TODO Auto-generated method stub

	}

	@Override
	public boolean deleteProfile(String arg0) throws ISRegistryException,
			ISRegistryDocumentNotFoundException {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean deleteProfiles(List<String> arg0) throws ISRegistryException {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean deleteResourceType(String arg0, Boolean arg1)
			throws ISRegistryException {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean executeXUpdate(String arg0) throws ISRegistryException {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public String insertProfileForValidation(String arg0, String arg1)
			throws ISRegistryException {
		// TODO Auto-generated method stub
		return "someResourceIdForValidation";
	}

	@Override
	public String invalidateProfile(String arg0) throws ISRegistryException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public boolean refreshProfile(String arg0, String arg1)
			throws ISRegistryException {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public String registerProfile(String arg0) throws ISRegistryException {
		log.info("registering profile: " + arg0);
		return "id_" + System.currentTimeMillis();
	}

	@Override
	public String registerSecureProfile(String arg0, String arg1)
			throws ISRegistryException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public boolean removeProfileNode(String arg0, String arg1)
			throws ISRegistryException {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public void replyBlackBoardMessage(String arg0, String arg1)
			throws ISRegistryException {
		log.info("got reply bb message params: " + arg0 + " and: " + arg1);
	}

	@Override
	public boolean updateProfile(String arg0, String arg1, String arg2)
			throws ISRegistryException {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public String updateProfileDHN(String arg0) throws ISRegistryException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public boolean updateProfileNode(String arg0, String arg1, String arg2)
			throws ISRegistryException {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean updateRegionDescription(String arg0, String arg1)
			throws ISRegistryException {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public String validateProfile(String arg0) throws ISRegistryException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<String> validateProfiles(List<String> arg0)
			throws ISRegistryException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String identify() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void notify(String arg0, String arg1, String arg2, String arg3) {
		// TODO Auto-generated method stub

	}

	@Override
	public void start() {
		// TODO Auto-generated method stub

	}

}
