public class DefaultPortableViewManager extends java.lang.Object implements PortableViewManager
PortableViewManager
implementation.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BASENAME_FORMAT_STRING |
static java.lang.String |
PACKAGE_BASENAME_FORMAT_STRING |
static java.lang.String |
PORTABLE_VIEW_FILE_EXTENSION
Extension for Portable View files
|
INSTALLER_PROVIDER_NAME
Constructor and Description |
---|
DefaultPortableViewManager() |
Modifier and Type | Method and Description |
---|---|
void |
cleanAllTemporalData() |
PortableViewCompilation |
createCompilationInstance() |
PortableViewCompilation |
createCompilationInstanceFromMap(PortableView map) |
PortableViewCompiler |
createCompilerInstance() |
void |
dispose() |
java.io.File |
generatePackageFile(java.io.File portableViewIntallFolder,
java.io.File targetFolder) |
java.io.File |
generatePackageFile(java.lang.String mapId,
java.io.File targetFolder) |
java.lang.String |
getBaseFileNameFromInfo(PortableViewInformation info) |
java.lang.String |
getBaseFileNameFromInfo(java.lang.String id,
java.lang.String name,
int version,
int buildNumber) |
java.lang.String |
getInstallationMapFolder() |
java.util.List<PortableView> |
getInstalledMaps() |
java.util.List<PortableView> |
getInstalledMaps(java.lang.String folder) |
PortableView |
getMapById(java.lang.String mapId)
Gets a
PortableView from intalledMaps
by its id
|
PortableView |
getMapFromFile(java.io.File file) |
PortableView |
getPortableViewIntalledFolder(java.io.File folder)
Gets a PortableView from a installed maps
|
java.lang.String |
getTemporalFolder() |
java.lang.String |
getTranslation(java.lang.String key)
Returns the translation of a string.
|
boolean |
isAPortableViewIntalledFolder(java.io.File folder) |
boolean |
isMap(java.io.File file) |
void |
setInstallationMapFolder(java.lang.String folder) |
void |
setTemporalFolder(java.lang.String folder) |
public static java.lang.String PORTABLE_VIEW_FILE_EXTENSION
public static final java.lang.String BASENAME_FORMAT_STRING
public static final java.lang.String PACKAGE_BASENAME_FORMAT_STRING
public java.lang.String getInstallationMapFolder()
getInstallationMapFolder
in interface PortableViewManager
public void setInstallationMapFolder(java.lang.String folder)
setInstallationMapFolder
in interface PortableViewManager
public java.lang.String getTemporalFolder()
getTemporalFolder
in interface PortableViewManager
public void setTemporalFolder(java.lang.String folder)
setTemporalFolder
in interface PortableViewManager
public java.util.List<PortableView> getInstalledMaps()
getInstalledMaps
in interface PortableViewManager
public java.util.List<PortableView> getInstalledMaps(java.lang.String folder)
getInstalledMaps
in interface PortableViewManager
folder
- to analyzepublic PortableView getMapFromFile(java.io.File file) throws InvalidPortableViewFormatException
getMapFromFile
in interface PortableViewManager
InvalidPortableViewFormatException
public PortableView getMapById(java.lang.String mapId)
PortableViewManager
PortableView
from intalledMaps
by its id
getMapById
in interface PortableViewManager
public boolean isMap(java.io.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, java.io.IOException
createCompilationInstanceFromMap
in interface PortableViewManager
map
- to use as templateInvalidPortableViewFormatException
CantLoadContextException
java.io.IOException
public PortableView getPortableViewIntalledFolder(java.io.File folder) throws PortableViewException
folder
- InvalidInstalledPortableViewException
PortableViewException
public boolean isAPortableViewIntalledFolder(java.io.File folder)
isAPortableViewIntalledFolder
in interface PortableViewManager
public java.lang.String getBaseFileNameFromInfo(PortableViewInformation info)
getBaseFileNameFromInfo
in interface PortableViewManager
public java.lang.String getBaseFileNameFromInfo(java.lang.String id, java.lang.String name, int version, int buildNumber)
getBaseFileNameFromInfo
in interface PortableViewManager
public java.io.File generatePackageFile(java.lang.String mapId, java.io.File targetFolder) throws PortableViewException, java.io.IOException
generatePackageFile
in interface PortableViewManager
mapId
- id of map to exporttargetFolder
- where write package filePortableViewException
java.io.IOException
public java.io.File generatePackageFile(java.io.File portableViewIntallFolder, java.io.File targetFolder) throws PortableViewException, java.io.IOException
generatePackageFile
in interface PortableViewManager
portableViewIntallFolder
- folder of a installed PortableViewtargetFolder
- where write package filePortableViewException
java.io.IOException
public java.lang.String getTranslation(java.lang.String key)
PortableViewManager
getTranslation
in interface PortableViewManager
key
- String to translate