|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Workspace
A representation of the model object ' Workspace'.
ModelPackage.getWorkspace()| Method Summary | |
|---|---|
void |
addServerInfo(ServerInfo serverInfo)
Adds an server info and saves. |
ProjectSpace |
createLocalProject(String projectName)
Creates a new local project that is not shared with the server yet. |
void |
exportProjectSpace(ProjectSpace projectSpace,
File file)
Exports a project space to a file. |
void |
exportProjectSpace(ProjectSpace projectSpace,
File file,
org.eclipse.core.runtime.IProgressMonitor progressMonitor)
Exports a project space to a file. |
void |
exportWorkSpace(File file)
Exports the whole workspace. |
void |
exportWorkSpace(File file,
org.eclipse.core.runtime.IProgressMonitor progressMonitor)
Exports the whole workspace to the given file. |
AdminBroker |
getAdminBroker(ServerInfo serverInfo)
Returns an AdminBroker related to the given ServerInfo. |
AdminBroker |
getAdminBroker(Usersession session)
Returns an AdminBroker related to the given Usersession. |
org.eclipse.emf.edit.domain.EditingDomain |
getEditingDomain()
Return this editing domain belonging to this workspace. |
ProjectSpace |
getProjectSpace(Project project)
Retrieves the project space for the given project. |
org.eclipse.emf.common.util.EList<ProjectSpace> |
getProjectSpaces()
Returns the value of the 'Project Spaces' containment reference list. |
org.eclipse.emf.ecore.resource.ResourceSet |
getResourceSet()
Returns the workspace resource set. |
org.eclipse.emf.common.util.EList<ServerInfo> |
getServerInfos()
Returns the value of the 'Server Infos' containment reference list. |
org.eclipse.emf.common.util.EList<Usersession> |
getUsersessions()
Returns the value of the 'Usersessions' containment reference list. |
ProjectSpace |
importProject(Project project,
String name,
String description)
Imports a project into a project space. |
ProjectSpace |
importProject(String absoluteFileName)
Import an existing project from a given file. |
ProjectSpace |
importProjectSpace(String absoluteFileName)
Import an existing project space from a file. |
void |
init()
Initializes the workspace and its project spaces. |
void |
removeServerInfo(ServerInfo serverInfo)
Removes an server info and saves. |
void |
removeUsersession(Usersession session)
Remove the given Usersession from the workspace. |
Set<ProjectSpace> |
resolve(ProjectUrlFragment projectUrlFragment)
Resolves a project URL fragment to the project space the project is in. Since a project may have been checked out multiple times, a set of project spaces is returned. |
Set<ServerInfo> |
resolve(ServerUrl serverUrl)
Resolves a server URL to a server. |
void |
save()
Make the current workspace state persistent. |
void |
setResourceSet(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
Set the workspace resource set. |
void |
updateACUser(ServerInfo serverInfo)
Updates the ACUser and it roles. |
void |
updateACUser(Usersession session)
Updates the ACUser and it roles. |
| Methods inherited from interface org.eclipse.emf.ecore.EObject |
|---|
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset |
| Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
|---|
eAdapters, eDeliver, eNotify, eSetDeliver |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
|---|
getAdapter |
| Methods inherited from interface org.eclipse.emf.emfstore.internal.common.api.APIDelegate |
|---|
createAPI, toAPI |
| Method Detail |
|---|
ProjectSpace createLocalProject(String projectName)
projectName - the project nameprojectDescription - the project description
void exportProjectSpace(ProjectSpace projectSpace,
File file)
throws IOException
projectSpace - The project space that should be exportedfile - The file to export to
IOException - If creating the export file fails
void exportProjectSpace(ProjectSpace projectSpace,
File file,
org.eclipse.core.runtime.IProgressMonitor progressMonitor)
throws IOException
projectSpace - The project space that should be exportedfile - The file to export toprogressMonitor - The progress monitor that should be used during the xport
IOException - If creating the export file fails
void exportWorkSpace(File file)
throws IOException
file - The file to export to
IOException - If creating the export file fails
void exportWorkSpace(File file,
org.eclipse.core.runtime.IProgressMonitor progressMonitor)
throws IOException
file - The file to export toprogressMonitor - The progress monitor that should be used during the export
IOException - If creating the export file fails
AdminBroker getAdminBroker(ServerInfo serverInfo)
throws ESException,
AccessControlException
AdminBroker related to the given ServerInfo.
serverInfo - The ServerInfo that should be used to retrieve the
admin broker.
AdminBroker related to the given server info.
ESException - If an error occurs while retrieving the admin broker
AccessControlException - If access is denied
AdminBroker getAdminBroker(Usersession session)
throws ESException,
AccessControlException
AdminBroker related to the given Usersession.
session - The user session that should be used to retrieve the admin
broker.null, the session manager will search for a
session.
AdminBroker related to the given user session.
ESException - If an error occurs while retrieving the admin broker
AccessControlException - If access is deniedorg.eclipse.emf.edit.domain.EditingDomain getEditingDomain()
ProjectSpace getProjectSpace(Project project)
throws UnkownProjectException
project - The project for which to retrieve the project space.
UnkownProjectException - If the project is not known to the workspaceorg.eclipse.emf.common.util.EList<ProjectSpace> getProjectSpaces()
ProjectSpace.
It is bidirectional and its opposite is '
Workspace'.
If the meaning of the 'Project Spaces' reference list isn't clear, there really should be more of a description here...
ModelPackage.getWorkspace_ProjectSpaces(),
ProjectSpace.getWorkspace()org.eclipse.emf.common.util.EList<ServerInfo> getServerInfos()
ServerInfo.
If the meaning of the 'Server Infos' containment reference list isn't clear, there really should be more of a description here...
ModelPackage.getWorkspace_ServerInfos()org.eclipse.emf.common.util.EList<Usersession> getUsersessions()
Usersession.
If the meaning of the 'Usersessions' containment reference list isn't clear, there really should be more of a description here...
ModelPackage.getWorkspace_Usersessions()
ProjectSpace importProject(Project project,
String name,
String description)
project - The project to be importedname - The name that should be assigned to the project being
imported.description - A description of the project being imported
ProjectSpace importProject(String absoluteFileName)
throws IOException
absoluteFileName - The absolute path to a file to import from.
IOException - If importing the project fails
ProjectSpace importProjectSpace(String absoluteFileName)
throws IOException
absoluteFileName - The absolute path to a file to import from.
IOException - If accessing the file or importing failsvoid init()
Set<ProjectSpace> resolve(ProjectUrlFragment projectUrlFragment)
throws ProjectUrlResolutionException
projectUrlFragment - the project URL fragment to resolve
ProjectUrlResolutionException - if the project belonging to the given project URL fragment
cannot be found in workspace
Set<ServerInfo> resolve(ServerUrl serverUrl)
throws ServerUrlResolutionException
serverUrl - the server URL to be resolved
ServerInfo
ServerUrlResolutionException - if no matching server info can be foundvoid save()
org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
void setResourceSet(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
resourceSet - The resource set to be set.
void updateACUser(ServerInfo serverInfo)
throws ESException
serverInfo - The ServerInfo that is used to update the ACUser.
ESException - if an error occurs while updating the ACUser
void updateACUser(Usersession session)
throws ESException
session - The Usersession that should be used to update the
ACUser. If null, the session manager will search
for a session.
ESException - if an error occurs while updating the ACUservoid addServerInfo(ServerInfo serverInfo)
serverInfo - the server info to be addedvoid removeServerInfo(ServerInfo serverInfo)
serverInfo - the server info to be removed
void removeUsersession(Usersession session)
throws ESException
Usersession from the workspace.
session - the session to be removed
ESException - in case removing the session fails
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||