|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.emf.emfstore.internal.client.model.connectionmanager.AbstractConnectionManager<XmlRpcClientManager>
org.eclipse.emf.emfstore.internal.client.model.connectionmanager.xmlrpc.XmlRpcConnectionManager
public class XmlRpcConnectionManager
XML RPC based Implementation of ConnectionManager.
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.emf.emfstore.internal.client.model.connectionmanager.ConnectionManager |
|---|
INCOMPATIBLE_VERSION, LOGIN_FIRST, LOGIN_REFUSED, REMOTE, UNSUPPORTED_ENCODING |
| Fields inherited from interface org.eclipse.emf.emfstore.internal.server.EMFStore |
|---|
CHANGEPACKAGE_URI, PROJECT_URI |
| Constructor Summary | |
|---|---|
XmlRpcConnectionManager()
|
|
| 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(ServerInfo serverInfo)
Returns the version of the EMFStore server. |
String |
getVersion(SessionId sessionId)
Returns the version of the EMFStore server. |
ProjectId |
importProjectHistoryToServer(SessionId sessionId,
ProjectHistory projectHistory)
Imports a project history to the server. |
boolean |
isLoggedIn(SessionId id)
Checks whether session id is logged in. |
AuthenticationInformation |
logIn(String username,
String password,
ServerInfo serverInfo,
ClientVersionInfo clientVersionInfo)
Log into the server given by server info. |
void |
logout(SessionId sessionId)
Deletes a session on the server. |
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 org.eclipse.emf.emfstore.internal.client.model.connectionmanager.AbstractConnectionManager |
|---|
hasConnectionProxy |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XmlRpcConnectionManager()
| Method Detail |
|---|
public AuthenticationInformation logIn(String username,
String password,
ServerInfo serverInfo,
ClientVersionInfo clientVersionInfo)
throws ESException
logIn in interface ConnectionManagerusername - the user namepassword - the passwordserverInfo - the server info for the server to log intoclientVersionInfo - the client's version
AuthenticationInformation that can be used for later authentication
ESException - in case of failure
public void logout(SessionId sessionId)
throws ESException
logout in interface ConnectionManagersessionId - id to be deleted.
ESException - in case of failure on server
public 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 tag
ESException - if any error in the EmfStore occurs
public 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 logMessage
ProjectInfo for the new project
ESException - if any error in the EmfStore occurs
public 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 state
ProjectInfo for the new project
ESException - if any error in the EmfStore occurs
public PrimaryVersionSpec createVersion(SessionId sessionId,
ProjectId projectId,
PrimaryVersionSpec baseVersionSpec,
ChangePackage 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 version
InvalidVersionSpecException - if the base version is not equal to the current head
revision.
ESException - if any error in the EmfStore occurs
public 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 too
ESException - in case of failure
public FileChunk downloadFileChunk(SessionId sessionId,
ProjectId projectId,
FileTransferInformation fileInformation)
throws ESException
downloadFileChunk in interface EMFStoresessionId - session idprojectId - project idfileInformation - file information
ESException - if any error occurs in the EmfStore
public ProjectHistory exportProjectHistoryFromServer(SessionId sessionId,
ProjectId projectId)
throws ESException
exportProjectHistoryFromServer in interface EMFStoresessionId - session idprojectId - project id
ESException - in case of failure
public List<ChangePackage> getChanges(SessionId sessionId,
ProjectId projectId,
VersionSpec source,
VersionSpec target)
throws InvalidVersionSpecException,
ESException
getChanges in interface EMFStoresessionId - the session id for authenticationprojectId - the project idsource - the source version specifiertarget - the target version specifier
ESException - if any error in the EmfStore occurs
InvalidVersionSpecException
public List<BranchInfo> getBranches(SessionId sessionId,
ProjectId projectId)
throws ESException
getBranches in interface EMFStoresessionId - the session id for authenticationprojectId - the project id
BranchInfo
ESException - in case of an errorEMFStore.getBranches(org.eclipse.emf.emfstore.internal.server.model.SessionId,
org.eclipse.emf.emfstore.internal.server.model.ProjectId)
public List<HistoryInfo> getHistoryInfo(SessionId sessionId,
ProjectId projectId,
HistoryQuery<?> historyQuery)
throws ESException
HistoryQuery.
getHistoryInfo in interface EMFStoresessionId - the session idprojectId - the project idhistoryQuery - the historyQuery
ESException - if any error in the EmfStore occurs
public Project getProject(SessionId sessionId,
ProjectId projectId,
VersionSpec versionSpec)
throws InvalidVersionSpecException,
ESException
getProject in interface EMFStoresessionId - the session id for authenticationprojectId - the project id of the project to getversionSpec - the version to get
ESException - if any error in the EmfStore occurs
InvalidVersionSpecExceptionServerConfiguration.PROJECTSTATE_VERSION_PERSISTENCE
public List<ProjectInfo> getProjectList(SessionId sessionId)
throws ESException
getProjectList in interface EMFStoresessionId - the session id for authentication
ESException - if any error in the EmfStore occurs
public ProjectId importProjectHistoryToServer(SessionId sessionId,
ProjectHistory projectHistory)
throws ESException
importProjectHistoryToServer in interface EMFStoresessionId - sessionidprojectHistory - project history
ESException - in case of failure
public 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 removed
ESException - if any error in the EmfStore occurs
public ACUser resolveUser(SessionId sessionId,
ACOrgUnitId id)
throws ESException
resolveUser in interface EMFStoresessionId - session idid - user id, can be null, then requesting user gets resolved
ESException - if any error in the EmfStore occurs
public PrimaryVersionSpec resolveVersionSpec(SessionId sessionId,
ProjectId projectId,
VersionSpec versionSpec)
throws InvalidVersionSpecException,
ESException
resolveVersionSpec in interface EMFStoresessionId - the session id for authenticationprojectId - the project idversionSpec - the version specifier to resolve
ESException - if any error in the EmfStore occurs
InvalidVersionSpecException
public 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 id
ESException - if any error occurs in the EmfStore
public FileTransferInformation uploadFileChunk(SessionId sessionId,
ProjectId projectId,
FileChunk fileChunk)
throws ESException
uploadFileChunk in interface EMFStoresessionId - session idprojectId - project idfileChunk - file chunk
ESException - if any error occurs in the EmfStore
public 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 id
ESException - if any error occurs in the EmfStore
public List<EMFStoreProperty> getEMFProperties(SessionId sessionId,
ProjectId projectId)
throws ESException
getEMFProperties in interface EMFStoresessionId - sessionIdprojectId - the projct id
ESException - if any error occurs in the EmfStorepublic boolean isLoggedIn(SessionId id)
isLoggedIn in interface ConnectionManagerid - session id
ConnectionManager.isLoggedIn(org.eclipse.emf.emfstore.internal.server.model.SessionId)
public void registerEPackage(SessionId sessionId,
org.eclipse.emf.ecore.EPackage pkg)
throws ESException
registerEPackage in interface EMFStoresessionId - 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(ServerInfo serverInfo)
throws ESException
getVersion in interface ConnectionManagerserverInfo - the EMFStore server whose version should be retrieved
ESException - in case of a failureConnectionManager.getVersion(org.eclipse.emf.emfstore.internal.client.model.ServerInfo)
public String getVersion(SessionId sessionId)
throws ESException
getVersion in interface EMFStoresessionId - a session ID
ESException - in case of an errorEMFStore.getVersion(org.eclipse.emf.emfstore.internal.server.model.SessionId)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||