public class PersistenceManager extends Object
Constructor and Description |
---|
PersistenceManager() |
Modifier and Type | Method and Description |
---|---|
static org.gcube.portlets.d4sreporting.common.shared.Model |
readModel(String pathToModel) |
static boolean |
writeModel(org.gcube.portlets.d4sreporting.common.shared.Model model) |
static boolean |
writeModel(org.gcube.portlets.d4sreporting.common.shared.Model model,
File modelInstanceFile) |
static void |
zipDir(String zipFileName,
String dir) |
public static boolean writeModel(org.gcube.portlets.d4sreporting.common.shared.Model model)
model
- the model to persist on diskpublic static boolean writeModel(org.gcube.portlets.d4sreporting.common.shared.Model model, File modelInstanceFile)
model
- the model to persist on diskfile
- the file where you want the model to be persistedpublic static org.gcube.portlets.d4sreporting.common.shared.Model readModel(String pathToModel)
public static void zipDir(String zipFileName, String dir) throws IOException
zipFileName
- zipFileNamedir
- the dir to compressIOException
Copyright © 2016. All Rights Reserved.