org.eclipse.emf.emfstore.server
Class ESServerURIUtil

java.lang.Object
  extended by org.eclipse.emf.emfstore.server.ESServerURIUtil

public final class ESServerURIUtil
extends Object

Helper class for creating EMFStore Server URIs and accessing segments.

Since:
1.1
Author:
jfaltermeier

Field Summary
static String CHANGEPACKAGES_SEGMENT
          The EMFStore URI segment for a changepackage.
static String DYNAMIC_MODELS_SEGMENT
          The EMFStore URI segment for dynamic models.
static String PROJECTHISTORY_SEGMENT
          The EMFStore URI segment for a project's history.
static String PROJECTS_SEGMENT
          The EMFStore URI segment for projects.
static String PROJECTSTATES_SEGMENT
          The EMFStore URI segment for a projectstate.
static String SCHEME
          The EMFStore URI scheme.
static String SERVER_SEGMENT
          The EMFStore URI segment for serverspaces.
static String SERVERSPACE_SEGMENT
          The EMFStore URI segment for the serverspace.
static String VERSIONS_SEGMENT
          The EMFStore URI segment for a version.
 
Method Summary
static org.eclipse.emf.common.util.URI createChangePackageURI(ProjectId projectId, PrimaryVersionSpec versionId)
          Creates an EMFStore URI for addressing a specific changepackage of a project.
static org.eclipse.emf.common.util.URI createDynamicModelsURI(org.eclipse.emf.ecore.EPackage ePackage)
          Creates an EMFStore URI for addressing a dynamic model.
static org.eclipse.emf.common.util.URI createProjectHistoryURI(ProjectId projectId)
          Creates an EMFStore URI for addressing the history of a project.
static org.eclipse.emf.common.util.URI createProjectStateURI(ProjectId projectId, PrimaryVersionSpec versionId)
          Creates an EMFStore URI for addressing a specific state of a project.
static org.eclipse.emf.common.util.URI createServerSpaceURI()
          Creates an EMFStore URI for addressing the serverspace.
static org.eclipse.emf.common.util.URI createVersionURI(ProjectId projectId, PrimaryVersionSpec versionId)
          Creates an EMFStore URI for addressing a specific version of a project.
static String getProfile()
          Returns the used profile.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCHEME

public static final String SCHEME
The EMFStore URI scheme.

Example URI: emfstore://workspaces/0/projectspaces/_pWleAMkNEeK_G9uCvLFQ5A/project

See Also:
Constant Field Values

SERVER_SEGMENT

public static final String SERVER_SEGMENT
The EMFStore URI segment for serverspaces.

Example URI: emfstore://serverspaces/profile/serverspace

See Also:
Constant Field Values

PROJECTS_SEGMENT

public static final String PROJECTS_SEGMENT
The EMFStore URI segment for projects.

Example URI: emfstore://serverspaces/profile/projects/identifier/versions/nr

See Also:
Constant Field Values

VERSIONS_SEGMENT

public static final String VERSIONS_SEGMENT
The EMFStore URI segment for a version.

Example URI: emfstore://serverspaces/profile/projects/identifier/versions/nr

See Also:
Constant Field Values

CHANGEPACKAGES_SEGMENT

public static final String CHANGEPACKAGES_SEGMENT
The EMFStore URI segment for a changepackage.

Example URI: emfstore://serverspaces/profile/projects/identifier/changepackages/nr

See Also:
Constant Field Values

PROJECTSTATES_SEGMENT

public static final String PROJECTSTATES_SEGMENT
The EMFStore URI segment for a projectstate.

Example URI: emfstore://serverspaces/profile/projects/identifier/projectstates/nr

See Also:
Constant Field Values

SERVERSPACE_SEGMENT

public static final String SERVERSPACE_SEGMENT
The EMFStore URI segment for the serverspace.

Example URI: emfstore://serverspaces/profile/serverspace

See Also:
Constant Field Values

PROJECTHISTORY_SEGMENT

public static final String PROJECTHISTORY_SEGMENT
The EMFStore URI segment for a project's history.

Example URI: emfstore://serverspaces/profile/projects/identifier/projecthistory

See Also:
Constant Field Values

DYNAMIC_MODELS_SEGMENT

public static final String DYNAMIC_MODELS_SEGMENT
The EMFStore URI segment for dynamic models.

Example URI: emfstore://serverspaces/profile/dynamic-models

See Also:
Constant Field Values
Method Detail

createServerSpaceURI

public static org.eclipse.emf.common.util.URI createServerSpaceURI()
Creates an EMFStore URI for addressing the serverspace.

Example URI: emfstore://serverspaces/profile/serverspace

Returns:
the EMFStore URI

createDynamicModelsURI

public static org.eclipse.emf.common.util.URI createDynamicModelsURI(org.eclipse.emf.ecore.EPackage ePackage)
                                                              throws ESException
Creates an EMFStore URI for addressing a dynamic model.

Example URI: emfstore://serverspaces/profile/dynamic-models/example.ecore

Parameters:
ePackage - the ePackage
Returns:
the EMFStore URI
Throws:
ESException - if namespace Uri can't be converted to filename

createProjectHistoryURI

public static org.eclipse.emf.common.util.URI createProjectHistoryURI(ProjectId projectId)
Creates an EMFStore URI for addressing the history of a project.

Example URI: emfstore://serverspaces/profile/projects/identifier/projecthistory

Parameters:
projectId - the project id
Returns:
the EMFStore URI

createVersionURI

public static org.eclipse.emf.common.util.URI createVersionURI(ProjectId projectId,
                                                               PrimaryVersionSpec versionId)
Creates an EMFStore URI for addressing a specific version of a project.

Example URI: emfstore://serverspaces/profile/projects/identifier/versions/nr

Parameters:
projectId - the project id
versionId - the version id
Returns:
the EMFStore URI

createChangePackageURI

public static org.eclipse.emf.common.util.URI createChangePackageURI(ProjectId projectId,
                                                                     PrimaryVersionSpec versionId)
Creates an EMFStore URI for addressing a specific changepackage of a project.

Example URI: emfstore://serverspaces/profile/projects/identifier/changepackages/nr

Parameters:
projectId - the project id
versionId - the version id
Returns:
the EMFStore URI

createProjectStateURI

public static org.eclipse.emf.common.util.URI createProjectStateURI(ProjectId projectId,
                                                                    PrimaryVersionSpec versionId)
Creates an EMFStore URI for addressing a specific state of a project.

Example URI: emfstore://serverspaces/profile/projects/identifier/projectstates/nr

Parameters:
projectId - the project id
versionId - the version id
Returns:
the EMFStore URI

getProfile

public static String getProfile()
Returns the used profile.

Example URI: emfstore://serverspaces/profile/projects/identifier/versions/nr

Returns:
the profile


Copyright © 2015. All Rights Reserved.