org.exoplatform.social.extras.migration
Class MigrationTool

java.lang.Object
  extended by org.exoplatform.social.extras.migration.MigrationTool

public class MigrationTool
extends Object

Migration entry point.

Version:
$Revision$
Author:
Alain Defrance

Field Summary
static int END_NODE
           
static int PROPERTY_MULTI
           
static int PROPERTY_SINGLE
           
static int START_NODE
           
 
Constructor Summary
MigrationTool()
           
 
Method Summary
 void commit(NodeReader reader, NodeWriter writer, WriterContext ctx)
          Run commit changes.
 NodeReader createReader(String from, String to, javax.jcr.Session session)
          Run create new reader.
 NodeWriter createWriter(String from, String to, javax.jcr.Session session)
          Run create new writer.
 void rollback(NodeReader reader, NodeWriter writer, WriterContext ctx)
          Rollback changes.
 void runActivities(NodeReader reader, NodeWriter writer, WriterContext ctx)
          Run activities migration.
 void runAll(NodeReader reader, NodeWriter writer, WriterContext ctx)
          Run full migration.
 void runIdentities(NodeReader reader, NodeWriter writer, WriterContext ctx)
          Run identities migration.
 void runProfiles(NodeReader reader, NodeWriter writer, WriterContext ctx)
          Run profiles migration.
 void runRelationships(NodeReader reader, NodeWriter writer, WriterContext ctx)
          Run relationship migration.
 void runSpaces(NodeReader reader, NodeWriter writer, WriterContext ctx)
          Run spaces migration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

START_NODE

public static final int START_NODE
See Also:
Constant Field Values

PROPERTY_SINGLE

public static final int PROPERTY_SINGLE
See Also:
Constant Field Values

PROPERTY_MULTI

public static final int PROPERTY_MULTI
See Also:
Constant Field Values

END_NODE

public static final int END_NODE
See Also:
Constant Field Values
Constructor Detail

MigrationTool

public MigrationTool()
Method Detail

runAll

public void runAll(NodeReader reader,
                   NodeWriter writer,
                   WriterContext ctx)
            throws IOException,
                   javax.jcr.RepositoryException
Run full migration.

Parameters:
reader - data reader
writer - data writer
ctx - mavigation context
Throws:
IOException
javax.jcr.RepositoryException

runIdentities

public void runIdentities(NodeReader reader,
                          NodeWriter writer,
                          WriterContext ctx)
                   throws IOException,
                          javax.jcr.RepositoryException
Run identities migration.

Parameters:
reader - data reader
writer - data writer
ctx - mavigation context
Throws:
IOException
javax.jcr.RepositoryException

runProfiles

public void runProfiles(NodeReader reader,
                        NodeWriter writer,
                        WriterContext ctx)
                 throws IOException,
                        javax.jcr.RepositoryException
Run profiles migration.

Parameters:
reader - data reader
writer - data writer
ctx - mavigation context
Throws:
IOException
javax.jcr.RepositoryException

runSpaces

public void runSpaces(NodeReader reader,
                      NodeWriter writer,
                      WriterContext ctx)
               throws IOException,
                      javax.jcr.RepositoryException
Run spaces migration.

Parameters:
reader - data reader
writer - data writer
ctx - mavigation context
Throws:
IOException
javax.jcr.RepositoryException

runRelationships

public void runRelationships(NodeReader reader,
                             NodeWriter writer,
                             WriterContext ctx)
                      throws IOException,
                             javax.jcr.RepositoryException
Run relationship migration.

Parameters:
reader - data reader
writer - data writer
ctx - mavigation context
Throws:
IOException
javax.jcr.RepositoryException

runActivities

public void runActivities(NodeReader reader,
                          NodeWriter writer,
                          WriterContext ctx)
                   throws IOException,
                          javax.jcr.RepositoryException
Run activities migration.

Parameters:
reader - data reader
writer - data writer
ctx - mavigation context
Throws:
IOException
javax.jcr.RepositoryException

rollback

public void rollback(NodeReader reader,
                     NodeWriter writer,
                     WriterContext ctx)
              throws javax.jcr.RepositoryException
Rollback changes.

Parameters:
reader - data reader
writer - data writer
ctx - mavigation context
Throws:
javax.jcr.RepositoryException

commit

public void commit(NodeReader reader,
                   NodeWriter writer,
                   WriterContext ctx)
            throws javax.jcr.RepositoryException
Run commit changes.

Parameters:
reader - data reader
writer - data writer
ctx - mavigation context
Throws:
javax.jcr.RepositoryException

createReader

public NodeReader createReader(String from,
                               String to,
                               javax.jcr.Session session)
                        throws javax.jcr.RepositoryException
Run create new reader.

Throws:
IOException
javax.jcr.RepositoryException

createWriter

public NodeWriter createWriter(String from,
                               String to,
                               javax.jcr.Session session)
                        throws javax.jcr.RepositoryException
Run create new writer.

Throws:
IOException
javax.jcr.RepositoryException


Copyright © 2013 eXo Platform SAS. All Rights Reserved.