public class ProjectSubInterfaceImpl extends AbstractSubEmfstoreInterface
| Constructor and Description |
|---|
ProjectSubInterfaceImpl(AbstractEmfstoreInterface parentInterface)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ProjectInfo |
createProject(String name,
String description,
LogMessage logMessage)
Creates a empty project.
|
ProjectInfo |
createProject(String name,
String description,
LogMessage logMessage,
Project project)
Creates a new project.
|
void |
deleteProject(ProjectId projectId,
boolean deleteFiles)
Deletes the project with the given ID.
|
ProjectHistory |
exportProjectHistoryFromServer(ProjectId projectId)
Returns the history for the project with the given ID.
|
Project |
getProject(ProjectId projectId,
VersionSpec versionSpec)
Get the project state for a specific version.
|
List<ProjectInfo> |
getProjectList(SessionId sessionId)
Returns all projects.
|
ProjectId |
importProjectHistoryToServer(ProjectHistory projectHistory)
Import the given project history to the server.
|
execute, getResourceHelperpublic ProjectSubInterfaceImpl(AbstractEmfstoreInterface parentInterface) throws FatalESException
parentInterface - parent interfaceFatalESException - in case of failurepublic Project getProject(ProjectId projectId, VersionSpec versionSpec) throws InvalidVersionSpecException, ESException
projectId - the ProjectId of the project to be fetchedversionSpec - the requested versionInvalidVersionSpecException - if the given version is invalidESException - in case of failurepublic List<ProjectInfo> getProjectList(SessionId sessionId) throws ESException
sessionId - the ID of a session that is checked whether read access is grantedESException - in case of failurepublic ProjectInfo createProject(String name, String description, LogMessage logMessage) throws ESException
name - the name of the projectdescription - the description of the projectlogMessage - a log messageProjectInfo instance holding information about the created projectESException - in case of failurepublic ProjectInfo createProject(String name, String description, LogMessage logMessage, Project project) throws ESException
name - the name of the projectdescription - the description of the projectlogMessage - a log messageproject - the actual projectProjectInfo instance holding information about the created projectESException - in case of failurepublic void deleteProject(ProjectId projectId, boolean deleteFiles) throws ESException
projectId - project iddeleteFiles - whether to delete files in file systemESException - in case of failurepublic ProjectId importProjectHistoryToServer(ProjectHistory projectHistory) throws ESException
projectHistory - the history to be importedESException - in case of failurepublic ProjectHistory exportProjectHistoryFromServer(ProjectId projectId) throws ESException
projectId - the ID of a projectESException - in case of failureCopyright © 2017. All rights reserved.