public class BankManager extends Object
Constructor and Description |
---|
BankManager() |
Modifier and Type | Method and Description |
---|---|
static File |
createFile(String path,
String fileName,
byte[] data) |
static File |
createFile(String path,
String fileName,
String content) |
static File |
createFolder(String path,
String folderName) |
static void |
editFile(String path,
String fileName,
String content) |
static byte[] |
exportBankData(String bankName,
String collection) |
static File |
getBankDir(String bankName) |
static File |
getBankLogoFile(String bank) |
static List<String> |
getBankNames() |
static File |
getBanksDir() |
static List<String> |
getCollections(String bank) |
static File |
getFile(String path) |
static File |
getImageFile(String bank,
String collection,
String resource) |
static Map<String,Object> |
getInfo(String bank,
String collection,
String typeName) |
static File |
getInfoFile(String bank,
String collection,
String typeName) |
static List<String> |
getItemsInCollection(String bank,
String collection,
String typeName) |
static File |
getStyleFile(String bank,
String collection,
String resource) |
static File |
getStylePreviewFile(String bank,
String collection,
String resource) |
static void |
importBankData(String bankName,
String collection,
URL srcFileUrl) |
static void |
setupBanks() |
static void |
setupBankStructure(String bankName) |
public static File getBanksDir()
public static File getFile(String path) throws IOException
IOException
public static File getBankDir(String bankName) throws IOException
IOException
public static void setupBanks()
public static void setupBankStructure(String bankName) throws IOException
IOException
public static List<String> getCollections(String bank) throws IOException
IOException
public static List<String> getItemsInCollection(String bank, String collection, String typeName) throws IOException
IOException
public static File getStyleFile(String bank, String collection, String resource) throws IOException
IOException
public static File getImageFile(String bank, String collection, String resource) throws IOException
IOException
public static File getBankLogoFile(String bank) throws IOException
IOException
public static File getStylePreviewFile(String bank, String collection, String resource) throws IOException
IOException
public static File getInfoFile(String bank, String collection, String typeName) throws IOException
IOException
public static Map<String,Object> getInfo(String bank, String collection, String typeName) throws IOException
IOException
public static void importBankData(String bankName, String collection, URL srcFileUrl) throws IOException
IOException
public static byte[] exportBankData(String bankName, String collection) throws IOException
IOException
public static File createFolder(String path, String folderName) throws IOException
IOException
public static File createFile(String path, String fileName, String content) throws IOException
IOException
public static File createFile(String path, String fileName, byte[] data) throws IOException
IOException
public static void editFile(String path, String fileName, String content) throws IOException
IOException
Copyright © 2015 Nuxeo SA. All rights reserved.