/**
 * Copyright 2008-2009 DRIVER PROJECT (ICM UW)
 * Original author: Marek Horst
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package eu.dnetlib.data.ismock.contract;
import java.util.List;

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




/**
 * Very simple mock IS-PR class, for performing junit index tests.
 * @author mhorst
 *
 */
public class MockISRegistry implements ISRegistryService {

	MockDataContainer dataContainer;

	public boolean addOrUpdateResourceType(String resourceType,
			String resourceSchema) {
		// TODO Auto-generated method stub
		return false;
	}

	public boolean addProfileNode(String profId, String nodeId, String node,
			String resourceType) {
		// TODO Auto-generated method stub
		return false;
	}

	public boolean addResourceType(String resourceType, String resourceSchema)
			{
		// TODO Auto-generated method stub
		return false;
	}

	public boolean deleteBlackboardMessage(String profId, String messageId)
			{
		// TODO Auto-generated method stub
		return false;
	}

	public boolean deleteProfile(String profId) {
		return dataContainer.deleteProfile(profId);
	}

	public boolean executeXUpdate(String XQuery) {
		// TODO Auto-generated method stub
		return false;
	}

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

	public String insertProfileForValidation(String resourceType,
			String resourceProfile) {
		// TODO Auto-generated method stub
		return null;
	}

	public String invalidateProfile(String profId) {
		// TODO Auto-generated method stub
		return null;
	}

	public boolean isAnOpenDLib2Service() {
		// TODO Auto-generated method stub
		return false;
	}

	public void notify(String subscrId, String topic, String isId,
			String message) {
		// TODO Auto-generated method stub
	}

	public boolean postConfig(int delay) {
		// TODO Auto-generated method stub
		return false;
	}

	public boolean refreshProfile(String profId, String resourceType)
			{
		// TODO Auto-generated method stub
		return false;
	}

	public String registerProfile(String resourceProfile)
			{
		return dataContainer.registerProfile(resourceProfile);
	}

	public String registerProfileByFile(String resourceProfile)
			{
		// TODO Auto-generated method stub
		return null;
	}

	public String registerSecureProfile(String resourceProfID,
			String secureProfID) {
		// TODO Auto-generated method stub
		return null;
	}

	public boolean removeProfileNode(String profId, String nodeId,
			String resourceType) {
		return false;
	}

	public boolean replyBlackboardMessage(String profId, String message)
			{
		// TODO Auto-generated method stub
		return false;
	}

	public boolean sendBlackboardMessage(String profId, String message)
			{
		// TODO Auto-generated method stub
		return false;
	}

	public boolean updateProfile(String profId, String resourceProfile,
			String resourceType) {
		dataContainer.updateProfile(profId, resourceProfile, resourceType);
		return true;
	}

	public String updateProfileDHN(String resourceProfile)
			{
		// TODO Auto-generated method stub
		return null;
	}

	public boolean updateProfileNode(String profId, String nodeId, String node,
			String resourceType) {
		// TODO Auto-generated method stub
		return false;
	}

	public boolean updateRegionDescription(String profId, String resourceProfile)
			{
		// TODO Auto-generated method stub
		return false;
	}

	public String validateProfile(String profId) {
		// TODO Auto-generated method stub
		return null;
	}

	public MockDataContainer getDataContainer() {
		return dataContainer;
	}

	public void setDataContainer(MockDataContainer dataContainer) {
		this.dataContainer = dataContainer;
	}

	/* (non-Javadoc)
	 * @see eu.dnetlib.enabling.is.registry.rmi.ISRegistryService#addBlackBoardMessage(java.lang.String, java.lang.String, java.lang.String)
	 */
//	@Override
	public void addBlackBoardMessage(String profId, String messageId,
			String message) throws ISRegistryException {
		// TODO Auto-generated method stub

	}

	/* (non-Javadoc)
	 * @see eu.dnetlib.enabling.is.registry.rmi.ISRegistryService#addProfileNode(java.lang.String, java.lang.String, java.lang.String)
	 */
//	@Override
	public boolean addProfileNode(String profId, String xpath, String node)
			throws ISRegistryException {
		// TODO Auto-generated method stub
		return false;
	}

	/* (non-Javadoc)
	 * @see eu.dnetlib.enabling.is.registry.rmi.ISRegistryService#deleteBlackBoardMessage(java.lang.String, java.lang.String)
	 */
//	@Override
	public void deleteBlackBoardMessage(String profId, String messageId)
			throws ISRegistryException {
		// TODO Auto-generated method stub

	}

	/* (non-Javadoc)
	 * @see eu.dnetlib.enabling.is.registry.rmi.ISRegistryService#deleteProfiles(java.util.List)
	 */
//	@Override
	public boolean deleteProfiles(List<String> arrayprofId)
			throws ISRegistryException {
		// TODO Auto-generated method stub
		return false;
	}

	/* (non-Javadoc)
	 * @see eu.dnetlib.enabling.is.registry.rmi.ISRegistryService#deleteResourceType(java.lang.String, java.lang.Boolean)
	 */
//	@Override
	public boolean deleteResourceType(String resourceType, Boolean hierarchical)
			throws ISRegistryException {
		// TODO Auto-generated method stub
		return false;
	}

	/* (non-Javadoc)
	 * @see eu.dnetlib.enabling.is.registry.rmi.ISRegistryService#removeProfileNode(java.lang.String, java.lang.String)
	 */
//	@Override
	public boolean removeProfileNode(String profId, String nodeId)
			throws ISRegistryException {
		// TODO Auto-generated method stub
		return false;
	}

	/* (non-Javadoc)
	 * @see eu.dnetlib.enabling.is.registry.rmi.ISRegistryService#replyBlackBoardMessage(java.lang.String, java.lang.String)
	 */
//	@Override
	public void replyBlackBoardMessage(String profId, String message)
			throws ISRegistryException {
		// TODO Auto-generated method stub

	}

	/* (non-Javadoc)
	 * @see eu.dnetlib.enabling.is.registry.rmi.ISRegistryService#updateProfileNode(java.lang.String, java.lang.String, java.lang.String)
	 */
//	@Override
	public boolean updateProfileNode(String profId, String xpath, String node)
			throws ISRegistryException {
		// TODO Auto-generated method stub
		return false;
	}

	/* (non-Javadoc)
	 * @see eu.dnetlib.enabling.is.registry.rmi.ISRegistryService#validateProfiles(java.util.List)
	 */
//	@Override
	public List<String> validateProfiles(List<String> profIds)
			throws ISRegistryException {
		// TODO Auto-generated method stub
		return null;
	}

	/* (non-Javadoc)
	 * @see eu.dnetlib.common.rmi.BaseService#start()
	 */
//	@Override
	public void start() {
		// TODO Auto-generated method stub

	}

}
