public class DefaultPortableViewManager extends Object implements PortableViewManager
PortableViewManager implementation.| Modifier and Type | Field and Description |
|---|---|
static String |
BASENAME_FORMAT_STRING |
static String |
PACKAGE_BASENAME_FORMAT_STRING |
static String |
PORTABLE_VIEW_FILE_EXTENSION
Extension for Portable View files
|
INSTALLER_PROVIDER_NAME| Constructor and Description |
|---|
DefaultPortableViewManager() |
public static String PORTABLE_VIEW_FILE_EXTENSION
public static final String BASENAME_FORMAT_STRING
public static final String PACKAGE_BASENAME_FORMAT_STRING
public String getInstallationMapFolder()
getInstallationMapFolder in interface PortableViewManagerpublic void setInstallationMapFolder(String folder)
setInstallationMapFolder in interface PortableViewManagerpublic String getTemporalFolder()
getTemporalFolder in interface PortableViewManagerpublic void setTemporalFolder(String folder)
setTemporalFolder in interface PortableViewManagerpublic List<PortableView> getInstalledMaps()
getInstalledMaps in interface PortableViewManagerpublic List<PortableView> getInstalledMaps(String folder)
getInstalledMaps in interface PortableViewManagerfolder - to analyzepublic PortableView getMapFromFile(File file) throws InvalidPortableViewFormatException
getMapFromFile in interface PortableViewManagerInvalidPortableViewFormatExceptionpublic PortableView getMapById(String mapId)
PortableViewManagerPortableView from intalledMaps
by its id
getMapById in interface PortableViewManagerpublic boolean isMap(File file)
isMap in interface PortableViewManagerpublic PortableViewCompilation createCompilationInstance()
createCompilationInstance in interface PortableViewManagerpublic PortableViewCompiler createCompilerInstance()
createCompilerInstance in interface PortableViewManagerpublic void dispose()
dispose in interface Disposablepublic void cleanAllTemporalData()
cleanAllTemporalData in interface PortableViewManagerpublic PortableViewCompilation createCompilationInstanceFromMap(PortableView map) throws InvalidPortableViewFormatException, CantLoadContextException, IOException
createCompilationInstanceFromMap in interface PortableViewManagermap - to use as templateInvalidPortableViewFormatExceptionCantLoadContextExceptionIOExceptionpublic PortableView getPortableViewIntalledFolder(File folder) throws PortableViewException
folder - InvalidInstalledPortableViewExceptionPortableViewExceptionpublic boolean isAPortableViewIntalledFolder(File folder)
isAPortableViewIntalledFolder in interface PortableViewManagerpublic String getBaseFileNameFromInfo(PortableViewInformation info)
getBaseFileNameFromInfo in interface PortableViewManagerpublic String getBaseFileNameFromInfo(String id, String name, int version, int buildNumber)
getBaseFileNameFromInfo in interface PortableViewManagerpublic File generatePackageFile(String mapId, File targetFolder) throws PortableViewException, IOException
generatePackageFile in interface PortableViewManagermapId - id of map to exporttargetFolder - where write package filePortableViewExceptionIOExceptionpublic File generatePackageFile(File portableViewIntallFolder, File targetFolder) throws PortableViewException, IOException
generatePackageFile in interface PortableViewManagerportableViewIntallFolder - folder of a installed PortableViewtargetFolder - where write package filePortableViewExceptionIOExceptionpublic String getTranslation(String key)
PortableViewManagergetTranslation in interface PortableViewManagerkey - String to translate