Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.theme.resources
Class BankManager

java.lang.Object
  extended by org.nuxeo.theme.resources.BankManager

public class BankManager
extends Object


Constructor Summary
BankManager()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BankManager

public BankManager()
Method Detail

getBanksDir

public static File getBanksDir()

getFile

public static File getFile(String path)
                    throws IOException
Throws:
IOException

getBankDir

public static File getBankDir(String bankName)
                       throws IOException
Throws:
IOException

getBankNames

public static List<String> getBankNames()

setupBanks

public static void setupBanks()

setupBankStructure

public static void setupBankStructure(String bankName)
                               throws IOException
Throws:
IOException

getCollections

public static List<String> getCollections(String bank)
                                   throws IOException
Throws:
IOException

getItemsInCollection

public static List<String> getItemsInCollection(String bank,
                                                String collection,
                                                String typeName)
                                         throws IOException
Throws:
IOException

getStyleFile

public static File getStyleFile(String bank,
                                String collection,
                                String resource)
                         throws IOException
Throws:
IOException

getImageFile

public static File getImageFile(String bank,
                                String collection,
                                String resource)
                         throws IOException
Throws:
IOException

getBankLogoFile

public static File getBankLogoFile(String bank)
                            throws IOException
Throws:
IOException

getStylePreviewFile

public static File getStylePreviewFile(String bank,
                                       String collection,
                                       String resource)
                                throws IOException
Throws:
IOException

getInfoFile

public static File getInfoFile(String bank,
                               String collection,
                               String typeName)
                        throws IOException
Throws:
IOException

getInfo

public static Map<String,Object> getInfo(String bank,
                                         String collection,
                                         String typeName)
                                  throws IOException
Throws:
IOException

importBankData

public static void importBankData(String bankName,
                                  String collection,
                                  URL srcFileUrl)
                           throws IOException
Throws:
IOException

exportBankData

public static byte[] exportBankData(String bankName,
                                    String collection)
                             throws IOException
Throws:
IOException

createFolder

public static File createFolder(String path,
                                String folderName)
                         throws IOException
Throws:
IOException

createFile

public static File createFile(String path,
                              String fileName,
                              String content)
                       throws IOException
Throws:
IOException

createFile

public static File createFile(String path,
                              String fileName,
                              byte[] data)
                       throws IOException
Throws:
IOException

editFile

public static void editFile(String path,
                            String fileName,
                            String content)
                     throws IOException
Throws:
IOException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.