@Transactional public class PropertyManagerGeneric extends Object implements PropertyManager
| Constructor and Description |
|---|
PropertyManagerGeneric(PropertyDAO propertyDAO) |
| Modifier and Type | Method and Description |
|---|---|
void |
generateDesEncryptionKey() |
boolean |
getBoolean(String property,
boolean defaultValue) |
Integer |
getBuildNumber() |
int |
getCurrentLicenseResourceTotal() |
String |
getDeploymentTitle() |
Key |
getDesEncryptionKey() |
String |
getDomain() |
int |
getInt(String property,
int defaultValue) |
String |
getNotificationEmail() |
String |
getProperty(String name) |
protected Property |
getPropertyObject(String name) |
long |
getSessionTime() |
SMTPServer |
getSMTPServer() |
String |
getSMTPTemplate()
Deprecated.
|
String |
getString(String property,
String defaultValue) |
String |
getTrustedProxyServers()
Retrieves a String that contains a list of proxy servers we trust to correctly set the X-Forwarded-For flag.
|
boolean |
isCacheEnabled() |
boolean |
isGzipEnabled() |
boolean |
isIncludeIpAddressInValidationFactors() |
boolean |
isSecureCookie() |
boolean |
isUseWebAvatars() |
boolean |
isUsingDatabaseTokenStorage() |
void |
removeProperty(String name) |
void |
setBuildNumber(Integer buildNumber) |
void |
setCacheEnabled(boolean enabled) |
void |
setCurrentLicenseResourceTotal(int total) |
void |
setDeploymentTitle(String title) |
void |
setDomain(String domain) |
void |
setGzipEnabled(boolean gzip) |
void |
setIncludeIpAddressInValidationFactors(boolean includeIpAddressInValidationFactors) |
void |
setNotificationEmail(String notificationEmail) |
void |
setProperty(String name,
String value) |
void |
setSecureCookie(boolean secure) |
void |
setSessionTime(long time) |
void |
setSMTPServer(SMTPServer server) |
void |
setSMTPTemplate(String template)
Deprecated.
|
void |
setTrustedProxyServers(String proxyServers)
Persists a String containing a list of proxy servers we trust to correctly set the X-Forwarded-For flag.
|
void |
setUseWebAvatars(boolean useWebAvatars) |
void |
setUsingDatabaseTokenStorage(boolean usingMemoryTokenStorage) |
public PropertyManagerGeneric(PropertyDAO propertyDAO)
public String getDeploymentTitle() throws PropertyManagerException
getDeploymentTitle in interface PropertyManagerPropertyManagerExceptionpublic void setDeploymentTitle(String title)
setDeploymentTitle in interface PropertyManagerpublic String getDomain() throws PropertyManagerException
getDomain in interface PropertyManagerPropertyManagerExceptionpublic void setDomain(String domain)
setDomain in interface PropertyManagerpublic boolean isSecureCookie()
isSecureCookie in interface PropertyManagerpublic void setSecureCookie(boolean secure)
setSecureCookie in interface PropertyManagerpublic void setCacheEnabled(boolean enabled)
setCacheEnabled in interface PropertyManagerpublic boolean isCacheEnabled()
isCacheEnabled in interface PropertyManagerpublic long getSessionTime()
getSessionTime in interface PropertyManagerpublic void setSessionTime(long time)
setSessionTime in interface PropertyManagerpublic SMTPServer getSMTPServer() throws PropertyManagerException
getSMTPServer in interface PropertyManagerPropertyManagerExceptionpublic void setSMTPServer(SMTPServer server)
setSMTPServer in interface PropertyManagerpublic Key getDesEncryptionKey() throws PropertyManagerException
getDesEncryptionKey in interface PropertyManagerPropertyManagerExceptionpublic void generateDesEncryptionKey()
throws PropertyManagerException
generateDesEncryptionKey in interface PropertyManagerPropertyManagerException@Deprecated public void setSMTPTemplate(String template)
setSMTPTemplate in interface PropertyManager@Deprecated public String getSMTPTemplate() throws PropertyManagerException
getSMTPTemplate in interface PropertyManagerPropertyManagerExceptionpublic void setCurrentLicenseResourceTotal(int total)
setCurrentLicenseResourceTotal in interface PropertyManagerpublic int getCurrentLicenseResourceTotal()
getCurrentLicenseResourceTotal in interface PropertyManagerpublic void setNotificationEmail(String notificationEmail)
setNotificationEmail in interface PropertyManagerpublic String getNotificationEmail() throws PropertyManagerException
getNotificationEmail in interface PropertyManagerPropertyManagerExceptionpublic boolean isGzipEnabled()
throws PropertyManagerException
isGzipEnabled in interface PropertyManagerPropertyManagerExceptionpublic void setGzipEnabled(boolean gzip)
setGzipEnabled in interface PropertyManagerpublic Integer getBuildNumber() throws PropertyManagerException
getBuildNumber in interface PropertyManagerPropertyManagerExceptionpublic void setBuildNumber(Integer buildNumber)
setBuildNumber in interface PropertyManagerpublic String getTrustedProxyServers() throws PropertyManagerException
manager.proxy.TrustedProxyManagerImpl.getTrustedProxyServers in interface PropertyManagerPropertyManagerException - If the list of proxy servers could not be found.public void setTrustedProxyServers(String proxyServers)
manager.proxy.TrustedProxyManagerImpl.setTrustedProxyServers in interface PropertyManagerorg.springframework.dao.DataAccessException - If the list of proxy servers could not be saved.public boolean isUsingDatabaseTokenStorage()
throws PropertyManagerException
isUsingDatabaseTokenStorage in interface PropertyManagerPropertyManagerExceptionpublic void setUsingDatabaseTokenStorage(boolean usingMemoryTokenStorage)
setUsingDatabaseTokenStorage in interface PropertyManagerpublic boolean isIncludeIpAddressInValidationFactors()
isIncludeIpAddressInValidationFactors in interface PropertyManagerpublic boolean isUseWebAvatars()
isUseWebAvatars in interface PropertyManagerpublic void setUseWebAvatars(boolean useWebAvatars)
setUseWebAvatars in interface PropertyManagerpublic void setIncludeIpAddressInValidationFactors(boolean includeIpAddressInValidationFactors)
setIncludeIpAddressInValidationFactors in interface PropertyManagerpublic void removeProperty(String name)
removeProperty in interface PropertyManagerprotected Property getPropertyObject(String name) throws ObjectNotFoundException
ObjectNotFoundExceptionpublic String getProperty(String name) throws ObjectNotFoundException
getProperty in interface PropertyManagerObjectNotFoundExceptionpublic void setProperty(String name, String value)
setProperty in interface PropertyManagerpublic String getString(String property, String defaultValue)
getString in interface PropertyManagerpublic boolean getBoolean(String property, boolean defaultValue)
getBoolean in interface PropertyManagerpublic int getInt(String property, int defaultValue)
getInt in interface PropertyManagerCopyright © 2018 Atlassian. All rights reserved.