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 PortableViewManager
public void setInstallationMapFolder(String folder)
setInstallationMapFolder
in interface PortableViewManager
public String getTemporalFolder()
getTemporalFolder
in interface PortableViewManager
public void setTemporalFolder(String folder)
setTemporalFolder
in interface PortableViewManager
public List<PortableView> getInstalledMaps()
getInstalledMaps
in interface PortableViewManager
public List<PortableView> getInstalledMaps(String folder)
getInstalledMaps
in interface PortableViewManager
folder
- to analyzepublic PortableView getMapFromFile(File file) throws InvalidPortableViewFormatException
getMapFromFile
in interface PortableViewManager
InvalidPortableViewFormatException
public PortableView getMapById(String mapId)
PortableViewManager
PortableView
from intalledMaps
by its id
getMapById
in interface PortableViewManager
public boolean isMap(File file)
isMap
in interface PortableViewManager
public PortableViewCompilation createCompilationInstance()
createCompilationInstance
in interface PortableViewManager
public PortableViewCompiler createCompilerInstance()
createCompilerInstance
in interface PortableViewManager
public void dispose()
dispose
in interface Disposable
public void cleanAllTemporalData()
cleanAllTemporalData
in interface PortableViewManager
public PortableViewCompilation createCompilationInstanceFromMap(PortableView map) throws InvalidPortableViewFormatException, CantLoadContextException, IOException
createCompilationInstanceFromMap
in interface PortableViewManager
map
- to use as templateInvalidPortableViewFormatException
CantLoadContextException
IOException
public PortableView getPortableViewIntalledFolder(File folder) throws PortableViewException
folder
- InvalidInstalledPortableViewException
PortableViewException
public boolean isAPortableViewIntalledFolder(File folder)
isAPortableViewIntalledFolder
in interface PortableViewManager
public String getBaseFileNameFromInfo(PortableViewInformation info)
getBaseFileNameFromInfo
in interface PortableViewManager
public String getBaseFileNameFromInfo(String id, String name, int version, int buildNumber)
getBaseFileNameFromInfo
in interface PortableViewManager
public File generatePackageFile(String mapId, File targetFolder) throws PortableViewException, IOException
generatePackageFile
in interface PortableViewManager
mapId
- id of map to exporttargetFolder
- where write package filePortableViewException
IOException
public File generatePackageFile(File portableViewIntallFolder, File targetFolder) throws PortableViewException, IOException
generatePackageFile
in interface PortableViewManager
portableViewIntallFolder
- folder of a installed PortableViewtargetFolder
- where write package filePortableViewException
IOException
public String getTranslation(String key)
PortableViewManager
getTranslation
in interface PortableViewManager
key
- String to translate