|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SetupManager
Utilities for doing the initital configuration of ginp
Method Summary | |
---|---|
boolean |
configExists(java.net.URL configUrl)
Is there an existing valid config on this machine? |
void |
createConfiguration(java.net.URL configUrl,
java.lang.String configuration)
Create a configuration |
void |
deleteConfiguration(java.net.URL configUrl)
Delete the configuration entry for this host |
java.lang.String |
finalPageTransform(SetupVisit sampleConfig)
Transform the visit for the file page |
java.lang.String |
getCommandLineForSetupVisit(SetupVisit visit)
Generates a command line from a setup visit |
java.util.List |
getDirectoriesInPictureDirectory(SetupVisit sampleConfig)
Find the available directories to configure in the sample configuration |
SetupVisit |
getSetupVisitForCommandLine(java.lang.String[] argv)
Parses a setup visit out of a command line |
void |
setConfiguration(SetupVisit visit)
Write the configuration into the preferences API |
org.dom4j.Document |
testValidConfig(java.io.InputStream stream)
Tests if a configuration passes validation |
java.lang.Boolean |
validConfigLoc(java.lang.String path)
Check if this is a valid location for a config file that means usually is this directory writable |
java.lang.Boolean |
validPicturesLoc(java.lang.String path)
Test for valid picture location. |
boolean |
writeConfig(SetupVisit visit,
org.dom4j.Document stream)
Write a config file to disk |
org.dom4j.Document |
writeConfigFromVisit(SetupVisit visit)
Build and write config file for Ginp from the Tapestry Setup Visit Object |
Method Detail |
---|
boolean configExists(java.net.URL configUrl)
configUrl
- the config to check
void deleteConfiguration(java.net.URL configUrl) throws SetupException
configUrl
- the url that the config is for
SetupException
void createConfiguration(java.net.URL configUrl, java.lang.String configuration) throws SetupException
configUrl
- the url to configure forconfiguration
- the configuration value
SetupException
java.lang.Boolean validConfigLoc(java.lang.String path)
path
- the path
org.dom4j.Document testValidConfig(java.io.InputStream stream) throws SetupException, java.io.IOException
stream
- an input stream containing the file
SetupException
- if there's an error with the document
java.io.IOException
java.lang.Boolean validPicturesLoc(java.lang.String path)
path
- the file system path
org.dom4j.Document writeConfigFromVisit(SetupVisit visit) throws SetupException
visit
- the visit object
SetupException
java.lang.String finalPageTransform(SetupVisit sampleConfig) throws javax.xml.transform.TransformerException, org.dom4j.DocumentException
sampleConfig
- the config file.
org.dom4j.DocumentException
javax.xml.transform.TransformerException
SetupVisit getSetupVisitForCommandLine(java.lang.String[] argv) throws SetupException, org.dom4j.DocumentException, javax.xml.transform.TransformerException
argv
- the command line args
javax.xml.transform.TransformerException
- if problem generating config from sample visit
org.dom4j.DocumentException
- if problem generating config from sample visit
SetupException
- if some exception while initializingjava.lang.String getCommandLineForSetupVisit(SetupVisit visit)
visit
- the setup visit
boolean writeConfig(SetupVisit visit, org.dom4j.Document stream) throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException, java.io.IOException
visit
- the Setup Visit object containing the config file pathstream
- the document to read the data to write from
java.io.IOException
- read/write error
java.io.UnsupportedEncodingException
- read/write error
java.io.FileNotFoundException
- file to write to not foundjava.util.List getDirectoriesInPictureDirectory(SetupVisit sampleConfig)
sampleConfig
- the sample configuration setup object
void setConfiguration(SetupVisit visit) throws java.net.MalformedURLException, SetupException
visit
- the Setup Visit
SetupException
java.net.MalformedURLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |