Class PropertyManagerGeneric
java.lang.Object
com.atlassian.crowd.manager.property.PropertyManagerGeneric
- All Implemented Interfaces:
InternalPropertyManager,PropertyManager
@Transactional
public class PropertyManagerGeneric
extends Object
implements InternalPropertyManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final Stringstatic final Stringstatic final intstatic final Set<LookAndFeelConstants.ImageType> -
Constructor Summary
ConstructorsConstructorDescriptionPropertyManagerGeneric(PropertyDAO propertyDAO, com.atlassian.event.api.EventPublisher eventPublisher) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleangetBoolean(String property, boolean defaultValue) intintintgetIntOrThrowIllegalArgumentException(String property, int defaultValue) getOptionalProperty(String name) getProperty(String name) protected PropertygetPropertyObject(String name) com.atlassian.crowd.manager.rememberme.CrowdSpecificRememberMeSettingsRetrieves remember me configurationlongDeprecated.Retrieves a String that contains a list of proxy servers we trust to correctly set the X-Forwarded-For flag.booleanbooleanbooleanbooleanbooleanbooleanvoidvoidremoveProperty(String name) voidvoidsetAuditLogConfiguration(AuditLogConfiguration newConfiguration) voidsetBaseUrl(URI url) voidsetBuildNumber(Integer buildNumber) voidsetCacheEnabled(boolean enabled) voidsetCookieConfiguration(CookieConfiguration cookieConfiguration) voidsetCurrentLicenseResourceTotal(int total) voidsetDeploymentTitle(String title) voidvoidsetGzipEnabled(boolean gzip) voidsetIncludeIpAddressInValidationFactors(boolean includeIpAddressInValidationFactors) voidsetLookAndFeelConfiguration(LookAndFeelConfiguration lookAndFeelConfiguration, ImageInfo updatedLogoInfo) voidsetNotificationEmail(String notificationEmail) voidsetNotificationEmails(List<String> serverAlertAddresses) Sets notification emails.voidsetPrivateKeyCertificateToSign(long privateKeyCertificatePairId) voidsetProperty(String name, String value) voidsetRememberMeConfiguration(com.atlassian.crowd.manager.rememberme.CrowdSpecificRememberMeSettings configuration) Sets remember me configurationvoidsetSecureCookie(boolean secure) voidsetSessionTime(long time) voidsetSMTPServer(SMTPServer server) voidsetSMTPTemplate(String template) Deprecated.voidsetTrustedProxyServers(String proxyServers) Persists a String containing a list of proxy servers we trust to correctly set the X-Forwarded-For flag.voidsetUseWebAvatars(boolean useWebAvatars) voidsetUsingDatabaseTokenStorage(boolean isUsingDatabaseTokenStorage)
-
Field Details
-
DEFAULT_SCHEDULED_BACKUP_HOUR
public static final int DEFAULT_SCHEDULED_BACKUP_HOUR- See Also:
-
DEFAULT_SCHEDULED_BACKUP_MINUTE
public static final int DEFAULT_SCHEDULED_BACKUP_MINUTE- See Also:
-
SUPPORTED_LOGO_TYPES
-
MAX_LOGO_SIZE_IN_BYTES
public static final int MAX_LOGO_SIZE_IN_BYTES- See Also:
-
LOGO_IMAGE_KEY
- See Also:
-
IMAGE_TOO_LARGE_ERROR_MESSAGE
- See Also:
-
-
Constructor Details
-
PropertyManagerGeneric
public PropertyManagerGeneric(PropertyDAO propertyDAO, com.atlassian.event.api.EventPublisher eventPublisher)
-
-
Method Details
-
getDeploymentTitle
- Specified by:
getDeploymentTitlein interfacePropertyManager- Throws:
PropertyManagerException
-
setDeploymentTitle
- Specified by:
setDeploymentTitlein interfacePropertyManager
-
getDomain
- Specified by:
getDomainin interfacePropertyManager
-
setDomain
- Specified by:
setDomainin interfacePropertyManager
-
isSecureCookie
public boolean isSecureCookie()- Specified by:
isSecureCookiein interfacePropertyManager
-
setSecureCookie
public void setSecureCookie(boolean secure) - Specified by:
setSecureCookiein interfacePropertyManager
-
setCacheEnabled
public void setCacheEnabled(boolean enabled) - Specified by:
setCacheEnabledin interfacePropertyManager
-
isCacheEnabled
public boolean isCacheEnabled()- Specified by:
isCacheEnabledin interfacePropertyManager
-
getSessionTime
public long getSessionTime()- Specified by:
getSessionTimein interfacePropertyManager
-
setSessionTime
public void setSessionTime(long time) - Specified by:
setSessionTimein interfacePropertyManager
-
getSMTPServer
- Specified by:
getSMTPServerin interfacePropertyManager- Throws:
PropertyManagerException
-
setSMTPServer
- Specified by:
setSMTPServerin interfacePropertyManager
-
getDesEncryptionKey
- Specified by:
getDesEncryptionKeyin interfacePropertyManager- Throws:
PropertyManagerException
-
generateDesEncryptionKey
- Specified by:
generateDesEncryptionKeyin interfacePropertyManager- Throws:
PropertyManagerException
-
setSMTPTemplate
Deprecated.- Specified by:
setSMTPTemplatein interfacePropertyManager
-
getSMTPTemplate
Deprecated.- Specified by:
getSMTPTemplatein interfacePropertyManager- Throws:
PropertyManagerException
-
setCurrentLicenseResourceTotal
public void setCurrentLicenseResourceTotal(int total) - Specified by:
setCurrentLicenseResourceTotalin interfacePropertyManager
-
getCurrentLicenseResourceTotal
public int getCurrentLicenseResourceTotal()- Specified by:
getCurrentLicenseResourceTotalin interfacePropertyManager
-
setNotificationEmail
- Specified by:
setNotificationEmailin interfacePropertyManager
-
setNotificationEmails
Description copied from interface:InternalPropertyManagerSets notification emails.- Specified by:
setNotificationEmailsin interfaceInternalPropertyManager- Parameters:
serverAlertAddresses- list of notification emails.
-
getNotificationEmail
- Specified by:
getNotificationEmailin interfacePropertyManager- Throws:
PropertyManagerException
-
getNotificationEmails
- Specified by:
getNotificationEmailsin interfaceInternalPropertyManager- Returns:
- List of notification emails.
- Throws:
PropertyManagerException- property does not exist
-
isGzipEnabled
- Specified by:
isGzipEnabledin interfacePropertyManager- Throws:
PropertyManagerException
-
setGzipEnabled
public void setGzipEnabled(boolean gzip) - Specified by:
setGzipEnabledin interfacePropertyManager
-
getBuildNumber
- Specified by:
getBuildNumberin interfacePropertyManager- Throws:
PropertyManagerException
-
setBuildNumber
- Specified by:
setBuildNumberin interfacePropertyManager
-
getTrustedProxyServers
Retrieves a String that contains a list of proxy servers we trust to correctly set the X-Forwarded-For flag. Internal format of this string is the responsibility ofTrustedProxyManager.- Specified by:
getTrustedProxyServersin interfacePropertyManager- Returns:
- list of proxy servers we trust
- Throws:
PropertyManagerException- If the list of proxy servers could not be found.
-
setTrustedProxyServers
Persists a String containing a list of proxy servers we trust to correctly set the X-Forwarded-For flag. Internal format of this string is the responsibility ofTrustedProxyManager.- Specified by:
setTrustedProxyServersin interfacePropertyManager- Throws:
org.springframework.dao.DataAccessException- If the list of proxy servers could not be saved.
-
setAuditLogConfiguration
- Specified by:
setAuditLogConfigurationin interfacePropertyManager
-
getAuditLogConfiguration
- Specified by:
getAuditLogConfigurationin interfacePropertyManager
-
isUsingDatabaseTokenStorage
public boolean isUsingDatabaseTokenStorage()- Specified by:
isUsingDatabaseTokenStoragein interfacePropertyManager
-
setUsingDatabaseTokenStorage
public void setUsingDatabaseTokenStorage(boolean isUsingDatabaseTokenStorage) - Specified by:
setUsingDatabaseTokenStoragein interfacePropertyManager
-
isIncludeIpAddressInValidationFactors
public boolean isIncludeIpAddressInValidationFactors()- Specified by:
isIncludeIpAddressInValidationFactorsin interfacePropertyManager
-
isUseWebAvatars
public boolean isUseWebAvatars()- Specified by:
isUseWebAvatarsin interfacePropertyManager
-
setUseWebAvatars
public void setUseWebAvatars(boolean useWebAvatars) - Specified by:
setUseWebAvatarsin interfacePropertyManager
-
getCookieConfiguration
- Specified by:
getCookieConfigurationin interfacePropertyManager
-
setCookieConfiguration
- Specified by:
setCookieConfigurationin interfacePropertyManager
-
setIncludeIpAddressInValidationFactors
public void setIncludeIpAddressInValidationFactors(boolean includeIpAddressInValidationFactors) - Specified by:
setIncludeIpAddressInValidationFactorsin interfacePropertyManager
-
setRememberMeConfiguration
public void setRememberMeConfiguration(com.atlassian.crowd.manager.rememberme.CrowdSpecificRememberMeSettings configuration) Description copied from interface:InternalPropertyManagerSets remember me configuration- Specified by:
setRememberMeConfigurationin interfaceInternalPropertyManager- Parameters:
configuration- new configuration
-
getRememberMeConfiguration
public com.atlassian.crowd.manager.rememberme.CrowdSpecificRememberMeSettings getRememberMeConfiguration()Description copied from interface:InternalPropertyManagerRetrieves remember me configuration- Specified by:
getRememberMeConfigurationin interfaceInternalPropertyManager- Returns:
- current configuration
-
removeProperty
- Specified by:
removePropertyin interfacePropertyManager
-
getPropertyObject
- Throws:
ObjectNotFoundException
-
getProperty
- Specified by:
getPropertyin interfacePropertyManager- Throws:
ObjectNotFoundException
-
getOptionalProperty
- Specified by:
getOptionalPropertyin interfacePropertyManager
-
setProperty
- Specified by:
setPropertyin interfacePropertyManager
-
getString
- Specified by:
getStringin interfacePropertyManager
-
getBoolean
- Specified by:
getBooleanin interfacePropertyManager
-
getInt
- Specified by:
getIntin interfacePropertyManager
-
getIntOrThrowIllegalArgumentException
-
setBaseUrl
- Specified by:
setBaseUrlin interfacePropertyManager
-
getBaseUrl
- Specified by:
getBaseUrlin interfacePropertyManager- Throws:
PropertyManagerException
-
getPrivateKeyCertificatePairToSign
- Specified by:
getPrivateKeyCertificatePairToSignin interfacePropertyManager
-
setPrivateKeyCertificateToSign
public void setPrivateKeyCertificateToSign(long privateKeyCertificatePairId) - Specified by:
setPrivateKeyCertificateToSignin interfacePropertyManager
-
getBackupConfiguration
- Specified by:
getBackupConfigurationin interfacePropertyManager
-
saveBackupConfiguration
- Specified by:
saveBackupConfigurationin interfacePropertyManager
-
getLookAndFeelConfiguration
@Nonnull public Optional<LookAndFeelConfiguration> getLookAndFeelConfiguration() throws PropertyManagerException- Specified by:
getLookAndFeelConfigurationin interfacePropertyManager- Throws:
PropertyManagerException
-
setLookAndFeelConfiguration
public void setLookAndFeelConfiguration(LookAndFeelConfiguration lookAndFeelConfiguration, ImageInfo updatedLogoInfo) throws PropertyManagerException - Specified by:
setLookAndFeelConfigurationin interfacePropertyManager- Throws:
PropertyManagerException
-
removeLookAndFeelConfiguration
- Specified by:
removeLookAndFeelConfigurationin interfacePropertyManager- Throws:
PropertyManagerException
-
getLogoImage
- Specified by:
getLogoImagein interfacePropertyManager- Throws:
PropertyManagerException
-