Drools Workbench - JCR to UberFire VFS migration 6.2.0-SNAPSHOT

org.drools.workbench.jcr2vfsmigration.migrater.util
Class MigrationPathManager

java.lang.Object
  extended by org.drools.workbench.jcr2vfsmigration.migrater.util.MigrationPathManager

@ApplicationScoped
public class MigrationPathManager
extends Object

Generates a Path for every object that needs to be migrated. Guarantees uniqueness. Supports look ups.


Constructor Summary
MigrationPathManager()
           
 
Method Summary
 String dotToSlash(String pathEntry)
           
 String escapePathEntry(String pathEntry)
           
 org.uberfire.backend.vfs.Path generatePathForAsset(org.drools.guvnor.client.rpc.Module jcrModule, org.drools.guvnor.client.rpc.Asset jcrAsset, boolean hasDSL)
           
 org.uberfire.backend.vfs.Path generatePathForAsset(org.drools.guvnor.client.rpc.Module jcrModule, org.drools.repository.AssetItem jcrAssetItem)
           
 org.uberfire.backend.vfs.Path generatePathForAsset(org.drools.guvnor.client.rpc.Module jcrModule, org.drools.repository.AssetItem jcrAssetItem, boolean hasDSL)
           
 org.uberfire.backend.vfs.Path generatePathForGlobal(org.drools.guvnor.client.rpc.Module jcrModule)
           
 org.uberfire.backend.vfs.Path generatePathForModule(String jcrModuleName)
           
 org.uberfire.backend.vfs.Path generateRootPath()
           
 org.uberfire.java.nio.file.FileSystem getFileSystem()
           
 String normalizePackageName(String stringToEscape)
           
 void setRepoName(String repoName, String outputDir)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MigrationPathManager

public MigrationPathManager()
Method Detail

generateRootPath

public org.uberfire.backend.vfs.Path generateRootPath()

generatePathForModule

public org.uberfire.backend.vfs.Path generatePathForModule(String jcrModuleName)

generatePathForAsset

public org.uberfire.backend.vfs.Path generatePathForAsset(org.drools.guvnor.client.rpc.Module jcrModule,
                                                          org.drools.guvnor.client.rpc.Asset jcrAsset,
                                                          boolean hasDSL)

generatePathForGlobal

public org.uberfire.backend.vfs.Path generatePathForGlobal(org.drools.guvnor.client.rpc.Module jcrModule)

generatePathForAsset

public org.uberfire.backend.vfs.Path generatePathForAsset(org.drools.guvnor.client.rpc.Module jcrModule,
                                                          org.drools.repository.AssetItem jcrAssetItem,
                                                          boolean hasDSL)

generatePathForAsset

public org.uberfire.backend.vfs.Path generatePathForAsset(org.drools.guvnor.client.rpc.Module jcrModule,
                                                          org.drools.repository.AssetItem jcrAssetItem)

escapePathEntry

public String escapePathEntry(String pathEntry)

normalizePackageName

public String normalizePackageName(String stringToEscape)

dotToSlash

public String dotToSlash(String pathEntry)

setRepoName

public void setRepoName(String repoName,
                        String outputDir)

getFileSystem

public org.uberfire.java.nio.file.FileSystem getFileSystem()

Drools Workbench - JCR to UberFire VFS migration 6.2.0-SNAPSHOT

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