Class Settings
java.lang.Object
com.atlassian.confluence.setup.settings.Settings
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Deprecated.since 6.9.0static final String
Deprecated.since 6.9.0static final String
Deprecated.since 6.9.0static final String
Deprecated.since 6.9.0static final String
Deprecated.since 6.9.0static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Deprecated.since 6.9.0static final String
static final String
Deprecated.since 6.9.0static final String
Deprecated.static final String
Deprecated.since 6.9.0static final String
static final String
static final String
static final String
static final String
Deprecated.since 6.9.0 -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
long
int
Deprecated.since 5.0 because default space homepage content is now fetched from a global templateDeprecated.since 5.0 because default space homepage content is now fetched from a global templateint
int
int
int
Deprecated.since 7.20 usegetMaxThumbnailDimensions()
int
int
int
Deprecated.since 7.0.1, it will be removed by: https://jira.atlassian.com/browse/CONFSRVDEV-10243int
Deprecated.since 5.0 The welcome message is now a system template.Deprecated.since 5.7.boolean
long
boolean
boolean
boolean
boolean
boolean
boolean
Deprecated.since 7.0.1, it will be removed by this ticket: https://jira.atlassian.com/browse/CONFSRVDEV-10243boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
setAddWildcardsToUserAndGroupSearches
(boolean addWildcardsToUserAndGroupSearches) void
setAllowCamelCase
(boolean allowCamelCase) void
setAllowRemoteApi
(boolean allowRemoteApi) void
setAllowRemoteApiAnonymous
(boolean allowRemoteApiAnonymous) void
setAllowThreadedComments
(boolean allowThreadedComments) void
setAllowTrackbacks
(boolean allowTrackbacks) Deprecated.since 7.0.1, it will be removed by this ticket: https://jira.atlassian.com/browse/CONFSRVDEV-10243void
setAlmostSupportPeriodEndMessageOff
(boolean almostSupportPeriodEndMessageOff) void
setAntiXssMode
(boolean antiXssMode) Deprecated.since 5.10, turning off antixss mode is not supportedvoid
setAttachmentDataStore
(String attachmentDataStore) void
setAttachmentMaxSize
(long attachmentMaxSize) void
setAttachmentSecurityLevel
(AttachmentSecurityLevel attachmentSecurityLevel) void
setAuditLogRetentionNumber
(int auditLogRetentionNumber) void
setAuditLogRetentionUnit
(String auditLogRetentionUnit) void
setBackupAttachmentsDaily
(boolean backupAttachmentsDaily) void
setBackupDaily
(boolean backupDaily) Deprecated.since 6.11void
setBackupPath
(String backupPath) void
setBaseUrl
(String baseUrl) void
setBaseUrlAdminMessageOff
(boolean baseUrlAdminMessageOff) void
setCaptchaSettings
(CaptchaSettings captchaSettings) void
setColourSchemesSettings
(ColourSchemesSettings colourSchemesSettings) void
setConfluenceHttpParameters
(ConfluenceHttpParameters confluenceHttpParameters) void
setCustomContactMessage
(String customErrorMessage) void
setCustomHtmlSettings
(CustomHtmlSettings customHtmlSettings) void
setDailyBackupDateFormatPattern
(String dailyBackupDateFormatPattern) void
setDailyBackupFilePrefix
(String dailyBackupFilePrefix) void
setDefaultEncoding
(String defaultEncoding) void
setDefaultPersonalSpaceHomepageContent
(String defaultPersonalSpaceHomepageContent) Deprecated.since 5.0 because default space homepage content is now fetched from a global templatevoid
setDefaultSpaceHomepageContent
(String defaultSpaceHomepageContent) Deprecated.since 5.0 because default space homepage content is now fetched from a global templatevoid
setDefaultSpaceHomepageTitle
(String defaultSpaceHomepageTitle) void
setDefaultTimezoneId
(String defaultTimezoneId) void
setDefaultUsersGroup
(String defaultUsersGroup) void
setDenyPublicSignup
(boolean denyPublicSignup) void
setDisableLogo
(boolean disableLogo) void
setDisplayLinkIcons
(boolean displayLinkIcons) Deprecated.since 4.0void
setDraftSaveInterval
(int draftSaveInterval) void
setEmailAddressVisibility
(String emailAddressVisibility) void
setEmailAdminMessageOff
(boolean emailAdminMessageOff) void
setEnableDidYouMean
(boolean enableDidYouMean) Deprecated.since 5.2 because we don't use did you mean anymorevoid
setEnableJavascriptTop
(boolean enableJavascriptTop) Deprecated.since 5.0.void
setEnableOpenSearch
(boolean enableOpenSearch) void
setEnableQuickNav
(boolean enableQuickNav) void
setEnableSpaceStyles
(boolean enableSpaceStyles) void
setEnableWysiwyg
(boolean enableWysiwyg) Deprecated.since 4.0void
setExternalUserManagement
(boolean externalUserManagement) void
setGlobalDefaultLocale
(String localeString) void
setGzippingResponse
(boolean gzippingResponse) void
setIgnoredAdminTasks
(String ignoredAdminTasks) void
setIndexingLanguage
(String indexingLanguage) void
setLoginManagerSettings
(LoginManagerSettings loginManagerSettings) void
setMaintenanceBannerMessage
(String maintenanceBannerMessage) void
setMaintenanceBannerMessageOn
(boolean maintenanceBannerMessageOn) void
setMaxAttachmentsInUI
(int maxAttachmentsInUI) void
setMaxRssItems
(int maxRssItems) void
setMaxSimultaneousQuickNavRequests
(int maxSimultaneousQuickNavRequests) void
setMaxThumbHeight
(int maxThumbHeight) Deprecated.since 4.0void
setMaxThumbWidth
(int maxThumbWidth) Deprecated.since 4.0void
setNofollowExternalLinks
(boolean nofollowExternalLinks) void
setNumberOfBreadcrumbAncestors
(int numberOfBreadcrumbAncestors) Deprecated.since 4.0void
setPageTimeout
(int pageTimeout) void
setReferrerSettings
(ReferrerSettings referrerSettings) Deprecated.since 7.0.1, it will be removed by: https://jira.atlassian.com/browse/CONFSRVDEV-10243void
setRssTimeout
(int rssTimeout) void
setSenMissingInLicenseMessageOff
(boolean senMissingInLicenseMessageOff) void
setSharedMode
(boolean sharedMode) Deprecated.since 5.1.void
setShowApplicationTitle
(boolean showApplicationTitle) void
setShowContactAdministratorsForm
(boolean showContactAdministratorsForm) void
setShowSystemInfoIn500Page
(boolean showSystemInfoIn500Page) void
setSiteHomePage
(String siteHomePage) void
setSiteTitle
(String siteTitle) void
setSiteWelcomeMessage
(String siteWelcomeMessage) Deprecated.since 5.0 The welcome message is now a system templatevoid
setSupportRequestEmail
(String supportRequestEmail) void
setUseWysiwygByDefault
(boolean useWysiwygByDefault) Deprecated.since 4.0void
setViewSpaceGoesToSpaceSummary
(boolean viewSpaceGoesToSpaceSummary) Deprecated.since 5.0void
setWebdavPassword
(String webdavPassword) Deprecated.since 5.8 - WebDAV attachment storage functionality removedvoid
setWebdavServerUrl
(String webdavServerUrl) Deprecated.since 5.8 - WebDAV attachment storage functionality removedvoid
setWebdavUsername
(String webdavUsername) Deprecated.since 5.8 - WebDAV attachment storage functionality removedvoid
setWebSudoEnabled
(boolean webSudoEnabled) void
setWebSudoTimeout
(long webSudoTimeout) void
setXsrfAddComments
(boolean xsrfAddComments) boolean
static Settings
Instantiate a settings object that will be ignored by the settings manager if you attempt to save it.
-
Field Details
-
DEFAULT_SITE_TITLE
- See Also:
-
FALLBACK_DEFAULT_USERS_GROUP
- See Also:
-
DEFAULT_USERS_GROUP_ENV_VAR_KEY
- See Also:
-
DEFAULT_DEFAULT_ENCODING
- See Also:
-
EMAIL_ADDRESS_PUBLIC
- See Also:
-
EMAIL_ADDRESS_MASKED
- See Also:
-
EMAIL_ADDRESS_PRIVATE
- See Also:
-
EMAIL_FROMNAME_DEFAULT
- See Also:
-
DAILY_BACKUP_DIRECTORY
- See Also:
-
ENGLISH
Deprecated.since 6.9.0- See Also:
-
GERMAN
Deprecated.deprecated since 6.9.0- See Also:
-
RUSSIAN
Deprecated.since 6.9.0- See Also:
-
CJK
Deprecated.since 6.9.0- See Also:
-
CUSTOM_JAPANESE
Deprecated.since 6.9.0- See Also:
-
CHINESE
Deprecated.since 6.9.0- See Also:
-
FRENCH
Deprecated.since 6.9.0- See Also:
-
GREEK
Deprecated.since 6.9.0- See Also:
-
BRAZILIAN
Deprecated.since 6.9.0- See Also:
-
CZECH
Deprecated.since 6.9.0- See Also:
-
LOCALE_ENGLISH
- See Also:
-
LOCALE_GERMAN
- See Also:
-
LOCALE_RUSSIAN
- See Also:
-
LOCALE_JAPANESE
- See Also:
-
-
Constructor Details
-
Settings
public Settings() -
Settings
-
-
Method Details
-
unsavableSettings
Instantiate a settings object that will be ignored by the settings manager if you attempt to save it. This method was introduced to work around CONF-15646 and SHOULD NOT be used for anything else.- Returns:
- a new settings object that cannot be saved
-
getConfluenceHttpParameters
-
setConfluenceHttpParameters
-
isAllowCamelCase
public boolean isAllowCamelCase() -
setAllowCamelCase
public void setAllowCamelCase(boolean allowCamelCase) -
isAllowTrackbacks
Deprecated.since 7.0.1, it will be removed by this ticket: https://jira.atlassian.com/browse/CONFSRVDEV-10243 -
setAllowTrackbacks
Deprecated.since 7.0.1, it will be removed by this ticket: https://jira.atlassian.com/browse/CONFSRVDEV-10243 -
isAllowThreadedComments
public boolean isAllowThreadedComments() -
setAllowThreadedComments
public void setAllowThreadedComments(boolean allowThreadedComments) -
setViewSpaceGoesToSpaceSummary
Deprecated.since 5.0You can no longer go to Space Summary -
isExternalUserManagement
public boolean isExternalUserManagement() -
setExternalUserManagement
public void setExternalUserManagement(boolean externalUserManagement) -
isDenyPublicSignup
public boolean isDenyPublicSignup() -
setDenyPublicSignup
public void setDenyPublicSignup(boolean denyPublicSignup) -
getReferrerSettings
Deprecated.since 7.0.1, it will be removed by: https://jira.atlassian.com/browse/CONFSRVDEV-10243 -
setReferrerSettings
Deprecated.since 7.0.1, it will be removed by: https://jira.atlassian.com/browse/CONFSRVDEV-10243 -
getCaptchaSettings
-
setCaptchaSettings
-
getSiteHomePage
-
setSiteHomePage
-
getSiteWelcomeMessage
Deprecated.since 5.0 The welcome message is now a system template. UseWelcomeMessageService
-
setSiteWelcomeMessage
Deprecated.since 5.0 The welcome message is now a system template -
getCustomContactMessage
-
setCustomContactMessage
-
isShowContactAdministratorsForm
public boolean isShowContactAdministratorsForm() -
setShowContactAdministratorsForm
public void setShowContactAdministratorsForm(boolean showContactAdministratorsForm) -
getEmailAddressVisibility
-
setEmailAddressVisibility
-
areEmailAddressesPrivate
public boolean areEmailAddressesPrivate() -
getAttachmentMaxSize
public long getAttachmentMaxSize() -
setAttachmentMaxSize
public void setAttachmentMaxSize(long attachmentMaxSize) -
getDefaultEncoding
-
setDefaultEncoding
-
getMaxThumbHeight
public int getMaxThumbHeight() -
getMaxThumbWidth
public int getMaxThumbWidth() -
getMaxThumbDimensions
Deprecated.since 7.20 usegetMaxThumbnailDimensions()
-
getMaxThumbnailDimensions
-
isBackupAttachmentsDaily
public boolean isBackupAttachmentsDaily() -
setBackupAttachmentsDaily
public void setBackupAttachmentsDaily(boolean backupAttachmentsDaily) -
getIndexingLanguage
-
setIndexingLanguage
-
getGlobalDefaultLocale
-
setGlobalDefaultLocale
-
isEmailAdminMessageOff
public boolean isEmailAdminMessageOff()- Returns:
- boolean saying whether or not to display reminder for admin to configure email servers
-
setEmailAdminMessageOff
public void setEmailAdminMessageOff(boolean emailAdminMessageOff) -
isBaseUrlAdminMessageOff
public boolean isBaseUrlAdminMessageOff()- Returns:
- boolean saying whether or not to display reminder for admin to configure base url if set to 127.0.0.1 or localhost
-
setBaseUrlAdminMessageOff
public void setBaseUrlAdminMessageOff(boolean baseUrlAdminMessageOff) - Parameters:
baseUrlAdminMessageOff
- boolean saying whether or not display reminder for admin to configure base url if set to 127.0.0.1 or localhost
-
isMaintenanceBannerMessageOn
public boolean isMaintenanceBannerMessageOn()- Returns:
- boolean saying whether or not to display the banner message
- Since:
- 6.8.0
-
setMaintenanceBannerMessageOn
public void setMaintenanceBannerMessageOn(boolean maintenanceBannerMessageOn) - Parameters:
maintenanceBannerMessageOn
- boolean sying whether or not to display the banner message- Since:
- 6.8.0
-
isAlmostSupportPeriodEndMessageOff
public boolean isAlmostSupportPeriodEndMessageOff()- Returns:
- boolean saying whether or not to display reminder for support period expiration
-
setAlmostSupportPeriodEndMessageOff
public void setAlmostSupportPeriodEndMessageOff(boolean almostSupportPeriodEndMessageOff) - Parameters:
almostSupportPeriodEndMessageOff
- saying whether or not to display reminder for support period expiration
-
isAllowRemoteApi
public boolean isAllowRemoteApi() -
setAllowRemoteApi
public void setAllowRemoteApi(boolean allowRemoteApi) -
isAllowRemoteApiAnonymous
public boolean isAllowRemoteApiAnonymous() -
setAllowRemoteApiAnonymous
public void setAllowRemoteApiAnonymous(boolean allowRemoteApiAnonymous) -
getMaxAttachmentsInUI
public int getMaxAttachmentsInUI() -
setMaxAttachmentsInUI
public void setMaxAttachmentsInUI(int maxAttachmentsInUI) -
isGzippingResponse
public boolean isGzippingResponse() -
setGzippingResponse
public void setGzippingResponse(boolean gzippingResponse) -
setNofollowExternalLinks
public void setNofollowExternalLinks(boolean nofollowExternalLinks) -
isNofollowExternalLinks
public boolean isNofollowExternalLinks() -
getDailyBackupFilePrefix
-
setDailyBackupFilePrefix
-
getDailyBackupDateFormatPattern
-
setDailyBackupDateFormatPattern
-
getSiteTitle
-
setSiteTitle
-
setMaxThumbHeight
Deprecated.since 4.0You can no longer edit thumbnail sizes -
setMaxThumbWidth
Deprecated.since 4.0You can no longer edit thumbnail sizes -
setEnableWysiwyg
Deprecated.since 4.0You can no longer disable wysiwyg mode in 4.0 -
setUseWysiwygByDefault
Deprecated.since 4.0You can no longer disable wysiwyg mode in 4.0 -
setNumberOfBreadcrumbAncestors
Deprecated.since 4.0You can no longer conifgure the breadcrumb ancestors in 4.0 -
isDisableLogo
public boolean isDisableLogo() -
setDisableLogo
public void setDisableLogo(boolean disableLogo) -
showApplicationTitle
public boolean showApplicationTitle() -
setShowApplicationTitle
public void setShowApplicationTitle(boolean showApplicationTitle) -
getDraftSaveInterval
public int getDraftSaveInterval() -
setDraftSaveInterval
public void setDraftSaveInterval(int draftSaveInterval) -
getCustomHtmlSettings
-
setCustomHtmlSettings
-
getColourSchemesSettings
-
setColourSchemesSettings
-
getTimeZone
Deprecated.since 5.7. Do not use this method, useTimeZoneManager.getDefaultTimeZone()
- Returns:
- the tenant's default time zone. Each user has a preference for the time zone, but if the preference isn't set, it defaults to this value.
-
getDefaultSpaceHomepageTitle
-
setDefaultSpaceHomepageTitle
-
getDefaultSpaceHomepageContent
Deprecated.since 5.0 because default space homepage content is now fetched from a global template -
setDefaultSpaceHomepageContent
Deprecated.since 5.0 because default space homepage content is now fetched from a global template -
getBaseUrl
-
setBaseUrl
-
getAttachmentDataStore
-
setAttachmentDataStore
-
setWebdavServerUrl
Deprecated.since 5.8 - WebDAV attachment storage functionality removed -
setWebdavUsername
Deprecated.since 5.8 - WebDAV attachment storage functionality removed -
setWebdavPassword
Deprecated.since 5.8 - WebDAV attachment storage functionality removed -
isAntiXssMode
public boolean isAntiXssMode() -
setAntiXssMode
Deprecated.since 5.10, turning off antixss mode is not supported -
getDefaultPersonalSpaceHomepageContent
Deprecated.since 5.0 because default space homepage content is now fetched from a global template -
setDisplayLinkIcons
Deprecated.since 4.0 -
setDefaultPersonalSpaceHomepageContent
@Deprecated public void setDefaultPersonalSpaceHomepageContent(String defaultPersonalSpaceHomepageContent) Deprecated.since 5.0 because default space homepage content is now fetched from a global template -
getSupportRequestEmail
- Returns:
- the default e-mail address that support requests will be sent to.
-
setSupportRequestEmail
- Parameters:
supportRequestEmail
- the default e-mail address that support requests will be sent to.
-
setEnableDidYouMean
Deprecated.since 5.2 because we don't use did you mean anymore -
isEnableSpaceStyles
public boolean isEnableSpaceStyles() -
setEnableSpaceStyles
public void setEnableSpaceStyles(boolean enableSpaceStyles) -
isEnableOpenSearch
public boolean isEnableOpenSearch() -
setEnableOpenSearch
public void setEnableOpenSearch(boolean enableOpenSearch) -
setEnableJavascriptTop
Deprecated.since 5.0. We always serve javascript at the top. -
getMaxRssItems
public int getMaxRssItems() -
setMaxRssItems
public void setMaxRssItems(int maxRssItems) -
getRssTimeout
public int getRssTimeout() -
setRssTimeout
public void setRssTimeout(int rssTimeout) -
getPageTimeout
public int getPageTimeout() -
setPageTimeout
public void setPageTimeout(int pageTimeout) -
isBackupDaily
public boolean isBackupDaily() -
setBackupDaily
Deprecated.since 6.11This option could not be changed via UI, so it should not be used at all- Parameters:
backupDaily
-
-
getBackupPath
-
setBackupPath
-
isAddWildcardsToUserAndGroupSearches
public boolean isAddWildcardsToUserAndGroupSearches() -
setAddWildcardsToUserAndGroupSearches
public void setAddWildcardsToUserAndGroupSearches(boolean addWildcardsToUserAndGroupSearches) -
isSaveable
public boolean isSaveable() -
isSenMissingInLicenseMessageOff
public boolean isSenMissingInLicenseMessageOff() -
setSenMissingInLicenseMessageOff
public void setSenMissingInLicenseMessageOff(boolean senMissingInLicenseMessageOff) -
isShowSystemInfoIn500Page
public boolean isShowSystemInfoIn500Page() -
setShowSystemInfoIn500Page
public void setShowSystemInfoIn500Page(boolean showSystemInfoIn500Page) -
getLoginManagerSettings
-
setLoginManagerSettings
-
isXsrfAddComments
public boolean isXsrfAddComments() -
setXsrfAddComments
public void setXsrfAddComments(boolean xsrfAddComments) -
getWebSudoTimeout
public long getWebSudoTimeout() -
setWebSudoTimeout
public void setWebSudoTimeout(long webSudoTimeout) -
getWebSudoEnabled
public boolean getWebSudoEnabled() -
setWebSudoEnabled
public void setWebSudoEnabled(boolean webSudoEnabled) -
getIgnoredAdminTasks
-
setIgnoredAdminTasks
-
getDefaultTimezoneId
- Since:
- 5.7
-
setDefaultTimezoneId
- Since:
- 5.7
-
getDefaultUsersGroup
-
setDefaultUsersGroup
-
getAttachmentSecurityLevel
-
setAttachmentSecurityLevel
-
getAuditLogRetentionNumber
public int getAuditLogRetentionNumber() -
setAuditLogRetentionNumber
public void setAuditLogRetentionNumber(int auditLogRetentionNumber) -
getAuditLogRetentionUnit
-
setAuditLogRetentionUnit
-
getMaintenanceBannerMessage
- Returns:
- a string representing the maintenance banner message
- Since:
- 6.8.0
-
setMaintenanceBannerMessage
- Parameters:
maintenanceBannerMessage
- the maintenance banner message- Since:
- 6.8.0
-