com.openindex.openestate.tool
Class ImmoToolProject

java.lang.Object
  extended by com.openindex.openestate.tool.ImmoToolProject

public class ImmoToolProject
extends Object

ImmoTool-Projekt.
$Id: ImmoToolProject.java 1829 2012-10-14 14:24:52Z andy $

Author:
Andreas Rudolph

Field Summary
static int BACKUP_EVERY_1_WEEK
           
static int BACKUP_EVERY_2_WEEKS
           
static int BACKUP_EVERY_DAY
           
static int BACKUP_EVERY_MONTH
           
static int BACKUP_EVERY_PROJECT_CLOSE
           
static int BACKUP_EVERY_PROJECT_START
           
static int BACKUP_NEVER
           
static String KEY_BACKUP_DIR
           
static String KEY_BACKUP_FILECOUNT
           
static String KEY_BACKUP_MODE
           
static String KEY_BACKUP_TIME
           
static String KEY_PLUGINS
           
static String KEY_PROJECT_BETA
           
static String KEY_PROJECT_NAME
           
static String PROJECT_COMPANY_XML
           
static String PROJECT_PROPERTIES
           
 
Method Summary
static ImmoToolProject create(File projectDir, String projectName)
           
 CompanyAdressImpl getAdress()
           
 File getBackupDirectory()
           
 int getBackupFileCount()
           
 int getBackupMode()
           
 long getBackupTime()
           
 File getDirectory()
           
 String getName()
           
 ImmoToolPlugin getPlugin(String name)
           
 Set<String> getPluginNames()
           
 Properties getProperties()
           
 String getProperty(String key)
           
 String getProperty(String key, String defaultValue)
           
 Boolean getPropertyAsBoolean(String key, Boolean defaultValue)
           
 Color getPropertyAsColor(String key, Color defaultValue)
           
 Date getPropertyAsDate(String key, Date defaultValue)
           
 Float getPropertyAsFloat(String key, Float defaultValue)
           
 Integer getPropertyAsInteger(String key, Integer defaultValue)
           
 Long getPropertyAsLong(String key, Long defaultValue)
           
 File getTempDirectory()
           
 boolean isBetaProject()
           
static boolean isValidProjectDirectory(File dir)
           
static ImmoToolProject open(File projectDir)
           
 void registerPlugin(ImmoToolPlugin plugin)
           
 void save()
           
 void setAdress(CompanyAdressImpl a)
           
 void setProperty(String key, Boolean value)
           
 void setProperty(String key, Color value)
           
 void setProperty(String key, Date value)
           
 void setProperty(String key, Number value)
           
 void setProperty(String key, String value)
           
 void unregisterPlugin(ImmoToolPlugin plugin)
           
 void unregisterPlugin(String pluginName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROJECT_COMPANY_XML

public static final String PROJECT_COMPANY_XML
See Also:
Constant Field Values

PROJECT_PROPERTIES

public static final String PROJECT_PROPERTIES
See Also:
Constant Field Values

BACKUP_NEVER

public static final int BACKUP_NEVER
See Also:
Constant Field Values

BACKUP_EVERY_PROJECT_START

public static final int BACKUP_EVERY_PROJECT_START
See Also:
Constant Field Values

BACKUP_EVERY_PROJECT_CLOSE

public static final int BACKUP_EVERY_PROJECT_CLOSE
See Also:
Constant Field Values

BACKUP_EVERY_DAY

public static final int BACKUP_EVERY_DAY
See Also:
Constant Field Values

BACKUP_EVERY_1_WEEK

public static final int BACKUP_EVERY_1_WEEK
See Also:
Constant Field Values

BACKUP_EVERY_2_WEEKS

public static final int BACKUP_EVERY_2_WEEKS
See Also:
Constant Field Values

BACKUP_EVERY_MONTH

public static final int BACKUP_EVERY_MONTH
See Also:
Constant Field Values

KEY_BACKUP_DIR

public static final String KEY_BACKUP_DIR
See Also:
Constant Field Values

KEY_BACKUP_MODE

public static final String KEY_BACKUP_MODE
See Also:
Constant Field Values

KEY_BACKUP_TIME

public static final String KEY_BACKUP_TIME
See Also:
Constant Field Values

KEY_BACKUP_FILECOUNT

public static final String KEY_BACKUP_FILECOUNT
See Also:
Constant Field Values

KEY_PROJECT_BETA

public static final String KEY_PROJECT_BETA
See Also:
Constant Field Values

KEY_PROJECT_NAME

public static final String KEY_PROJECT_NAME
See Also:
Constant Field Values

KEY_PLUGINS

public static final String KEY_PLUGINS
See Also:
Constant Field Values
Method Detail

create

public static ImmoToolProject create(File projectDir,
                                     String projectName)
                              throws IOException
Throws:
IOException

getAdress

public CompanyAdressImpl getAdress()

getBackupDirectory

public File getBackupDirectory()

getBackupFileCount

public int getBackupFileCount()

getBackupMode

public int getBackupMode()

getBackupTime

public long getBackupTime()

getDirectory

public File getDirectory()

getName

public String getName()

getPlugin

public ImmoToolPlugin getPlugin(String name)

getPluginNames

public Set<String> getPluginNames()

getProperty

public String getProperty(String key)

getProperty

public String getProperty(String key,
                          String defaultValue)

getPropertyAsBoolean

public Boolean getPropertyAsBoolean(String key,
                                    Boolean defaultValue)

getPropertyAsColor

public Color getPropertyAsColor(String key,
                                Color defaultValue)

getPropertyAsDate

public Date getPropertyAsDate(String key,
                              Date defaultValue)

getPropertyAsFloat

public Float getPropertyAsFloat(String key,
                                Float defaultValue)

getPropertyAsInteger

public Integer getPropertyAsInteger(String key,
                                    Integer defaultValue)

getPropertyAsLong

public Long getPropertyAsLong(String key,
                              Long defaultValue)

getProperties

public Properties getProperties()

getTempDirectory

public File getTempDirectory()

isBetaProject

public boolean isBetaProject()

isValidProjectDirectory

public static boolean isValidProjectDirectory(File dir)

open

public static ImmoToolProject open(File projectDir)
                            throws IOException,
                                   org.dom4j.DocumentException,
                                   PlugEngineException,
                                   ImmoToolException
Throws:
IOException
org.dom4j.DocumentException
PlugEngineException
ImmoToolException

registerPlugin

public void registerPlugin(ImmoToolPlugin plugin)

save

public void save()
          throws IOException,
                 org.dom4j.DocumentException
Throws:
IOException
org.dom4j.DocumentException

setAdress

public void setAdress(CompanyAdressImpl a)

setProperty

public void setProperty(String key,
                        String value)

setProperty

public void setProperty(String key,
                        Boolean value)

setProperty

public void setProperty(String key,
                        Color value)

setProperty

public void setProperty(String key,
                        Date value)

setProperty

public void setProperty(String key,
                        Number value)

unregisterPlugin

public void unregisterPlugin(ImmoToolPlugin plugin)

unregisterPlugin

public void unregisterPlugin(String pluginName)


Copyright © 2012 OpenEstate. All Rights Reserved.