forked from eclipse/vorto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
IProjectRepositoryService.java
28 lines (17 loc) · 1.43 KB
/
IProjectRepositoryService.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package org.eclipse.vorto.server.devtool.service;
import java.util.ArrayList;
import org.eclipse.vorto.server.devtool.exception.ProjectAlreadyExistsException;
import org.eclipse.vorto.server.devtool.exception.ProjectNotFoundException;
import org.eclipse.vorto.server.devtool.exception.ProjectResourceAlreadyExistsException;
import org.eclipse.vorto.server.devtool.models.Project;
import org.eclipse.vorto.server.devtool.models.ProjectResource;
public interface IProjectRepositoryService {
void checkProjectExists(String sessionId, String projectName) throws ProjectAlreadyExistsException;
void checkResourceExists(String sessionId, String projectName, ProjectResource projectResource) throws ProjectAlreadyExistsException, ProjectResourceAlreadyExistsException, ProjectNotFoundException;
Project createProject(String sessionId, String projectName) throws ProjectAlreadyExistsException;
Project openProject(String sessionId, String projectName) throws ProjectNotFoundException;
ArrayList<Project> getProjects(String sessionId);
ArrayList<ProjectResource> getProjectResources(String sessionId, String projectName) throws ProjectNotFoundException;
void createResource(String sessionId, String projectName, ProjectResource projectResource) throws ProjectNotFoundException, ProjectResourceAlreadyExistsException;
void deleteResource(String sessionId, String projectName, ProjectResource projectResource) throws ProjectNotFoundException;
}