Drools Workbench - JCR to UberFire VFS migration 6.2.0-SNAPSHOT

org.drools.workbench.jcr2vfsmigration
Class Jcr2VfsMigrater

java.lang.Object
  extended by org.drools.workbench.jcr2vfsmigration.Jcr2VfsMigrater

@ApplicationScoped
public class Jcr2VfsMigrater
extends Object


Field Summary
protected  AssetMigrater assetMigrater
           
protected  CategoryMigrater categoryMigrater
           
protected  org.drools.guvnor.server.repository.GuvnorBootstrapConfiguration guvnorBootstrapConfiguration
           
protected static org.slf4j.Logger logger
           
protected  MigrationConfig migrationConfig
           
protected  MigrationPathManager migrationPathManager
           
protected  ModuleMigrater moduleMigrater
           
protected  org.jboss.weld.context.bound.BoundRequestContext requestContext
           
protected  Map<String,Object> requestDataStore
           
protected  org.jboss.weld.context.bound.BoundSessionContext sessionContext
           
protected  Map<String,Object> sessionDataStore
           
 
Constructor Summary
Jcr2VfsMigrater()
           
 
Method Summary
protected  String determineJcrRepositoryRootDirectory()
          Workaround the repository.xml and repository directory layout mess.
protected  void endContexts()
           
 void migrateAll()
           
 boolean parseArgs(String[] args)
           
protected  void setupDirectories()
           
protected  void startContexts()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.slf4j.Logger logger

migrationConfig

@Inject
protected MigrationConfig migrationConfig

guvnorBootstrapConfiguration

@Inject
protected org.drools.guvnor.server.repository.GuvnorBootstrapConfiguration guvnorBootstrapConfiguration

moduleMigrater

@Inject
protected ModuleMigrater moduleMigrater

migrationPathManager

@Inject
protected MigrationPathManager migrationPathManager

assetMigrater

@Inject
protected AssetMigrater assetMigrater

categoryMigrater

@Inject
protected CategoryMigrater categoryMigrater

sessionContext

@Inject
protected org.jboss.weld.context.bound.BoundSessionContext sessionContext

sessionDataStore

protected Map<String,Object> sessionDataStore

requestContext

@Inject
protected org.jboss.weld.context.bound.BoundRequestContext requestContext

requestDataStore

protected Map<String,Object> requestDataStore
Constructor Detail

Jcr2VfsMigrater

public Jcr2VfsMigrater()
Method Detail

parseArgs

public boolean parseArgs(String[] args)

migrateAll

public void migrateAll()

setupDirectories

protected void setupDirectories()

determineJcrRepositoryRootDirectory

protected String determineJcrRepositoryRootDirectory()
Workaround the repository.xml and repository directory layout mess.

If repository.root.directory was NOT specified, the layout looks like this:

 repository.xml
 repository
 repository/repository
 repository/repository/datastore
 repository/repository/index
 repository/repository/...
 repository/version
 repository/version/...
 repository/workspaces
 repository/workspaces/...
 
If repository.root.directory was specified however, the layout looks like this:
 repository.xml
 repository
 repository/datastore
 repository/index
 repository/...
 version
 version/...
 workspaces
 workspaces/...
 

Returns:
never null

startContexts

protected void startContexts()

endContexts

protected void endContexts()

Drools Workbench - JCR to UberFire VFS migration 6.2.0-SNAPSHOT

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.