org.drools.workbench.jcr2vfsmigration.migrater.util
Class MigrationPathManager
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MigrationPathManager
public MigrationPathManager()
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()
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.