|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.emfstore.internal.server.connection.xmlrpc.XmlRpcEmfStoreImpl
public class XmlRpcEmfStoreImpl
XML RPC connection interface for emfstore.
Field Summary |
---|
Fields inherited from interface org.eclipse.emf.emfstore.internal.server.EMFStore |
---|
CHANGEPACKAGE_URI, PROJECT_URI |
Constructor Summary | |
---|---|
XmlRpcEmfStoreImpl()
|
Method Summary | |
---|---|
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,
ChangePackage 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. |
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<ChangePackage> |
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)
|
FileTransferInformation |
uploadFileChunk(SessionId sessionId,
ProjectId projectId,
FileChunk fileChunk)
Uploads a file chunk to the server. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlRpcEmfStoreImpl()
Method Detail |
---|
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 information
AuthenticationInformation
instance holding information about the logged in session
AccessControlException
- in case login failspublic void logout(SessionId sessionId) throws AccessControlException
sessionId
- the ID of the session to be logged out
AccessControlException
- in case logout failspublic void addTag(SessionId sessionId, ProjectId projectId, PrimaryVersionSpec versionSpec, TagVersionSpec tag) throws ESException
addTag
in interface EMFStore
sessionId
- the session idprojectId
- the project idversionSpec
- the version versionSpectag
- the tag
ESException
- if any error in the EmfStore occurspublic ProjectInfo createEmptyProject(SessionId sessionId, String name, String description, LogMessage logMessage) throws ESException
createEmptyProject
in interface EMFStore
sessionId
- the session id for authenticationname
- the name of the serverdescription
- the descriptionlogMessage
- the logMessage
ProjectInfo
for the new project
ESException
- if any error in the EmfStore occurspublic ProjectInfo createProject(SessionId sessionId, String name, String description, LogMessage logMessage, Project project) throws ESException
createProject
in interface EMFStore
sessionId
- the session id for authenticationname
- the name of the serverdescription
- the descriptionlogMessage
- the logMessageproject
- the initial project state
ProjectInfo
for the new project
ESException
- if any error in the EmfStore occurspublic PrimaryVersionSpec createVersion(SessionId sessionId, ProjectId projectId, PrimaryVersionSpec baseVersionSpec, ChangePackage changePackage, BranchVersionSpec targetBranch, PrimaryVersionSpec sourceVersion, LogMessage logMessage) throws ESException, InvalidVersionSpecException
createVersion
in interface EMFStore
sessionId
- 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 version
InvalidVersionSpecException
- 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 EMFStore
sessionId
- the session idprojectId
- the project iddeleteFiles
- if true, the project files will be deleted too
ESException
- in case of failurepublic FileChunk downloadFileChunk(SessionId sessionId, ProjectId projectId, FileTransferInformation fileInformation) throws ESException
downloadFileChunk
in interface EMFStore
sessionId
- session idprojectId
- project idfileInformation
- file information
ESException
- if any error occurs in the EmfStorepublic ProjectHistory exportProjectHistoryFromServer(SessionId sessionId, ProjectId projectId) throws ESException
exportProjectHistoryFromServer
in interface EMFStore
sessionId
- session idprojectId
- project id
ESException
- in case of failurepublic List<ChangePackage> getChanges(SessionId sessionId, ProjectId projectId, VersionSpec source, VersionSpec target) throws ESException
getChanges
in interface EMFStore
sessionId
- the session id for authenticationprojectId
- the project idsource
- the source version specifiertarget
- the target version specifier
ESException
- if any error in the EmfStore occurspublic List<BranchInfo> getBranches(SessionId sessionId, ProjectId projectId) throws ESException
getBranches
in interface EMFStore
sessionId
- the session id for authenticationprojectId
- the project id
BranchInfo
ESException
- in case of an errorpublic List<HistoryInfo> getHistoryInfo(SessionId sessionId, ProjectId projectId, HistoryQuery<?> historyQuery) throws ESException
HistoryQuery
.
getHistoryInfo
in interface EMFStore
sessionId
- the session idprojectId
- the project idhistoryQuery
- the historyQuery
ESException
- if any error in the EmfStore occurspublic Project getProject(SessionId sessionId, ProjectId projectId, VersionSpec versionSpec) throws ESException
getProject
in interface EMFStore
sessionId
- the session id for authenticationprojectId
- the project id of the project to getversionSpec
- the version to get
ESException
- if any error in the EmfStore occursServerConfiguration.PROJECTSTATE_VERSION_PERSISTENCE
public List<ProjectInfo> getProjectList(SessionId sessionId) throws ESException
getProjectList
in interface EMFStore
sessionId
- the session id for authentication
ESException
- if any error in the EmfStore occurspublic ProjectId importProjectHistoryToServer(SessionId sessionId, ProjectHistory projectHistory) throws ESException
importProjectHistoryToServer
in interface EMFStore
sessionId
- sessionidprojectHistory
- project history
ESException
- in case of failurepublic void removeTag(SessionId sessionId, ProjectId projectId, PrimaryVersionSpec versionSpec, TagVersionSpec tag) throws ESException
removeTag
in interface EMFStore
sessionId
- the session idprojectId
- the project idversionSpec
- the version versionSpectag
- the tag to be removed
ESException
- if any error in the EmfStore occurspublic ACUser resolveUser(SessionId sessionId, ACOrgUnitId id) throws ESException
resolveUser
in interface EMFStore
sessionId
- session idid
- user id, can be null, then requesting user gets resolved
ESException
- if any error in the EmfStore occurspublic PrimaryVersionSpec resolveVersionSpec(SessionId sessionId, ProjectId projectId, VersionSpec versionSpec) throws ESException
resolveVersionSpec
in interface EMFStore
sessionId
- the session id for authenticationprojectId
- the project idversionSpec
- the version specifier to resolve
ESException
- if any error in the EmfStore occurspublic void transmitProperty(SessionId sessionId, OrgUnitProperty changedProperty, ACUser tmpUser, ProjectId projectId) throws ESException
transmitProperty
in interface EMFStore
sessionId
- session idchangedProperty
- the property that has been changed client-sidetmpUser
- the respective userprojectId
- the project id
ESException
- if any error occurs in the EmfStorepublic FileTransferInformation uploadFileChunk(SessionId sessionId, ProjectId projectId, FileChunk fileChunk) throws ESException
uploadFileChunk
in interface EMFStore
sessionId
- session idprojectId
- project idfileChunk
- file chunk
ESException
- if any error occurs in the EmfStorepublic List<EMFStoreProperty> setEMFProperties(SessionId sessionId, List<EMFStoreProperty> properties, ProjectId projectId) throws ESException
setEMFProperties
in interface EMFStore
sessionId
- sessionIdproperties
- list properties which shall be shared on the server.projectId
- the project id
ESException
- if any error occurs in the EmfStorepublic List<EMFStoreProperty> getEMFProperties(SessionId sessionId, ProjectId projectId) throws ESException
getEMFProperties
in interface EMFStore
sessionId
- sessionIdprojectId
- the projct id
ESException
- if any error occurs in the EmfStorepublic void registerEPackage(SessionId sessionId, org.eclipse.emf.ecore.EPackage pkg) throws ESException
registerEPackage
in interface EMFStore
sessionId
- session idpkg
- the EPackage to be registered
ESException
- 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 EMFStore
sessionId
- a session ID
ESException
- in case of an errorEMFStore.getVersion(SessionId)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |