com.atlassian.confluence.admin.actions
Class GeneralConfigurationAction

java.lang.Object
  extended by com.opensymphony.xwork.ActionSupport
      extended by com.atlassian.confluence.core.ConfluenceActionSupport
          extended by com.atlassian.confluence.admin.actions.GeneralConfigurationAction
All Implemented Interfaces:
Administrative, WebInterface, com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, com.opensymphony.xwork.TextProvider, com.opensymphony.xwork.Validateable, com.opensymphony.xwork.ValidationAware, java.io.Serializable

public class GeneralConfigurationAction
extends ConfluenceActionSupport
implements Administrative

See Also:
Serialized Form

Field Summary
static int MAXIMUM_MAX_UPLOAD_ATTACHMENTS
           
static int MINIMUM_MAX_UPLOAD_ATTACHMENTS
           
 
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, log, permissionManager, permitted, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager
 
Fields inherited from class com.opensymphony.xwork.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
GeneralConfigurationAction()
           
 
Method Summary
 boolean didYouMeanIndexExists()
           
 java.lang.String doDefault()
          Default webwork action execution method.
 java.lang.String execute()
           
 boolean getAllowCamelCase()
           
 long getAttachmentMaxSize()
           
 int getConnectionTimeout()
           
 java.lang.String getCurrentTime(java.lang.String dateFormatPattern)
           
 java.lang.String getDefaultDateFormatterPattern()
           
 java.lang.String getDefaultDateTimeFormatterPattern()
           
 java.lang.String getDefaultDayFormatterPattern()
           
 java.lang.String getDefaultDecimalNumberFormatterPattern()
           
 java.lang.String getDefaultEncoding()
           
 java.lang.String getDefaultLongNumberFormatterPattern()
           
 java.lang.String getDefaultTimeFormatterPattern()
           
 java.lang.String getDomainName()
           
 int getDraftSaveInterval()
           
 int getDraftSaveIntervalMinutes()
           
 int getDraftSaveIntervalSeconds()
           
 java.lang.String getEmailAddressVisibility()
           
 java.util.List<HTMLPairType> getEmailAddressVisibilityTypes()
           
 boolean getExternalUserManagement()
           
 java.lang.String getIndexingLanguage()
           
 java.util.List<com.atlassian.core.util.PairType> getIndexingLanguages()
           
 int getMaxAttachmentsInUI()
           
 int getMaxRssItems()
           
 int getMaxSimultaneousQuickNavRequests()
           
 int getMaxThumbHeight()
           
 int getMaxThumbWidth()
           
 java.lang.String getNiceAttachmentMaxSize()
           
 java.lang.String getNiceDraftSaveInterval()
           
 int getNumberOfBreadcrumbAncestors()
           
 java.lang.String getRenderedSiteWelcomeMessage()
           
 java.lang.String getSiteHomePage()
           
 java.util.List<com.atlassian.core.util.PairType> getSiteHomePages()
           
 java.lang.String getSiteSupportAddress()
           
 java.lang.String getSiteTitle()
           
 java.lang.String getSiteWelcomeMessage()
           
 int getSocketTimeout()
           
 SpaceManager getSpaceManager()
           
 boolean isAddWildcardsToUserAndGroupSearches()
           
 boolean isAllowCamelCase()
           
 boolean isAllowPublicSignup()
           
 boolean isAllowRemoteApi()
           
 boolean isAllowRemoteApiAnonymous()
           
 boolean isAllowThreadedComments()
           
 boolean isAllowTrackbacks()
           
 boolean isAntiXssMode()
           
 boolean isConnectionsEnabled()
           
 boolean isDisplayLinkIcons()
           
 boolean isEnableDidYouMean()
           
 boolean isEnableJavascriptTop()
           
 boolean isEnableOpenSearch()
           
 boolean isEnableQuickNav()
           
 boolean isEnableSpaceStyles()
           
 boolean isEnableWysiwyg()
           
 boolean isExternalUserManagement()
           
 boolean isGzipResponseEncoding()
           
 boolean isNofollowExternalLinks()
           
 boolean isSystemAdmin()
           
 boolean isUseWysiwygByDefault()
           
 boolean isViewSpaceGoesToSpaceSummary()
           
 void setAddWildcardsToUserAndGroupSearches(boolean addWildcardsToUserAndGroupSearches)
           
 void setAllowCamelCase(boolean allowCamelCase)
           
 void setAllowPublicSignup(boolean allowPublicSignup)
           
 void setAllowRemoteApi(boolean allowRemoteApi)
           
 void setAllowRemoteApiAnonymous(boolean allowRemoteApiAnonymous)
           
 void setAllowThreadedComments(boolean allowThreadedComments)
           
 void setAllowTrackbacks(boolean allowTrackbacks)
           
 void setAntiXssMode(boolean antiXssMode)
           
 void setAttachmentMaxSize(long attachmentMaxSize)
           
 void setConnectionsEnabled(boolean connectionsEnabled)
           
 void setConnectionTimeout(int connectionTimeout)
           
 void setDefaultDateFormatterPattern(java.lang.String defaultDateFormatterPattern)
           
 void setDefaultDateTimeFormatterPattern(java.lang.String defaultDateTimeFormatterPattern)
           
 void setDefaultDayFormatterPattern(java.lang.String defaultDayFormatterPattern)
           
 void setDefaultDecimalNumberFormatterPattern(java.lang.String defaultDecimalNumberFormatterPattern)
           
 void setDefaultEncoding(java.lang.String defaultEncoding)
           
 void setDefaultLongNumberFormatterPattern(java.lang.String defaultLongNumberFormatterPattern)
           
 void setDefaultTimeFormatterPattern(java.lang.String defaultTimeFormatterPattern)
           
 void setDidYouMeanLuceneConnection(com.atlassian.bonnie.ILuceneConnection didYouMeanLuceneConnection)
           
 void setDisplayLinkIcons(boolean displayLinkIcons)
           
 void setDomainName(java.lang.String domainName)
           
 void setDraftSaveIntervalMinutes(int draftSaveIntervalMinutes)
           
 void setDraftSaveIntervalSeconds(int draftSaveIntervalSeconds)
           
 void setEmailAddressVisibility(java.lang.String emailAddressVisibility)
           
 void setEnableDidYouMean(boolean enableDidYouMean)
           
 void setEnableJavascriptTop(boolean enableJavascriptTop)
           
 void setEnableOpenSearch(boolean enableOpenSearch)
           
 void setEnableQuickNav(boolean enableQuickNav)
           
 void setEnableSpaceStyles(boolean enableSpaceStyles)
           
 void setEnableWysiwyg(boolean enableWysiwyg)
           
 void setExternalUserManagement(boolean externalUserManagement)
           
 void setFormatSettingsManager(FormatSettingsManager formatSettingsManager)
           
 void setGzipResponseEncoding(boolean gzipResponseEncoding)
           
 void setIndexingLanguage(java.lang.String indexingLanguage)
           
 void setMaxAttachmentsInUI(int maxAttachmentsInUI)
           
 void setMaxRssItems(int maxRssItems)
           
 void setMaxSimultaneousQuickNavRequests(int maxSimultaneousQuickNavRequests)
           
 void setMaxThumbHeight(int maxThumbHeight)
           
 void setMaxThumbWidth(int maxThumbWidth)
           
 void setNofollowExternalLinks(boolean nofollowExternalLinks)
           
 void setNumberOfBreadcrumbAncestors(int numberOfBreadcrumbAncestors)
           
 void setSiteHomePage(java.lang.String siteHomePage)
           
 void setSiteSupportAddress(java.lang.String siteSupportAddress)
           
 void setSiteTitle(java.lang.String siteTitle)
           
 void setSiteWelcomeMessage(java.lang.String siteWelcomeMessage)
           
 void setSocketTimeout(int socketTimeout)
           
 void setSpaceManager(SpaceManager spaceManager)
           
 void setUseWysiwygByDefault(boolean useWysiwygByDefault)
           
 void setViewSpaceGoesToSpaceSummary(boolean viewSpaceGoesToSpaceSummary)
           
 void setWikiStyleRenderer(com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer)
           
 
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addFieldError, addPermissionTypeTo, addToHistory, formatFriendlyDate, getActionName, getActionName, getBootstrapManager, getCancelResult, getDateFormatter, getDefaultResourceBundle, getEventManager, getFriendlyDateFormatter, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getNiceContentType, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getRandom, getRemoteUser, getSession, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUser, getUserAccessor, getUserFullName, getUserInterfaceState, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPermissionCheck, isPermitted, isPermittedAsString, isPrintableVersion, isSharedMode, isUserStatusPluginEnabled, isUsingHSQL, setBootstrapManager, setCancel, setEventManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setPermissionCheck, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setSettingsManager, setSpacePermissionManager, setUserAccessor, setWebInterfaceManager
 
Methods inherited from class com.opensymphony.xwork.ActionSupport
addActionError, addActionMessage, addFieldError, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MINIMUM_MAX_UPLOAD_ATTACHMENTS

public static final int MINIMUM_MAX_UPLOAD_ATTACHMENTS
See Also:
Constant Field Values

MAXIMUM_MAX_UPLOAD_ATTACHMENTS

public static final int MAXIMUM_MAX_UPLOAD_ATTACHMENTS
See Also:
Constant Field Values
Constructor Detail

GeneralConfigurationAction

public GeneralConfigurationAction()
Method Detail

doDefault

public java.lang.String doDefault()
                           throws java.lang.Exception
Description copied from class: ConfluenceActionSupport
Default webwork action execution method.

Overrides:
doDefault in class ConfluenceActionSupport
Returns:
the action result
Throws:
java.lang.Exception - if something goes wrong

execute

public java.lang.String execute()
                         throws java.lang.Exception
Specified by:
execute in interface com.opensymphony.xwork.Action
Overrides:
execute in class com.opensymphony.xwork.ActionSupport
Throws:
java.lang.Exception

isSystemAdmin

public boolean isSystemAdmin()

getSpaceManager

public SpaceManager getSpaceManager()

setSpaceManager

public void setSpaceManager(SpaceManager spaceManager)

setWikiStyleRenderer

public void setWikiStyleRenderer(com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer)

getSiteHomePages

public java.util.List<com.atlassian.core.util.PairType> getSiteHomePages()

getEmailAddressVisibilityTypes

public java.util.List<HTMLPairType> getEmailAddressVisibilityTypes()

getIndexingLanguages

public java.util.List<com.atlassian.core.util.PairType> getIndexingLanguages()

didYouMeanIndexExists

public boolean didYouMeanIndexExists()

getSiteHomePage

public java.lang.String getSiteHomePage()

setSiteHomePage

public void setSiteHomePage(java.lang.String siteHomePage)

getRenderedSiteWelcomeMessage

public java.lang.String getRenderedSiteWelcomeMessage()

getMaxAttachmentsInUI

public int getMaxAttachmentsInUI()

setMaxAttachmentsInUI

public void setMaxAttachmentsInUI(int maxAttachmentsInUI)

getAttachmentMaxSize

public long getAttachmentMaxSize()

setAttachmentMaxSize

public void setAttachmentMaxSize(long attachmentMaxSize)

getDraftSaveIntervalMinutes

public int getDraftSaveIntervalMinutes()

setDraftSaveIntervalMinutes

public void setDraftSaveIntervalMinutes(int draftSaveIntervalMinutes)

getDraftSaveIntervalSeconds

public int getDraftSaveIntervalSeconds()

setDraftSaveIntervalSeconds

public void setDraftSaveIntervalSeconds(int draftSaveIntervalSeconds)

getSiteWelcomeMessage

public java.lang.String getSiteWelcomeMessage()

setSiteWelcomeMessage

public void setSiteWelcomeMessage(java.lang.String siteWelcomeMessage)

getCurrentTime

public java.lang.String getCurrentTime(java.lang.String dateFormatPattern)

getAllowCamelCase

public boolean getAllowCamelCase()

isAllowCamelCase

public boolean isAllowCamelCase()

setAllowCamelCase

public void setAllowCamelCase(boolean allowCamelCase)

isAllowTrackbacks

public boolean isAllowTrackbacks()

setAllowTrackbacks

public void setAllowTrackbacks(boolean allowTrackbacks)

isAllowPublicSignup

public boolean isAllowPublicSignup()

setAllowPublicSignup

public void setAllowPublicSignup(boolean allowPublicSignup)

isViewSpaceGoesToSpaceSummary

public boolean isViewSpaceGoesToSpaceSummary()

setViewSpaceGoesToSpaceSummary

public void setViewSpaceGoesToSpaceSummary(boolean viewSpaceGoesToSpaceSummary)

getExternalUserManagement

public boolean getExternalUserManagement()

isExternalUserManagement

public boolean isExternalUserManagement()

setExternalUserManagement

public void setExternalUserManagement(boolean externalUserManagement)

getDefaultEncoding

public java.lang.String getDefaultEncoding()

setDefaultEncoding

public void setDefaultEncoding(java.lang.String defaultEncoding)

getDefaultTimeFormatterPattern

public java.lang.String getDefaultTimeFormatterPattern()

setDefaultTimeFormatterPattern

public void setDefaultTimeFormatterPattern(java.lang.String defaultTimeFormatterPattern)

getDefaultDateTimeFormatterPattern

public java.lang.String getDefaultDateTimeFormatterPattern()

setDefaultDateTimeFormatterPattern

public void setDefaultDateTimeFormatterPattern(java.lang.String defaultDateTimeFormatterPattern)

getDefaultDateFormatterPattern

public java.lang.String getDefaultDateFormatterPattern()

setDefaultDateFormatterPattern

public void setDefaultDateFormatterPattern(java.lang.String defaultDateFormatterPattern)

getDefaultLongNumberFormatterPattern

public java.lang.String getDefaultLongNumberFormatterPattern()

setDefaultLongNumberFormatterPattern

public void setDefaultLongNumberFormatterPattern(java.lang.String defaultLongNumberFormatterPattern)

getDefaultDecimalNumberFormatterPattern

public java.lang.String getDefaultDecimalNumberFormatterPattern()

setDefaultDecimalNumberFormatterPattern

public void setDefaultDecimalNumberFormatterPattern(java.lang.String defaultDecimalNumberFormatterPattern)

getEmailAddressVisibility

public java.lang.String getEmailAddressVisibility()

setEmailAddressVisibility

public void setEmailAddressVisibility(java.lang.String emailAddressVisibility)

getNiceAttachmentMaxSize

public java.lang.String getNiceAttachmentMaxSize()

getNiceDraftSaveInterval

public java.lang.String getNiceDraftSaveInterval()

isAllowThreadedComments

public boolean isAllowThreadedComments()

setAllowThreadedComments

public void setAllowThreadedComments(boolean allowThreadedComments)

getMaxThumbHeight

public int getMaxThumbHeight()

setMaxThumbHeight

public void setMaxThumbHeight(int maxThumbHeight)

getMaxThumbWidth

public int getMaxThumbWidth()

setMaxThumbWidth

public void setMaxThumbWidth(int maxThumbWidth)

getIndexingLanguage

public java.lang.String getIndexingLanguage()

setIndexingLanguage

public void setIndexingLanguage(java.lang.String indexingLanguage)

isAllowRemoteApi

public boolean isAllowRemoteApi()

setAllowRemoteApi

public void setAllowRemoteApi(boolean allowRemoteApi)

isAllowRemoteApiAnonymous

public boolean isAllowRemoteApiAnonymous()

setAllowRemoteApiAnonymous

public void setAllowRemoteApiAnonymous(boolean allowRemoteApiAnonymous)

getDomainName

public java.lang.String getDomainName()

setDomainName

public void setDomainName(java.lang.String domainName)

isNofollowExternalLinks

public boolean isNofollowExternalLinks()

setNofollowExternalLinks

public void setNofollowExternalLinks(boolean nofollowExternalLinks)

getSiteTitle

public java.lang.String getSiteTitle()

setSiteTitle

public void setSiteTitle(java.lang.String siteTitle)

isEnableWysiwyg

public boolean isEnableWysiwyg()

isUseWysiwygByDefault

public boolean isUseWysiwygByDefault()

setEnableWysiwyg

public void setEnableWysiwyg(boolean enableWysiwyg)

setUseWysiwygByDefault

public void setUseWysiwygByDefault(boolean useWysiwygByDefault)

getNumberOfBreadcrumbAncestors

public int getNumberOfBreadcrumbAncestors()

setNumberOfBreadcrumbAncestors

public void setNumberOfBreadcrumbAncestors(int numberOfBreadcrumbAncestors)

getDraftSaveInterval

public int getDraftSaveInterval()
Returns:
in milliseconds

isGzipResponseEncoding

public boolean isGzipResponseEncoding()

setGzipResponseEncoding

public void setGzipResponseEncoding(boolean gzipResponseEncoding)

setFormatSettingsManager

public void setFormatSettingsManager(FormatSettingsManager formatSettingsManager)
Overrides:
setFormatSettingsManager in class ConfluenceActionSupport

isDisplayLinkIcons

public boolean isDisplayLinkIcons()

setDisplayLinkIcons

public void setDisplayLinkIcons(boolean displayLinkIcons)

getDefaultDayFormatterPattern

public java.lang.String getDefaultDayFormatterPattern()

setDefaultDayFormatterPattern

public void setDefaultDayFormatterPattern(java.lang.String defaultDayFormatterPattern)

getSiteSupportAddress

public java.lang.String getSiteSupportAddress()

setSiteSupportAddress

public void setSiteSupportAddress(java.lang.String siteSupportAddress)

setSocketTimeout

public void setSocketTimeout(int socketTimeout)

setConnectionTimeout

public void setConnectionTimeout(int connectionTimeout)

getSocketTimeout

public int getSocketTimeout()

getConnectionTimeout

public int getConnectionTimeout()

isConnectionsEnabled

public boolean isConnectionsEnabled()

setConnectionsEnabled

public void setConnectionsEnabled(boolean connectionsEnabled)

isAntiXssMode

public boolean isAntiXssMode()

setAntiXssMode

public void setAntiXssMode(boolean antiXssMode)

isEnableDidYouMean

public boolean isEnableDidYouMean()

setEnableDidYouMean

public void setEnableDidYouMean(boolean enableDidYouMean)

isEnableSpaceStyles

public boolean isEnableSpaceStyles()

setEnableSpaceStyles

public void setEnableSpaceStyles(boolean enableSpaceStyles)

isEnableQuickNav

public boolean isEnableQuickNav()

setEnableQuickNav

public void setEnableQuickNav(boolean enableQuickNav)

getMaxSimultaneousQuickNavRequests

public int getMaxSimultaneousQuickNavRequests()

setMaxSimultaneousQuickNavRequests

public void setMaxSimultaneousQuickNavRequests(int maxSimultaneousQuickNavRequests)

isEnableOpenSearch

public boolean isEnableOpenSearch()

setEnableOpenSearch

public void setEnableOpenSearch(boolean enableOpenSearch)

isEnableJavascriptTop

public boolean isEnableJavascriptTop()

setEnableJavascriptTop

public void setEnableJavascriptTop(boolean enableJavascriptTop)

getMaxRssItems

public int getMaxRssItems()

setMaxRssItems

public void setMaxRssItems(int maxRssItems)

setDidYouMeanLuceneConnection

public void setDidYouMeanLuceneConnection(com.atlassian.bonnie.ILuceneConnection didYouMeanLuceneConnection)

isAddWildcardsToUserAndGroupSearches

public boolean isAddWildcardsToUserAndGroupSearches()

setAddWildcardsToUserAndGroupSearches

public void setAddWildcardsToUserAndGroupSearches(boolean addWildcardsToUserAndGroupSearches)


Copyright © 2003-2010 Atlassian. All Rights Reserved.