org.outerj.daisy.install
Class InstallHelper

java.lang.Object
  extended byorg.outerj.daisy.install.InstallHelper

public class InstallHelper
extends java.lang.Object


Nested Class Summary
static class InstallHelper.DatabaseInfo
           
static class InstallHelper.DatabaseParams
           
 
Constructor Summary
InstallHelper()
           
 
Method Summary
static void backupFile(java.io.File file)
           
static void checkDatabaseVersion(InstallHelper.DatabaseParams dbParams)
           
static InstallHelper.DatabaseInfo chooseDatabase()
           
static InstallHelper.DatabaseParams collectDatabaseParams(InstallHelper.DatabaseInfo dbInfo, java.lang.String user, java.lang.String password, java.lang.String dbName)
           
static void copyFile(java.io.File source, java.io.File destination)
           
static java.lang.String generatePassword()
           
static java.io.File getDaisyHome()
           
static java.lang.String getRepoLocation()
           
static boolean isDistroDirectory(java.io.File daisyHome)
           
static java.util.Properties loadDistroProperties(java.io.File daisyHome)
           
static org.w3c.dom.Document parseFile(java.io.File file)
           
static void printTitle(java.lang.String title)
           
static java.lang.String prompt(java.lang.String message)
           
static java.lang.String prompt(java.lang.String message, java.lang.String defaultInput)
           
static org.outerj.daisy.repository.Repository promptRepository()
           
static boolean promptYesNo(java.lang.String message, boolean defaultInput)
           
static void saveDocument(java.io.File file, org.w3c.dom.Document document)
           
static void setElementValue(org.w3c.dom.Element element, java.lang.String value)
           
static void storeDistroProperties(java.util.Properties properties, java.io.File daisyHome)
           
static java.lang.String toHexString(byte[] b)
           
static void waitPrompt()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstallHelper

public InstallHelper()
Method Detail

chooseDatabase

public static InstallHelper.DatabaseInfo chooseDatabase()
                                                 throws java.lang.Exception
Throws:
java.lang.Exception

collectDatabaseParams

public static InstallHelper.DatabaseParams collectDatabaseParams(InstallHelper.DatabaseInfo dbInfo,
                                                                 java.lang.String user,
                                                                 java.lang.String password,
                                                                 java.lang.String dbName)
                                                          throws java.lang.Exception
Throws:
java.lang.Exception

checkDatabaseVersion

public static void checkDatabaseVersion(InstallHelper.DatabaseParams dbParams)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

getRepoLocation

public static java.lang.String getRepoLocation()

getDaisyHome

public static java.io.File getDaisyHome()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

isDistroDirectory

public static boolean isDistroDirectory(java.io.File daisyHome)

prompt

public static java.lang.String prompt(java.lang.String message)
                               throws java.lang.Exception
Throws:
java.lang.Exception

prompt

public static java.lang.String prompt(java.lang.String message,
                                      java.lang.String defaultInput)
                               throws java.lang.Exception
Throws:
java.lang.Exception

promptYesNo

public static boolean promptYesNo(java.lang.String message,
                                  boolean defaultInput)
                           throws java.lang.Exception
Throws:
java.lang.Exception

waitPrompt

public static void waitPrompt()
                       throws java.lang.Exception
Throws:
java.lang.Exception

printTitle

public static void printTitle(java.lang.String title)

generatePassword

public static java.lang.String generatePassword()
                                         throws java.lang.Exception
Throws:
java.lang.Exception

toHexString

public static java.lang.String toHexString(byte[] b)

loadDistroProperties

public static java.util.Properties loadDistroProperties(java.io.File daisyHome)
                                                 throws java.lang.Exception
Throws:
java.lang.Exception

storeDistroProperties

public static void storeDistroProperties(java.util.Properties properties,
                                         java.io.File daisyHome)
                                  throws java.lang.Exception
Throws:
java.lang.Exception

copyFile

public static void copyFile(java.io.File source,
                            java.io.File destination)
                     throws java.lang.Exception
Throws:
java.lang.Exception

promptRepository

public static org.outerj.daisy.repository.Repository promptRepository()
                                                               throws java.lang.Exception
Throws:
java.lang.Exception

backupFile

public static void backupFile(java.io.File file)
                       throws java.lang.Exception
Throws:
java.lang.Exception

parseFile

public static org.w3c.dom.Document parseFile(java.io.File file)
                                      throws java.lang.Exception
Throws:
java.lang.Exception

saveDocument

public static void saveDocument(java.io.File file,
                                org.w3c.dom.Document document)
                         throws java.lang.Exception
Throws:
java.lang.Exception

setElementValue

public static void setElementValue(org.w3c.dom.Element element,
                                   java.lang.String value)


Copyright © -2005 . All Rights Reserved.