public class XmlRpcEmfStoreImpl extends Object implements EMFStore
CHANGEPACKAGE_URI, PROJECT_URI| Constructor and Description |
|---|
XmlRpcEmfStoreImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTag(SessionId sessionId,
ProjectId projectId,
PrimaryVersionSpec versionSpec,
TagVersionSpec tag)
Adds a tag to a version of the specified project.
|
ProjectInfo |
createEmptyProject(SessionId sessionId,
String name,
String description,
LogMessage logMessage)
Create a new project on the server.
|
ProjectInfo |
createProject(SessionId sessionId,
String name,
String description,
LogMessage logMessage,
Project project)
Create a new project on the server.
|
PrimaryVersionSpec |
createVersion(SessionId sessionId,
ProjectId projectId,
PrimaryVersionSpec baseVersionSpec,
AbstractChangePackage changePackage,
BranchVersionSpec targetBranch,
PrimaryVersionSpec sourceVersion,
LogMessage logMessage)
Create a new version on the server of the given project.
|
void |
deleteProject(SessionId sessionId,
ProjectId projectId,
boolean deleteFiles)
Deletes a project on the server.
|
ChangePackageEnvelope |
downloadChangePackageFragment(SessionId sessionId,
ProjectId projectId,
String proxyId,
int fragmentIndex)
Retrieves a change package fragment.
|
FileChunk |
downloadFileChunk(SessionId sessionId,
ProjectId projectId,
FileTransferInformation fileInformation)
Downloads a file chunk from the server.
|
ProjectHistory |
exportProjectHistoryFromServer(SessionId sessionId,
ProjectId projectId)
Exports a given project history from the server.
|
List<BranchInfo> |
getBranches(SessionId sessionId,
ProjectId projectId)
Lista all branches of the given project.
|
List<AbstractChangePackage> |
getChanges(SessionId sessionId,
ProjectId projectId,
VersionSpec source,
VersionSpec target)
Get changes from the server.
|
List<EMFStoreProperty> |
getEMFProperties(SessionId sessionId,
ProjectId projectId)
Get stored EMFStoreProperties from the server.
|
List<HistoryInfo> |
getHistoryInfo(SessionId sessionId,
ProjectId projectId,
HistoryQuery<?> historyQuery)
Get history information from the server.
|
Project |
getProject(SessionId sessionId,
ProjectId projectId,
VersionSpec versionSpec)
Gets a project in a certain revision from the server.
|
List<ProjectInfo> |
getProjectList(SessionId sessionId)
Get a list of projects the user of the session id can access.
|
String |
getVersion(SessionId sessionId)
Returns the version of the EMFStore server.
|
ProjectId |
importProjectHistoryToServer(SessionId sessionId,
ProjectHistory projectHistory)
Imports a project history to the server.
|
AuthenticationInformation |
logIn(String username,
String password,
ClientVersionInfo clientVersionInfo)
Log in the given credentials.
|
void |
logout(SessionId sessionId)
Logout the session with the given ID.
|
void |
registerEPackage(SessionId sessionId,
org.eclipse.emf.ecore.EPackage pkg)
Register a new EPackage.
|
void |
removeTag(SessionId sessionId,
ProjectId projectId,
PrimaryVersionSpec versionSpec,
TagVersionSpec tag)
Removes a tag to a version of the specified project.
|
ACUser |
resolveUser(SessionId sessionId,
ACOrgUnitId id)
Resolves a user by id and returns an ACUser with all roles on the server.
|
PrimaryVersionSpec |
resolveVersionSpec(SessionId sessionId,
ProjectId projectId,
VersionSpec versionSpec)
Resolve a version specified to a primary version specifier.
|
List<EMFStoreProperty> |
setEMFProperties(SessionId sessionId,
List<EMFStoreProperty> properties,
ProjectId projectId)
Store EMFProperties on the server.
|
void |
transmitProperty(SessionId sessionId,
OrgUnitProperty changedProperty,
ACUser tmpUser,
ProjectId projectId) |
String |
uploadChangePackageFragment(SessionId sessionId,
ProjectId projectId,
ChangePackageEnvelope envelope)
Submits a single
ChangePackageEnvelope containing a change package fragment that will be aggregated to a
complete ChangePackage once
all fragments are available. |
FileTransferInformation |
uploadFileChunk(SessionId sessionId,
ProjectId projectId,
FileChunk fileChunk)
Uploads a file chunk to the server.
|
public AuthenticationInformation logIn(String username, String password, ClientVersionInfo clientVersionInfo) throws AccessControlException
username - the name of the userpassword - the password of the user to be logged inclientVersionInfo - client version informationAuthenticationInformation instance holding information about the logged in sessionAccessControlException - in case login failspublic void logout(SessionId sessionId) throws AccessControlException
sessionId - the ID of the session to be logged outAccessControlException - in case logout failspublic void addTag(SessionId sessionId, ProjectId projectId, PrimaryVersionSpec versionSpec, TagVersionSpec tag) throws ESException
addTag in interface EMFStoresessionId - the session idprojectId - the project idversionSpec - the version versionSpectag - the tagESException - if any error in the EmfStore occurspublic ProjectInfo createEmptyProject(SessionId sessionId, String name, String description, LogMessage logMessage) throws ESException
createEmptyProject in interface EMFStoresessionId - the session id for authenticationname - the name of the serverdescription - the descriptionlogMessage - the logMessageProjectInfo for the new projectESException - if any error in the EmfStore occurspublic ProjectInfo createProject(SessionId sessionId, String name, String description, LogMessage logMessage, Project project) throws ESException
createProject in interface EMFStoresessionId - the session id for authenticationname - the name of the serverdescription - the descriptionlogMessage - the logMessageproject - the initial project stateProjectInfo for the new projectESException - if any error in the EmfStore occurspublic PrimaryVersionSpec createVersion(SessionId sessionId, ProjectId projectId, PrimaryVersionSpec baseVersionSpec, AbstractChangePackage changePackage, BranchVersionSpec targetBranch, PrimaryVersionSpec sourceVersion, LogMessage logMessage) throws ESException, InvalidVersionSpecException
createVersion in interface EMFStoresessionId - the session id for authenticationprojectId - the project idbaseVersionSpec - the version the project was last synched with the serverchangePackage - the changes performed on the project since last synchtargetBranch - this should be set if a new branch shout be created with this
commit. Otherwise set nullsourceVersion - if a branch was merged and the resulting merged changed are
committed this should be set to the incoming branch inorder to
set correct links in the version model. Can be null otherwiselogMessage - the log message for the new versionInvalidVersionSpecException - if the base version is not equal to the current head
revision.ESException - if any error in the EmfStore occurspublic void deleteProject(SessionId sessionId, ProjectId projectId, boolean deleteFiles) throws ESException
deleteProject in interface EMFStoresessionId - the session idprojectId - the project iddeleteFiles - if true, the project files will be deleted tooESException - in case of failurepublic FileChunk downloadFileChunk(SessionId sessionId, ProjectId projectId, FileTransferInformation fileInformation) throws ESException
downloadFileChunk in interface EMFStoresessionId - session idprojectId - project idfileInformation - file informationESException - if any error occurs in the EmfStorepublic ProjectHistory exportProjectHistoryFromServer(SessionId sessionId, ProjectId projectId) throws ESException
exportProjectHistoryFromServer in interface EMFStoresessionId - session idprojectId - project idESException - in case of failurepublic List<AbstractChangePackage> getChanges(SessionId sessionId, ProjectId projectId, VersionSpec source, VersionSpec target) throws ESException
getChanges in interface EMFStoresessionId - the session id for authenticationprojectId - the project idsource - the source version specifiertarget - the target version specifierESException - if any error in the EmfStore occurspublic List<BranchInfo> getBranches(SessionId sessionId, ProjectId projectId) throws ESException
getBranches in interface EMFStoresessionId - the session id for authenticationprojectId - the project idBranchInfoESException - in case of an errorpublic List<HistoryInfo> getHistoryInfo(SessionId sessionId, ProjectId projectId, HistoryQuery<?> historyQuery) throws ESException
HistoryQuery.getHistoryInfo in interface EMFStoresessionId - the session idprojectId - the project idhistoryQuery - the historyQueryESException - if any error in the EmfStore occurspublic Project getProject(SessionId sessionId, ProjectId projectId, VersionSpec versionSpec) throws ESException
getProject in interface EMFStoresessionId - the session id for authenticationprojectId - the project id of the project to getversionSpec - the version to getESException - if any error in the EmfStore occursServerConfiguration.PROJECTSTATE_VERSION_PERSISTENCEpublic List<ProjectInfo> getProjectList(SessionId sessionId) throws ESException
getProjectList in interface EMFStoresessionId - the session id for authenticationESException - if any error in the EmfStore occurspublic ProjectId importProjectHistoryToServer(SessionId sessionId, ProjectHistory projectHistory) throws ESException
importProjectHistoryToServer in interface EMFStoresessionId - sessionidprojectHistory - project historyESException - in case of failurepublic void removeTag(SessionId sessionId, ProjectId projectId, PrimaryVersionSpec versionSpec, TagVersionSpec tag) throws ESException
removeTag in interface EMFStoresessionId - the session idprojectId - the project idversionSpec - the version versionSpectag - the tag to be removedESException - if any error in the EmfStore occurspublic ACUser resolveUser(SessionId sessionId, ACOrgUnitId id) throws ESException
resolveUser in interface EMFStoresessionId - session idid - user id, can be null, then requesting user gets resolvedESException - if any error in the EmfStore occurspublic PrimaryVersionSpec resolveVersionSpec(SessionId sessionId, ProjectId projectId, VersionSpec versionSpec) throws ESException
resolveVersionSpec in interface EMFStoresessionId - the session id for authenticationprojectId - the project idversionSpec - the version specifier to resolveESException - if any error in the EmfStore occurspublic void transmitProperty(SessionId sessionId, OrgUnitProperty changedProperty, ACUser tmpUser, ProjectId projectId) throws ESException
transmitProperty in interface EMFStoresessionId - session idchangedProperty - the property that has been changed client-sidetmpUser - the respective userprojectId - the project idESException - if any error occurs in the EmfStorepublic FileTransferInformation uploadFileChunk(SessionId sessionId, ProjectId projectId, FileChunk fileChunk) throws ESException
uploadFileChunk in interface EMFStoresessionId - session idprojectId - project idfileChunk - file chunkESException - if any error occurs in the EmfStorepublic List<EMFStoreProperty> setEMFProperties(SessionId sessionId, List<EMFStoreProperty> properties, ProjectId projectId) throws ESException
setEMFProperties in interface EMFStoresessionId - sessionIdproperties - list properties which shall be shared on the server.projectId - the project idESException - if any error occurs in the EmfStorepublic List<EMFStoreProperty> getEMFProperties(SessionId sessionId, ProjectId projectId) throws ESException
getEMFProperties in interface EMFStoresessionId - sessionIdprojectId - the projct idESException - if any error occurs in the EmfStorepublic void registerEPackage(SessionId sessionId, org.eclipse.emf.ecore.EPackage pkg) throws ESException
registerEPackage in interface EMFStoresessionId - session idpkg - the EPackage to be registeredESException - if any error occurs in the EmfStoreEMFStore.registerEPackage(org.eclipse.emf.emfstore.internal.server.model.SessionId,
org.eclipse.emf.ecore.EPackage)public String getVersion(SessionId sessionId) throws ESException
getVersion in interface EMFStoresessionId - a session IDESException - in case of an errorEMFStore.getVersion(SessionId)public String uploadChangePackageFragment(SessionId sessionId, ProjectId projectId, ChangePackageEnvelope envelope) throws ESException
ChangePackageEnvelope containing a change package fragment that will be aggregated to a
complete ChangePackage once
all fragments are available.uploadChangePackageFragment in interface EMFStoresessionId - the SessionId for authenticationprojectId - the ProjectIdenvelope - aChangePackageEnvelope containing the change package fragmentChangePackageEnvelopesESException - in case the fragment could not be createdEMFStore.uploadChangePackageFragment(org.eclipse.emf.emfstore.internal.server.model.SessionId,
org.eclipse.emf.emfstore.internal.server.model.ProjectId,
org.eclipse.emf.emfstore.internal.server.model.versioning.ChangePackageEnvelope)public ChangePackageEnvelope downloadChangePackageFragment(SessionId sessionId, ProjectId projectId, String proxyId, int fragmentIndex) throws ESException
downloadChangePackageFragment in interface EMFStoresessionId - the SessionId for authentication purposesprojectId - the ProjectId for access control purposesproxyId - the ID of the change package proxy that is used to identify available fragmentsfragmentIndex - the index of fragmentChangePackageEnvelope containing the requested change package fragmentESException - in case the fragment could not be fetchedEMFStore.downloadChangePackageFragment(org.eclipse.emf.emfstore.internal.server.model.SessionId,
org.eclipse.emf.emfstore.internal.server.model.ProjectId, java.lang.String, int)Copyright © 2017. All rights reserved.