public class PlatformProperties extends Object implements Properties
| Modifier and Type | Method and Description |
|---|---|
static PlatformProperties |
get(Environment env) |
static PlatformProperties |
get(Properties platformConfig) |
File |
getApplicationDir() |
byte[] |
getBlob(String name)
Returns the byte-value of the given
Property. |
Boolean |
getBoolean(String name)
|
Boolean |
getBoolean(String name,
Boolean defaultValue) |
InputStream |
getCacheConfig() |
String |
getClob(String name)
Returns the string-value of the given
Property. |
String |
getClob(String name,
String defaultValue)
Returns the string-value of the given
Property (if existing), or the default-value. |
String |
getDescriptionFor(String name)
Returns the description for the
Property with the given name, if any |
Double |
getDouble(String name)
|
Double |
getDouble(String name,
Double defaultValue)
|
Float |
getFloat(String name)
|
Float |
getFloat(String name,
Float defaultValue)
|
Integer |
getInteger(String name)
|
Integer |
getInteger(String name,
Integer defaultValue)
|
List<String> |
getList(String name,
String delimiter)
|
List<String> |
getList(String name,
String defaultValue,
String delimiter)
|
Properties |
getPlainProperties()
Takes this
Properties and transforms it into some (plain, old, uncool) Properties. |
Properties |
getProperties(String name)
Returns some
Properties parsed from the given Property (if existing). |
Set<String> |
getPropertyNames()
Returns all
Property names. |
File |
getRepositoryRootFolder() |
String |
getString(String name)
Returns the string-value of the given
Property. |
String |
getString(String name,
String defaultValue)
Returns the string-value of the given
Property (if existing), or the default-value. |
File |
getUploadDir() |
boolean |
propertyExists(String name)
Checks whether the
Property with the given name exists. |
public static PlatformProperties get(Environment env)
public static PlatformProperties get(Properties platformConfig)
public List<String> getList(String name, String defaultValue, String delimiter)
PropertiesList of Strings which is parsed from the value of the Property with the given
name (if present) or from the default-value.getList in interface Propertiesname - the name of the PropertydefaultValue - the default-string to parse the list fromdelimiter - the delimiter to split the (default-)value byList, never nullpublic List<String> getList(String name, String delimiter)
Propertiespublic String getString(String name)
PropertiesProperty.getString in interface Propertiesname - the name of the PropertyProperty, or null if no such property exists.public String getString(String name, String defaultValue)
PropertiesProperty (if existing), or the default-value.getString in interface Propertiesname - the name of the PropertydefaultValue - the default-valueProperty (if existing), or the default-valuepublic Boolean getBoolean(String name)
PropertiesgetBoolean in interface Propertiesname - the name of the PropertyBoolean, or null if no such Property exists.public Boolean getBoolean(String name, Boolean defaultValue)
getBoolean in interface Propertiesname - the name of the PropertydefaultValue - the default-valueBoolean, or the default-value if no such Property exists.public Integer getInteger(String name)
PropertiesgetInteger in interface Propertiesname - the name of the PropertyInteger, or null if no such Property exists.public Integer getInteger(String name, Integer defaultValue)
PropertiesgetInteger in interface Propertiesname - the name of the PropertydefaultValue - the default-valueInteger, or the default-value if no such Property exists.public Float getFloat(String name)
PropertiesgetFloat in interface Propertiesname - the name of the PropertyFloat, or null if no such Property exists.public Float getFloat(String name, Float defaultValue)
PropertiesgetFloat in interface Propertiesname - the name of the PropertydefaultValue - the default-valueFloat, or the default-value if no such Property exists.public Double getDouble(String name)
PropertiesgetDouble in interface Propertiesname - the name of the PropertyDouble, or null if no such Property exists.public Double getDouble(String name, Double defaultValue)
PropertiesgetDouble in interface Propertiesname - the name of the PropertydefaultValue - the default-valueDouble, or the default-value if no such Property exists.public String getClob(String name)
PropertiesProperty.getClob in interface Propertiesname - the name of the PropertyProperty, or null if no such Property exists.public String getClob(String name, String defaultValue)
PropertiesProperty (if existing), or the default-value.getClob in interface Propertiesname - the name of the PropertydefaultValue - the default-valueProperty (if existing), or the default-valuepublic byte[] getBlob(String name)
PropertiesProperty.getBlob in interface Propertiesname - the name of the PropertyProperty, or null if no such Property exists.public Set<String> getPropertyNames()
PropertiesProperty names.getPropertyNames in interface PropertiesProperty namespublic boolean propertyExists(String name)
PropertiesProperty with the given name exists.propertyExists in interface Propertiesname - the name of the Propertytrue if the Property exists, false otherwisepublic Properties getPlainProperties()
PropertiesProperties and transforms it into some (plain, old, uncool) Properties.getPlainProperties in interface PropertiesPropertiespublic Properties getProperties(String name)
PropertiesProperties parsed from the given Property (if existing).getProperties in interface Propertiesname - the name of the PropertyProperties, or null if no such Property exists.public String getDescriptionFor(String name)
PropertiesProperty with the given name, if anygetDescriptionFor in interface Propertiesname - the name of the propertypublic InputStream getCacheConfig() throws IOException
IOExceptionpublic File getUploadDir()
public File getApplicationDir()
public File getRepositoryRootFolder()
Copyright © 2011–2021 aiticon GmbH. All rights reserved.