org.eclipse.emf.emfstore.internal.server
Class DefaultServerWorkspaceLocationProvider

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.server.DefaultServerWorkspaceLocationProvider
All Implemented Interfaces:
ESLocationProvider
Direct Known Subclasses:
DefaultWorkspaceLocationProvider

public class DefaultServerWorkspaceLocationProvider
extends Object
implements ESLocationProvider

This is the default workspace location provider. If no other location provider is registered, this provider is used. The default location provider offers profiles, which allows to have multiple workspaces within one root folder. Allowing this isn't mandatory. It is encouraged to subclass this class when implementing an own location provider, since it offers convenience methods. By convention, every path should end with an folder separator char.

Author:
wesendon

Constructor Summary
DefaultServerWorkspaceLocationProvider()
           
 
Method Summary
 String getBackupDirectory()
          Returns the backup directory.
 String getWorkspaceDirectory()
          Get the path to the workspace directory, where the model data is stored to.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultServerWorkspaceLocationProvider

public DefaultServerWorkspaceLocationProvider()
Method Detail

getWorkspaceDirectory

public String getWorkspaceDirectory()
Get the path to the workspace directory, where the model data is stored to. This method is called only once on workspace startup to retrieve path. If you want to use profiles look at DefaultServerWorkspaceLocationProvider and it's subclasses . By default this implementation stores all workspaces in a profile, which can be selected by the getSelectedProfile() method. If you want to use profiles, you should use or override getSelectedProfile(). If you don't want profiles override this method and just return your path.

Specified by:
getWorkspaceDirectory in interface ESLocationProvider
Returns:
a string representing the path
See Also:
ESLocationProvider.getWorkspaceDirectory()

getBackupDirectory

public String getBackupDirectory()
Returns the backup directory.

Returns:
the full path of the backup directory


Copyright © 2015. All Rights Reserved.