Class SecurityConfigurationAction
- java.lang.Object
-
- com.opensymphony.xwork2.ActionSupport
-
- com.atlassian.confluence.core.ConfluenceActionSupport
-
- com.atlassian.confluence.admin.actions.SecurityConfigurationAction
-
- All Implemented Interfaces:
FormAware
,WebInterface
,MessageHolderAware
,com.opensymphony.xwork2.Action
,com.opensymphony.xwork2.interceptor.ValidationAware
,com.opensymphony.xwork2.LocaleProvider
,com.opensymphony.xwork2.TextProvider
,com.opensymphony.xwork2.Validateable
,Serializable
public class SecurityConfigurationAction extends ConfluenceActionSupport implements FormAware
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
accessModeService, CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, personService, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, systemInformationService, userAccessor, webInterfaceManager
-
-
Constructor Summary
Constructors Constructor Description SecurityConfigurationAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
doDefault()
Convenient Action execution method which defaults to returning INPUTString
doView()
String
execute()
String
getAttachmentSecurityLevel()
String
getAttachmentSecurityLevelDisplay()
List<com.atlassian.core.util.PairType>
getAttachmentSecurityLevels()
String
getEmailAddressVisibility()
List<HTMLPairType>
getEmailAddressVisibilityTypes()
boolean
getExternalUserManagement()
int
getLoginAttemptsThreshold()
int
getMaxRssItems()
int
getPageTimeout()
The time allowed to render a page, measured in settings.int
getRssTimeout()
The RSS Feed timeout in seconds.SpaceManager
getSpaceManager()
long
getWebSudoTimeout()
boolean
isAddWildcardsToUserAndGroupSearches()
boolean
isAllowRemoteApiAnonymous()
boolean
isEditMode()
boolean
isEnableElevatedSecurityCheck()
boolean
isEnableSpaceStyles()
boolean
isExternalUserManagement()
boolean
isNofollowExternalLinks()
boolean
isPassConfirmationConfigurable()
Is password confirmation (websudo) configurable, or is it disabled due to using a customer authenticator or a system property.boolean
isPermitted()
boolean
isShowSystemInfoIn500Page()
boolean
isSystemAdmin()
boolean
isWebSudoEnabled()
boolean
isXsrfAddComments()
void
setAddWildcardsToUserAndGroupSearches(boolean addWildcardsToUserAndGroupSearches)
void
setAllowRemoteApiAnonymous(boolean allowRemoteApiAnonymous)
void
setAttachmentSecurityLevel(String attachmentSecurityLevel)
void
setEmailAddressVisibility(String emailAddressVisibility)
void
setEnableElevatedSecurityCheck(boolean enableElevatedSecurityCheck)
void
setEnableSpaceStyles(boolean enableSpaceStyles)
void
setExternalUserManagement(boolean externalUserManagement)
void
setLoginAttemptsThreshold(int loginAttemptsThreshold)
void
setMaxRssItems(int maxRssItems)
void
setNofollowExternalLinks(boolean nofollowExternalLinks)
void
setPageTimeout(int pageTimeout)
Restrict the time allowed to render a page, measured in settings.void
setRssTimeout(int rssTimeout)
void
setShowSystemInfoIn500Page(boolean showSystemInfoIn500Page)
void
setSpaceManager(SpaceManager spaceManager)
void
setWebSudoEnabled(boolean webSudoEnabled)
void
setWebSudoTimeout(long webSudoTimeout)
void
setXsrfAddComments(boolean xsrfAddComments)
-
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, formatFriendlyDate, getAccessMode, getActionName, getActionName, getAuthenticatedUser, getBootstrapManager, getBootstrapStatusProvider, getCancel, getCancelResult, getConfluenceAccessManager, getContentUiSupport, getContext, getCurrentRequest, getCurrentSession, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDefaultTimeZone, getDocBean, getDocLink, getEventManager, getFriendlyDateFormatter, getFrontendServiceURL, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageJs, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getMessageHolder, getNiceContentType, getPermissionManager, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPersonService, getPreviousLoginDate, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUserAccessor, getUserByName, getUserFullName, getUserHasBrowseUsersPermission, getUserHasLicensedAccess, getUserInterfaceState, getUserLocaleDefaultDatePattern, getUserProfilePicUrl, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPrintableVersion, isSkipAccessCheck, isUserStatusPluginEnabled, isUsingH2, isUsingHSQL, setAccessModeService, setApiDateFormatService, setApiPersonService, setBootstrapManager, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setServletRequestSupplier, setSettingsManager, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager, useSkipAccessCheck, withServletRequestSupplier
-
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, getActionErrors, getActionMessages, getContainer, getFieldErrors, getFormatted, getLocaleProvider, getText, getText, getTextProvider, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validate
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.opensymphony.xwork2.LocaleProvider
isValidLocale, isValidLocaleString
-
Methods inherited from interface com.atlassian.confluence.validation.MessageHolderAware
validate
-
-
-
-
Method Detail
-
isPermitted
public boolean isPermitted()
- Overrides:
isPermitted
in classConfluenceActionSupport
-
doDefault
public String doDefault() throws Exception
Description copied from class:ConfluenceActionSupport
Convenient Action execution method which defaults to returning INPUT- Overrides:
doDefault
in classConfluenceActionSupport
- Throws:
Exception
-
execute
public String execute() throws Exception
- Specified by:
execute
in interfacecom.opensymphony.xwork2.Action
- Overrides:
execute
in classcom.opensymphony.xwork2.ActionSupport
- Throws:
Exception
-
isSystemAdmin
public boolean isSystemAdmin()
-
getSpaceManager
public SpaceManager getSpaceManager()
-
setSpaceManager
public void setSpaceManager(SpaceManager spaceManager)
-
getEmailAddressVisibilityTypes
public List<HTMLPairType> getEmailAddressVisibilityTypes()
-
isPassConfirmationConfigurable
public boolean isPassConfirmationConfigurable()
Is password confirmation (websudo) configurable, or is it disabled due to using a customer authenticator or a system property.- Returns:
- true if password confirmation can be configured
- See Also:
AuthenticatorOverwrite
-
getExternalUserManagement
public boolean getExternalUserManagement()
-
isExternalUserManagement
public boolean isExternalUserManagement()
-
setExternalUserManagement
public void setExternalUserManagement(boolean externalUserManagement)
-
getEmailAddressVisibility
public String getEmailAddressVisibility()
-
setEmailAddressVisibility
public void setEmailAddressVisibility(String emailAddressVisibility)
-
isAllowRemoteApiAnonymous
public boolean isAllowRemoteApiAnonymous()
-
setAllowRemoteApiAnonymous
public void setAllowRemoteApiAnonymous(boolean allowRemoteApiAnonymous)
-
isNofollowExternalLinks
public boolean isNofollowExternalLinks()
-
setNofollowExternalLinks
public void setNofollowExternalLinks(boolean nofollowExternalLinks)
-
isEnableSpaceStyles
public boolean isEnableSpaceStyles()
-
setEnableSpaceStyles
public void setEnableSpaceStyles(boolean enableSpaceStyles)
-
isShowSystemInfoIn500Page
public boolean isShowSystemInfoIn500Page()
-
setShowSystemInfoIn500Page
public void setShowSystemInfoIn500Page(boolean showSystemInfoIn500Page)
-
getMaxRssItems
public int getMaxRssItems()
-
setMaxRssItems
public void setMaxRssItems(int maxRssItems)
-
isXsrfAddComments
public boolean isXsrfAddComments()
-
setXsrfAddComments
public void setXsrfAddComments(boolean xsrfAddComments)
-
isAddWildcardsToUserAndGroupSearches
public boolean isAddWildcardsToUserAndGroupSearches()
-
setAddWildcardsToUserAndGroupSearches
public void setAddWildcardsToUserAndGroupSearches(boolean addWildcardsToUserAndGroupSearches)
-
isEnableElevatedSecurityCheck
public boolean isEnableElevatedSecurityCheck()
-
setEnableElevatedSecurityCheck
public void setEnableElevatedSecurityCheck(boolean enableElevatedSecurityCheck)
-
getLoginAttemptsThreshold
public int getLoginAttemptsThreshold()
-
setLoginAttemptsThreshold
public void setLoginAttemptsThreshold(int loginAttemptsThreshold)
-
isWebSudoEnabled
public boolean isWebSudoEnabled()
-
setWebSudoEnabled
public void setWebSudoEnabled(boolean webSudoEnabled)
-
getWebSudoTimeout
public long getWebSudoTimeout()
-
setWebSudoTimeout
public void setWebSudoTimeout(long webSudoTimeout)
-
isEditMode
public boolean isEditMode()
- Specified by:
isEditMode
in interfaceFormAware
-
getRssTimeout
public int getRssTimeout()
The RSS Feed timeout in seconds.
-
setRssTimeout
public void setRssTimeout(int rssTimeout)
-
getPageTimeout
public int getPageTimeout()
The time allowed to render a page, measured in settings.
-
setPageTimeout
public void setPageTimeout(int pageTimeout)
Restrict the time allowed to render a page, measured in settings.
-
getAttachmentSecurityLevels
public List<com.atlassian.core.util.PairType> getAttachmentSecurityLevels()
-
getAttachmentSecurityLevel
public String getAttachmentSecurityLevel()
-
getAttachmentSecurityLevelDisplay
public String getAttachmentSecurityLevelDisplay()
-
setAttachmentSecurityLevel
public void setAttachmentSecurityLevel(String attachmentSecurityLevel)
-
-