package eu.dnetlib.data.mdstore;

import java.util.List;

/**
 * Obtains mdstores.
 *
 * @author marko
 *
 */
public interface MDStoreDao {
	/**
	 * get a particular mdstore.
	 *
	 * @param mdId mdstore identifier
	 * @return mdstore
	 */
	MDStore getMDStore(String mdId);

	/**
	 * list the IDs of the registered mdstores.
	 *
	 * @return mdstore ID list
	 */
	List<String> listMDStores();

	/**
	 * Create a new mdstore with the given ID.
	 * @param mdId mdstore identifier
	 * @return false if the mdstore cannot be created by this dao
	 */
	boolean createMDStore(String mdId);
}
