org.eclipse.emf.emfstore.internal.client.startup
Class ClientHrefMigrator

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.server.startup.ServerHrefMigrator
      extended by org.eclipse.emf.emfstore.internal.client.startup.ClientHrefMigrator

public class ClientHrefMigrator
extends ServerHrefMigrator

When using the default EMF XMI persistence hrefs between resources are persisted based on the non-normalized URIs of the resources. Since version 1.1 introduced a new URI scheme for EMFStore, files that were persisted with version 1.0 and prior need to be migrated.

This migrator will update the Hrefs in legacy files on the client side.

Author:
jfaltermeier

Constructor Summary
ClientHrefMigrator()
           
 
Method Summary
 boolean migrate()
          Performs the migration, if needed.
 
Methods inherited from class org.eclipse.emf.emfstore.internal.server.startup.ServerHrefMigrator
getCorruptProjectIds
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientHrefMigrator

public ClientHrefMigrator()
Method Detail

migrate

public boolean migrate()
Performs the migration, if needed. Creates a backup beforehand.

Overrides:
migrate in class ServerHrefMigrator
Returns:
true if migration was successful, false if an error occurred and the client startup should be canceled.


Copyright © 2015. All Rights Reserved.