Package org.javlo.service
Class PersistenceThread
- java.lang.Object
-
- org.javlo.service.PersistenceThread
-
-
Field Summary
Fields Modifier and Type Field Description static Object
LOCK
Object
lockReference
static boolean
ONE_INSTANCE_RUN
-
Constructor Summary
Constructors Constructor Description PersistenceThread(Object lockReference)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFolderToSave(File file)
String
getContextKey()
String
getDataFolder()
String
getDefaultLg()
String
getEncryptKey()
Map<String,String>
getGlobalContentMap()
MenuElement
getMenuElement()
int
getMode()
PersistenceService
getPersistenceService()
TaxonomyBean
getTaxonomyRoot()
protected File
getXMLPersistenceFile(int mode)
boolean
isRunning()
boolean
isZipStorage()
void
run()
void
setContextKey(String contextKey)
void
setDataFolder(String dataFolder)
void
setDefaultLg(String defaultLg)
void
setEncryptKey(String encryptKey)
void
setGlobalContentMap(Map<String,String> globalContentMap)
void
setMenuElement(MenuElement menuElement)
void
setMode(int mode)
void
setPersistenceService(PersistenceService persistenceService)
void
setTaxonomyRoot(TaxonomyBean taxonomyRoot)
void
setZipStorage(boolean zipStorage)
void
start(boolean async)
-
-
-
Constructor Detail
-
PersistenceThread
public PersistenceThread(Object lockReference)
-
-
Method Detail
-
addFolderToSave
public void addFolderToSave(File file)
-
getDataFolder
public String getDataFolder()
-
getDefaultLg
public String getDefaultLg()
-
getTaxonomyRoot
public TaxonomyBean getTaxonomyRoot()
-
setTaxonomyRoot
public void setTaxonomyRoot(TaxonomyBean taxonomyRoot)
-
getMenuElement
public MenuElement getMenuElement()
-
getMode
public int getMode()
-
getPersistenceService
public PersistenceService getPersistenceService()
-
start
public void start(boolean async)
-
isRunning
public boolean isRunning()
-
setDataFolder
public void setDataFolder(String dataFolder)
-
setDefaultLg
public void setDefaultLg(String defaultLg)
-
setMenuElement
public void setMenuElement(MenuElement menuElement)
-
setMode
public void setMode(int mode)
-
setPersistenceService
public void setPersistenceService(PersistenceService persistenceService)
-
getXMLPersistenceFile
protected File getXMLPersistenceFile(int mode)
-
getContextKey
public String getContextKey()
-
setContextKey
public void setContextKey(String contextKey)
-
getEncryptKey
public String getEncryptKey()
-
setEncryptKey
public void setEncryptKey(String encryptKey)
-
isZipStorage
public boolean isZipStorage()
-
setZipStorage
public void setZipStorage(boolean zipStorage)
-
-