public abstract class ImmoToolProject extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ImmoToolProject.Type |
Modifier | Constructor and Description |
---|---|
protected |
ImmoToolProject() |
public static ImmoToolProject create(File projectDir, ImmoToolProject.Type projectType) throws IOException
projectDir
- project directoryprojectName
- project nameprojectType
- type of projectIOException
- IO-errorpublic ImmoToolAgent getAgent()
public File getAgentLogo()
public static ImmoToolProject getAppInstance()
public final Connection getDbConnection() throws SQLException
SQLException
public final Connection getDbConnection(Properties props) throws SQLException
SQLException
public abstract AbstractDbDriver getDbDriver()
public final DbExtension getDbExtension()
public final DbPlugin[] getDbPlugins()
public final String[] getDbPluginNames()
public final File getDirectory()
public final String[] getIncompatiblePlugins()
public final String getName()
public final Properties getProperties()
public final File getTempDirectory()
public abstract ImmoToolProject.Type getType()
public final DbUser getUser()
protected void init() throws IOException
IOException
public final boolean isLocalProject()
public final boolean isPluginEnabled(String pluginId)
public final boolean isPluginIncompatible(String pluginId)
public final boolean isPluginInstalled(String pluginId)
public final boolean isPluginUsable(String pluginId)
public final boolean isRemoteProject()
public static boolean isValidProjectDirectory(File dir)
dir
- Verzeichnispublic void load(Connection c, DbUser user) throws SQLException, IOException
SQLException
IOException
public static String lookupProjectType(Properties props)
public static ImmoToolProject open(File projectDir) throws IOException, ImmoToolException
projectDir
- Projekt-Verzeichnis.IOException
- IO-FehlerImmoToolProjectException
- interner Fehler.ImmoToolException
public static Properties openProjectProperties(File projectDir) throws IOException
IOException
public final void reloadAgent() throws SQLException
SQLException
public final void reloadAgent(Connection c) throws SQLException
SQLException
public final void reloadAgentLogo() throws SQLException, IOException
SQLException
IOException
public final void reloadAgentLogo(Connection c) throws SQLException, IOException
SQLException
IOException
public final void reloadPlugins() throws SQLException
SQLException
public final void reloadPlugins(Connection c) throws SQLException
SQLException
public final void save() throws IOException
IOException
- IO-Fehlerpublic final void saveAgent() throws SQLException
SQLException
public final void saveAgentLogo(BufferedImage image) throws SQLException, IOException
SQLException
IOException
public void setDirectory(File directory)
protected void setProperties(Properties props)
public void unload() throws IOException
IOException
Copyright © 2015 OpenEstate. All rights reserved.