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:
FormAware, WebInterface, MessageHolderAware, com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, com.opensymphony.xwork.TextProvider, com.opensymphony.xwork.Validateable, com.opensymphony.xwork.ValidationAware, Serializable

public class GeneralConfigurationAction
extends ConfluenceActionSupport
implements FormAware

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, messageHolder, 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()
           
 String doDefault()
          Default webwork action execution method.
 String doView()
           
 String execute()
           
 boolean getAllowCamelCase()
           
 long getAttachmentMaxSize()
           
 int getConnectionTimeout()
           
 String getCurrentTime(String dateFormatPattern)
           
 String getCustomContactAdminMessage()
           
 String getDefaultDateFormatterPattern()
           
 String getDefaultDateTimeFormatterPattern()
           
 String getDefaultDecimalNumberFormatterPattern()
           
 String getDefaultEncoding()
           
 String getDefaultLongNumberFormatterPattern()
           
 String getDefaultTimeFormatterPattern()
           
 String getDomainName()
           
 int getDraftSaveInterval()
           
 int getDraftSaveIntervalMinutes()
           
 int getDraftSaveIntervalSeconds()
           
 String getIndexingLanguage()
           
 List<com.atlassian.core.util.PairType> getIndexingLanguages()
           
 int getMaxAttachmentsInUI()
           
 int getMaxSimultaneousQuickNavRequests()
           
 int getMaxThumbHeight()
           
 int getMaxThumbWidth()
           
 String getNiceAttachmentMaxSize()
           
 String getNiceDraftSaveInterval()
           
 String getRenderedCustomErrorMessage()
           
 String getSiteHomePage()
           
 List<com.atlassian.core.util.PairType> getSiteHomePages()
           
 String getSiteSupportAddress()
           
 String getSiteTitle()
           
 int getSocketTimeout()
           
 SpaceManager getSpaceManager()
           
 boolean isAllowCamelCase()
           
 boolean isAllowRemoteApi()
           
 boolean isAllowThreadedComments()
           
 boolean isAllowTrackbacks()
           
 boolean isConnectionsEnabled()
           
 boolean isDisplayLinkIcons()
          Deprecated. since 4.0
 boolean isEditMode()
           
 boolean isEnableDidYouMean()
           
 boolean isEnableOpenSearch()
           
 boolean isEnableQuickNav()
           
 boolean isGzipResponseEncoding()
           
 boolean isPermitted()
           
 boolean isShowContactAdministratorsForm()
           
 boolean isSiteSupportEmailAllowed()
           
 boolean isSystemAdmin()
           
 void setAdminUiProperties(AdminUiProperties adminUiProperties)
           
 void setAllowCamelCase(boolean allowCamelCase)
           
 void setAllowRemoteApi(boolean allowRemoteApi)
           
 void setAllowThreadedComments(boolean allowThreadedComments)
           
 void setAllowTrackbacks(boolean allowTrackbacks)
           
 void setAttachmentMaxSize(long attachmentMaxSize)
           
 void setConnectionsEnabled(boolean connectionsEnabled)
           
 void setConnectionTimeout(int connectionTimeout)
           
 void setCustomContactAdminMessage(String customContactAdminMessage)
           
 void setDefaultDateFormatterPattern(String defaultDateFormatterPattern)
           
 void setDefaultDateTimeFormatterPattern(String defaultDateTimeFormatterPattern)
           
 void setDefaultDecimalNumberFormatterPattern(String defaultDecimalNumberFormatterPattern)
           
 void setDefaultEncoding(String defaultEncoding)
           
 void setDefaultLongNumberFormatterPattern(String defaultLongNumberFormatterPattern)
           
 void setDefaultTimeFormatterPattern(String defaultTimeFormatterPattern)
           
 void setDidYouMeanLuceneConnection(com.atlassian.bonnie.ILuceneConnection didYouMeanLuceneConnection)
           
 void setDisplayLinkIcons(boolean displayLinkIcons)
          Deprecated. since 4.0
 void setDomainName(String domainName)
           
 void setDraftSaveIntervalMinutes(int draftSaveIntervalMinutes)
           
 void setDraftSaveIntervalSeconds(int draftSaveIntervalSeconds)
           
 void setEnableDidYouMean(boolean enableDidYouMean)
           
 void setEnableOpenSearch(boolean enableOpenSearch)
           
 void setEnableQuickNav(boolean enableQuickNav)
           
 void setFormatSettingsManager(FormatSettingsManager formatSettingsManager)
           
 void setGzipResponseEncoding(boolean gzipResponseEncoding)
           
 void setIndexingLanguage(String indexingLanguage)
           
 void setMaxAttachmentsInUI(int maxAttachmentsInUI)
           
 void setMaxSimultaneousQuickNavRequests(int maxSimultaneousQuickNavRequests)
           
 void setMaxThumbHeight(int maxThumbHeight)
           
 void setMaxThumbWidth(int maxThumbWidth)
           
 void setShowContactAdministratorsForm(boolean showContactAdministratorsForm)
           
 void setSiteHomePage(String siteHomePage)
           
 void setSiteSupportAddress(String siteSupportAddress)
           
 void setSiteTitle(String siteTitle)
           
 void setSocketTimeout(int socketTimeout)
           
 void setSpaceManager(SpaceManager spaceManager)
           
 void setWikiStyleRenderer(com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer)
           
 
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, formatFriendlyDate, getActionName, getActionName, getBootstrapManager, getCancel, getCancelResult, getContext, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDocLink, getEventManager, getFriendlyDateFormatter, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getMessageHolder, getNiceContentType, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getRandom, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUser, getUserAccessor, getUserFullName, getUserInterfaceState, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPermissionCheck, isPermittedAsString, isPrintableVersion, isSharedMode, isUserStatusPluginEnabled, isUsingHSQL, setBootstrapManager, setCancel, setContentUiSupport, setEventManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionCheck, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setSettingsManager, setSpacePermissionManager, setSystemInformationService, 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
 
Methods inherited from interface com.atlassian.confluence.validation.MessageHolderAware
validate
 

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

isPermitted

public boolean isPermitted()
Overrides:
isPermitted in class ConfluenceActionSupport

doView

public String doView()
              throws Exception
Throws:
Exception

doDefault

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

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

execute

public String execute()
               throws Exception
Specified by:
execute in interface com.opensymphony.xwork.Action
Overrides:
execute in class com.opensymphony.xwork.ActionSupport
Throws:
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 List<com.atlassian.core.util.PairType> getSiteHomePages()

getIndexingLanguages

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

didYouMeanIndexExists

public boolean didYouMeanIndexExists()

getSiteHomePage

public String getSiteHomePage()

setSiteHomePage

public void setSiteHomePage(String siteHomePage)

getRenderedCustomErrorMessage

public String getRenderedCustomErrorMessage()

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)

getCustomContactAdminMessage

public String getCustomContactAdminMessage()

setCustomContactAdminMessage

public void setCustomContactAdminMessage(String customContactAdminMessage)

isShowContactAdministratorsForm

public boolean isShowContactAdministratorsForm()

setShowContactAdministratorsForm

public void setShowContactAdministratorsForm(boolean showContactAdministratorsForm)

getCurrentTime

public String getCurrentTime(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)

getDefaultEncoding

public String getDefaultEncoding()

setDefaultEncoding

public void setDefaultEncoding(String defaultEncoding)

getDefaultTimeFormatterPattern

public String getDefaultTimeFormatterPattern()

setDefaultTimeFormatterPattern

public void setDefaultTimeFormatterPattern(String defaultTimeFormatterPattern)

getDefaultDateTimeFormatterPattern

public String getDefaultDateTimeFormatterPattern()

setDefaultDateTimeFormatterPattern

public void setDefaultDateTimeFormatterPattern(String defaultDateTimeFormatterPattern)

getDefaultDateFormatterPattern

public String getDefaultDateFormatterPattern()

setDefaultDateFormatterPattern

public void setDefaultDateFormatterPattern(String defaultDateFormatterPattern)

getDefaultLongNumberFormatterPattern

public String getDefaultLongNumberFormatterPattern()

setDefaultLongNumberFormatterPattern

public void setDefaultLongNumberFormatterPattern(String defaultLongNumberFormatterPattern)

getDefaultDecimalNumberFormatterPattern

public String getDefaultDecimalNumberFormatterPattern()

setDefaultDecimalNumberFormatterPattern

public void setDefaultDecimalNumberFormatterPattern(String defaultDecimalNumberFormatterPattern)

getNiceAttachmentMaxSize

public String getNiceAttachmentMaxSize()

getNiceDraftSaveInterval

public 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 String getIndexingLanguage()

setIndexingLanguage

public void setIndexingLanguage(String indexingLanguage)

isAllowRemoteApi

public boolean isAllowRemoteApi()

setAllowRemoteApi

public void setAllowRemoteApi(boolean allowRemoteApi)

getDomainName

public String getDomainName()

setDomainName

public void setDomainName(String domainName)

getSiteTitle

public String getSiteTitle()

setSiteTitle

public void setSiteTitle(String siteTitle)

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

@Deprecated
public boolean isDisplayLinkIcons()
Deprecated. since 4.0


setDisplayLinkIcons

@Deprecated
public void setDisplayLinkIcons(boolean displayLinkIcons)
Deprecated. since 4.0


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)

isEnableDidYouMean

public boolean isEnableDidYouMean()

setEnableDidYouMean

public void setEnableDidYouMean(boolean enableDidYouMean)

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)

setDidYouMeanLuceneConnection

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

getSiteSupportAddress

public String getSiteSupportAddress()

setSiteSupportAddress

public void setSiteSupportAddress(String siteSupportAddress)

isSiteSupportEmailAllowed

public boolean isSiteSupportEmailAllowed()

setAdminUiProperties

public void setAdminUiProperties(AdminUiProperties adminUiProperties)

isEditMode

public boolean isEditMode()
Specified by:
isEditMode in interface FormAware


Copyright © 2003-2013 Atlassian. All Rights Reserved.