public class WorkspaceStorage extends Object
| Constructor and Description |
|---|
WorkspaceStorage(String rootPath,
ModelMarshaler marshaler) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
entityExists(String entityName,
String relativePath) |
InputStream |
loadBinaryFile(String projectName,
String entityName,
String relativePath) |
<T> T |
loadEntity(String entityName,
String relativePath,
Class<T> entityClass) |
<T> T |
loadEntity(String entityName,
String relativePath,
Type gsonType) |
String |
loadEntityString(String entityName,
String relativePath) |
<T> T |
loadModelFromFile(File file,
Type gsonType) |
<T> T |
loadModelFromFile(String filepath,
Type gsonType) |
<T> T |
loadModelFromXMLFile(File file,
Class<T> modelClass) |
<T> T |
loadModelFromXMLFile(String filepath,
Class<T> modelClass) |
InputStream |
loadStream(String entityName,
String relativePath) |
void |
removeEntity(String entityName,
String relativePath) |
void |
storeBinaryFile(File sourceFile,
String entityName,
String relativePath) |
void |
storeEntity(Object entity,
Class<?> entityClass,
String entityName,
String relativePath) |
void |
storeEntity(Object entity,
String entityName,
String relativePath) |
void |
storeEntityString(String entityString,
String entityName,
String relativePath) |
void |
storeFile(Object item,
Class<?> itemClass,
File file) |
static void |
storeInfo(CallControlInfo info,
String projectName,
WorkspaceStorage workspaceStorage) |
public WorkspaceStorage(String rootPath, ModelMarshaler marshaler)
public <T> T loadEntity(String entityName, String relativePath, Class<T> entityClass) throws StorageException
StorageExceptionpublic <T> T loadEntity(String entityName, String relativePath, Type gsonType) throws StorageException
StorageExceptionpublic InputStream loadStream(String entityName, String relativePath) throws StorageException
StorageExceptionpublic void storeEntity(Object entity, Class<?> entityClass, String entityName, String relativePath) throws StorageException
StorageExceptionpublic void storeEntity(Object entity, String entityName, String relativePath) throws StorageException
StorageExceptionpublic void storeFile(Object item, Class<?> itemClass, File file) throws StorageException
StorageExceptionpublic String loadEntityString(String entityName, String relativePath) throws StorageException
StorageExceptionpublic void storeEntityString(String entityString, String entityName, String relativePath) throws StorageException
StorageExceptionpublic void storeBinaryFile(File sourceFile, String entityName, String relativePath) throws StorageException
StorageExceptionpublic InputStream loadBinaryFile(String projectName, String entityName, String relativePath) throws FileNotFoundException
FileNotFoundExceptionpublic static void storeInfo(CallControlInfo info, String projectName, WorkspaceStorage workspaceStorage) throws StorageException
StorageExceptionpublic <T> T loadModelFromXMLFile(String filepath, Class<T> modelClass) throws StorageException
StorageExceptionpublic <T> T loadModelFromXMLFile(File file, Class<T> modelClass) throws StorageException
StorageExceptionpublic <T> T loadModelFromFile(String filepath, Type gsonType) throws StorageException
StorageExceptionpublic <T> T loadModelFromFile(File file, Type gsonType) throws StorageException
StorageExceptionCopyright © 2016. All Rights Reserved.