com.openexchange.admin.tools
Class PropertyHandler

java.lang.Object
  extended by com.openexchange.admin.tools.PropertyHandler

public class PropertyHandler
extends Object


Field Summary
static String GROUP_STORAGE
           
static String RESOURCE_STORAGE
           
static String TOOL_STORAGE
           
static String USER_STORAGE
           
 
Constructor Summary
PropertyHandler(Properties sysprops)
           
 
Method Summary
 boolean getGroupProp(String key, boolean fallBack)
           
 String getGroupProp(String key, String fallBack)
           
 String getProp(String key, String fallBack)
          Get String value from Properties-File.
 boolean getResourceProp(String key, boolean fallBack)
           
 String getResourceProp(String key, String fallback)
           
 int getRmiProp(String key, int fallBack)
           
 String getSqlProp(String key, String fallBack)
           
 String getSysProp(String key, String fallBack)
           
 boolean getUserProp(String key, boolean fallBack)
           
 String getUserProp(String key, String fallBack)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GROUP_STORAGE

public static final String GROUP_STORAGE
See Also:
Constant Field Values

RESOURCE_STORAGE

public static final String RESOURCE_STORAGE
See Also:
Constant Field Values

TOOL_STORAGE

public static final String TOOL_STORAGE
See Also:
Constant Field Values

USER_STORAGE

public static final String USER_STORAGE
See Also:
Constant Field Values
Constructor Detail

PropertyHandler

public PropertyHandler(Properties sysprops)
Method Detail

getProp

public String getProp(String key,
                      String fallBack)
Get String value from Properties-File. If not set or not found, use given fallback!

Parameters:
key -
fallBack -
Returns:

getSysProp

public String getSysProp(String key,
                         String fallBack)
Parameters:
key -
fallBack -
Returns:

getGroupProp

public String getGroupProp(String key,
                           String fallBack)

getGroupProp

public boolean getGroupProp(String key,
                            boolean fallBack)
Parameters:
key -
fallBack -
Returns:

getUserProp

public boolean getUserProp(String key,
                           boolean fallBack)
Parameters:
key -
fallBack -
Returns:

getUserProp

public String getUserProp(String key,
                          String fallBack)
Parameters:
key -
fallBack -
Returns:

getResourceProp

public boolean getResourceProp(String key,
                               boolean fallBack)
Parameters:
key -
fallBack -
Returns:

getRmiProp

public int getRmiProp(String key,
                      int fallBack)
Parameters:
key -
fallBack -
Returns:

getResourceProp

public String getResourceProp(String key,
                              String fallback)

getSqlProp

public String getSqlProp(String key,
                         String fallBack)
Parameters:
key -
fallBack -
Returns: