Merge "Fix build errors in autorelease full clean build"
[vfc/nfvo/wfengine.git] / winery / org.eclipse.winery.common / src / main / java / org / eclipse / winery / common / interfaces / IWineryRepositoryCommon.java
1 /*******************************************************************************
2  * Copyright (c) 2013 University of Stuttgart.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * and the Apache License 2.0 which both accompany this distribution,
6  * and are available at http://www.eclipse.org/legal/epl-v10.html
7  * and http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Contributors:
10  *     Oliver Kopp - initial API and implementation
11  *******************************************************************************/
12 package org.eclipse.winery.common.interfaces;
13
14 import java.io.IOException;
15
16 import org.eclipse.winery.common.ids.GenericId;
17
18 /**
19  * Enables access to the winery repository via Ids defined in package
20  * {@link org.eclipse.winery.common.ids}
21  * 
22  * Methods are moved from
23  * {@link org.eclipse.winery.repository.backend.IGenericRepository} to here as
24  * soon there is an implementation for them. The ultimate goal is to eliminate
25  * IGenericRepository
26  * 
27  * These methods are shared between {@link IWineryRepository} and
28  * {@link org.eclipse.winery.repository.backend.IRepository}
29  */
30 public interface IWineryRepositoryCommon {
31         
32         /**
33          * Deletes the TOSCA element <b>and all sub elements</b> referenced by the
34          * given id from the repository
35          * 
36          * We assume that each id is a directory
37          * 
38          * @param id
39          */
40         public void forceDelete(GenericId id) throws IOException;
41         
42 }