blob: 0ed973009deb8365bcd269a9a0e627fadbc28b0c [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004, 2009 Tasktop Technologies and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* https://www.eclipse.org/legal/epl-2.0
*
* SPDX-License-Identifier: EPL-2.0
*
* Tasktop Technologies - initial API and implementation
*******************************************************************************/
package org.eclipse.mylyn.context.core;
import java.io.File;
import org.eclipse.core.runtime.CoreException;
/**
* File-based store used for writing Mylyn-specific date such as the task list and task contexts (e.g.
* workspace/.metadata/.mylyn folder).
*
* @author Mik Kersten
* @author Steffen Pingel
* @since 3.0
* @noimplement This interface is not intended to be implemented by clients.
* @noextend This interface is not intended to be extended by clients.
*/
public interface IContextStore {
/**
* @since 3.0
*/
public abstract boolean hasContext(String handleIdentifier);
/**
* @param zipFile
* A zip file that contains a context with the specified handle identifier in its root.
* @return null if the import failed
* @throws CoreException
* @since 3.0
*/
public abstract IInteractionContext importContext(String handleIdentifier, File zipFile) throws CoreException;
/**
* Creates a new context if a source context was not found.
*
* @since 3.0
*/
public abstract IInteractionContext cloneContext(String sourceHandleIdentifier, String destinationHandleIdentifier);
}