public interface PropertyManager
Modifier and Type | Method and Description |
---|---|
void |
generateDesEncryptionKey()
Generates and stores a DES key for DES encoded passwords.
|
AuditLogConfiguration |
getAuditLogConfiguration()
Retrieves the audit log configuration
|
BackupConfiguration |
getBackupConfiguration() |
URI |
getBaseUrl() |
boolean |
getBoolean(String property,
boolean defaultValue)
Gets a boolean property.
|
Integer |
getBuildNumber()
This method returns the current build number for Crowd from the datastore.
|
CookieConfiguration |
getCookieConfiguration() |
int |
getCurrentLicenseResourceTotal() |
String |
getDeploymentTitle() |
Key |
getDesEncryptionKey() |
String |
getDomain()
Deprecated.
Use
getCookieConfiguration() instead. Since v3.0. |
int |
getInt(String property,
int defaultValue)
Gets an integer property.
|
Optional<ImageInfo> |
getLogoImage() |
Optional<LookAndFeelConfiguration> |
getLookAndFeelConfiguration() |
String |
getNotificationEmail()
Deprecated.
As of release 3.3, use
MailConfigurationService.getMailConfiguration() |
Optional<String> |
getOptionalProperty(String name)
Retrieves an arbitrary property by name.
|
Optional<Long> |
getPrivateKeyCertificatePairToSign() |
String |
getProperty(String name)
Retrieves an arbitrary property by name.
|
long |
getSessionTime() |
SMTPServer |
getSMTPServer()
Deprecated.
As of release 3.3.0, use
com.atlassian.crowd.manager.mail.MailConfigurationService#getConfiguration() |
String |
getSMTPTemplate()
Deprecated.
As of release 2.1, use
getProperty(String) |
String |
getString(String property,
String defaultValue)
Gets a string property.
|
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()
Deprecated.
this is no longer configurable in Crowd and always returns
true |
boolean |
isIncludeIpAddressInValidationFactors()
Should the client IP address be included as a validation factor?
|
boolean |
isSecureCookie()
Deprecated.
Use
setCookieConfiguration(CookieConfiguration) instead. Since v3.0. |
boolean |
isUseWebAvatars()
Should public services be used for user avatars?
|
boolean |
isUsingDatabaseTokenStorage()
Will return true if the Crowd instance is using database token storage for authentication
Token 's
otherwise assume we are using in-memory |
void |
removeLookAndFeelConfiguration()
Removes Look and Feel configuration
|
void |
removeProperty(String name)
Will attempt to remove a property from the datastore
|
void |
saveBackupConfiguration(BackupConfiguration config)
Saves backup configuration
|
void |
setAuditLogConfiguration(AuditLogConfiguration auditLogConfiguration)
Persists the audit log configuration
|
void |
setBaseUrl(URI url)
Sets the base URL for this Crowd application instance
|
void |
setBuildNumber(Integer buildNumber)
Will set the buildNumber for the current release of Crowd.
|
void |
setCacheEnabled(boolean enabled) |
void |
setCookieConfiguration(CookieConfiguration cookieConfiguration)
Updates the configuration of Crowd's cookie-based SSO
|
void |
setCurrentLicenseResourceTotal(int total) |
void |
setDeploymentTitle(String title) |
void |
setDomain(String domain)
Deprecated.
Use
setCookieConfiguration(CookieConfiguration) instead. Since v3.0. |
void |
setGzipEnabled(boolean gzip)
Deprecated.
this is no longer configurable in Crowd and this method has no effect.
|
void |
setIncludeIpAddressInValidationFactors(boolean includeIpAddressInValidationFactors) |
void |
setLookAndFeelConfiguration(LookAndFeelConfiguration lookAndFeelConfiguration,
ImageInfo updatedLogoInfo)
Sets Look and Feel configuration
|
void |
setNotificationEmail(String notificationEmail)
Deprecated.
As of release 3.3, use
com.atlassian.crowd.manager.mail.MailConfigurationService#saveConfiguration() |
void |
setPrivateKeyCertificateToSign(long privateKeyCertificatePairId)
Sets ID of private key/certificate pair used to sign assertions in SAML
|
void |
setProperty(String name,
String value)
Sets an arbitrary property.
|
void |
setSecureCookie(boolean secure)
Deprecated.
Use
setCookieConfiguration(CookieConfiguration) instead. Since v3.0. |
void |
setSessionTime(long time) |
void |
setSMTPServer(SMTPServer server)
Deprecated.
As of release 3.3.0, use
com.atlassian.crowd.manager.mail.MailConfigurationService#saveConfiguration() |
void |
setSMTPTemplate(String template)
Deprecated.
As of release 2.1, use
setProperty(String, String) |
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 usingDatabaseTokenStorage)
Will set a property to state that this crowd instance is using database token storage, otherwise assume we are using in-memory
|
String getDeploymentTitle() throws PropertyManagerException
PropertyManagerException
- property does not exist.void setDeploymentTitle(String title)
title
- deployment title.@Deprecated String getDomain()
getCookieConfiguration()
instead. Since v3.0.@Deprecated void setDomain(String domain)
setCookieConfiguration(CookieConfiguration)
instead. Since v3.0.domain
- SSO cookie domain.@Deprecated boolean isSecureCookie()
setCookieConfiguration(CookieConfiguration)
instead. Since v3.0.true
if the "secure" flag should be set on the SSO cookie.@Deprecated void setSecureCookie(boolean secure)
setCookieConfiguration(CookieConfiguration)
instead. Since v3.0.secure
- true
if the "secure" flag should be set on the SSO cookie.void setCacheEnabled(boolean enabled)
enabled
- true
if application authorisation caching should be used on the server-side.boolean isCacheEnabled()
true
if application authorisation caching is used on the server-side.long getSessionTime()
void setSessionTime(long time)
time
- number of minutes the session is valid.@Deprecated SMTPServer getSMTPServer() throws PropertyManagerException
com.atlassian.crowd.manager.mail.MailConfigurationService#getConfiguration()
PropertyManagerException
- property does not exist.@Deprecated void setSMTPServer(SMTPServer server)
com.atlassian.crowd.manager.mail.MailConfigurationService#saveConfiguration()
server
- SMTP server config.Key getDesEncryptionKey() throws PropertyManagerException
PropertyManagerException
- property does not exist.void generateDesEncryptionKey() throws PropertyManagerException
PropertyManagerException
- DES algorithm does not exist.@Deprecated void setSMTPTemplate(String template)
setProperty(String, String)
template
- mail template.@Deprecated String getSMTPTemplate() throws PropertyManagerException
getProperty(String)
PropertyManagerException
- property does not exist.void setCurrentLicenseResourceTotal(int total)
total
- license resource total.int getCurrentLicenseResourceTotal()
@Deprecated void setNotificationEmail(String notificationEmail)
com.atlassian.crowd.manager.mail.MailConfigurationService#saveConfiguration()
notificationEmail
- notification email.@Deprecated String getNotificationEmail() throws PropertyManagerException
MailConfigurationService.getMailConfiguration()
PropertyManagerException
- property does not exist@Deprecated boolean isGzipEnabled() throws PropertyManagerException
true
true
if GZip compression should be used.PropertyManagerException
- property does not exist.@Deprecated void setGzipEnabled(boolean gzip)
gzip
- true
if GZip compression should be used.Integer getBuildNumber() throws PropertyManagerException
BuildUtils.BUILD_NUMBER
since this number is for the
current release of Crowd, while the number in the database may still be set to a previous version if the UpgradeManager
has not been run.PropertyManagerException
- if we fail to find the buildNumbervoid setBuildNumber(Integer buildNumber)
buildNumber
- the buildNumber to set in the databaseString getTrustedProxyServers() throws PropertyManagerException
PropertyManagerException
- If the list of proxy servers could not be found.void setTrustedProxyServers(String proxyServers)
proxyServers
- proxy servers.void setAuditLogConfiguration(AuditLogConfiguration auditLogConfiguration)
auditLogConfiguration
- new configurationAuditLogConfiguration getAuditLogConfiguration()
boolean isUsingDatabaseTokenStorage() throws PropertyManagerException
Token
's
otherwise assume we are using in-memoryPropertyManagerException
- property does not exist.void setUsingDatabaseTokenStorage(boolean usingDatabaseTokenStorage)
usingDatabaseTokenStorage
- true if you are switching to in-memory token storagevoid removeProperty(String name)
name
- the name of the property.String getProperty(String name) throws ObjectNotFoundException
name
- name of property.ObjectNotFoundException
- property does not exist.Optional<String> getOptionalProperty(String name)
name
- name of property.void setProperty(String name, String value)
name
- name of property.value
- value.boolean isIncludeIpAddressInValidationFactors()
void setIncludeIpAddressInValidationFactors(boolean includeIpAddressInValidationFactors)
boolean isUseWebAvatars()
void setUseWebAvatars(boolean useWebAvatars)
CookieConfiguration getCookieConfiguration()
void setCookieConfiguration(CookieConfiguration cookieConfiguration)
cookieConfiguration
- the configuration to set, will replace the existing configurationString getString(String property, String defaultValue)
property
- a property namedefaultValue
- the default value to use if the property does not existboolean getBoolean(String property, boolean defaultValue)
property
- a property namedefaultValue
- the default value to use if the property does not existint getInt(String property, int defaultValue)
property
- a property namedefaultValue
- the default value to use if the property does not exist or is invalidvoid setBaseUrl(URI url)
url
- the base url to set, should be a proper absolute URLURI getBaseUrl() throws PropertyManagerException
PropertyManagerException
- if the property is not configured correctlyApplicationProperties.getBaseUrl(com.atlassian.sal.api.UrlMode)
Optional<Long> getPrivateKeyCertificatePairToSign()
void setPrivateKeyCertificateToSign(long privateKeyCertificatePairId)
privateKeyCertificatePairId
- ID of private key/certificate pair to saveBackupConfiguration getBackupConfiguration()
void saveBackupConfiguration(BackupConfiguration config)
config
- configuration of backup to savevoid setLookAndFeelConfiguration(LookAndFeelConfiguration lookAndFeelConfiguration, ImageInfo updatedLogoInfo) throws PropertyManagerException
lookAndFeelConfiguration
- look and feel configurationupdatedLogoInfo
- information about custom logo. If custom logo was already set
and new value is not null then old logo will be overridden by new one.PropertyManagerException
- if there was an error while saving configurationOptional<LookAndFeelConfiguration> getLookAndFeelConfiguration() throws PropertyManagerException
PropertyManagerException
- if there was an error while fetching configurationvoid removeLookAndFeelConfiguration() throws PropertyManagerException
PropertyManagerException
- if there was an error while removing configurationOptional<ImageInfo> getLogoImage() throws PropertyManagerException
PropertyManagerException
- if there was an error while fetching a logoCopyright © 2021 Atlassian. All rights reserved.