e5025b111b1b0ddc5e5e4db5da0b948e3a36c0c5
[vfc/nfvo/wfengine.git] /
1 /*******************************************************************************
2  * Copyright (c) 2012-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.repository.resources.entitytemplates;
13
14 import javax.ws.rs.DELETE;
15 import javax.ws.rs.Path;
16 import javax.ws.rs.core.Response;
17
18 import org.eclipse.winery.model.tosca.TEntityTemplate;
19 import org.eclipse.winery.repository.resources.AbstractComponentInstanceResource;
20 import org.eclipse.winery.repository.resources.IHasTypeReference;
21
22 /**
23  * Interface ensuring that no methods are forgotten when implementing an
24  * {@link AbstractComponentInstanceResource}, which is also a template
25  */
26 public interface IEntityTemplateResource<E extends TEntityTemplate> extends IHasTypeReference {
27         
28         @Path("properties/")
29         public PropertiesResource getPropertiesResource();
30         
31         @DELETE
32         public Response onDelete();
33         
34 }