Class ConfigureRssFeedAction
- java.lang.Object
-
- com.opensymphony.xwork2.ActionSupport
-
- com.atlassian.confluence.core.ConfluenceActionSupport
-
- com.atlassian.confluence.dashboard.actions.ConfigureRssFeedAction
-
- All Implemented Interfaces:
FormAware
,WebInterface
,MessageHolderAware
,com.opensymphony.xwork2.Action
,com.opensymphony.xwork2.interceptor.ValidationAware
,com.opensymphony.xwork2.LocaleProvider
,com.opensymphony.xwork2.Preparable
,com.opensymphony.xwork2.TextProvider
,com.opensymphony.xwork2.Validateable
,Serializable
public class ConfigureRssFeedAction extends ConfluenceActionSupport implements com.opensymphony.xwork2.Preparable, 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, PREVIEW, spacePermissionManager, systemInformationService, userAccessor, webInterfaceManager
-
-
Constructor Summary
Constructors Constructor Description ConfigureRssFeedAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
doDefault()
Convenient Action execution method which defaults to returning INPUTString
execute()
List<com.atlassian.core.util.PairType>
getAccessTypes()
List<com.atlassian.core.util.PairType>
getAggregateOptions()
List<SpacePickerHelper.SpaceDTO>
getAvailableGlobalSpaces()
Find all spaces that user has permission to view and allow them to search among theseContentEntityManager
getContentEntityManager()
String
getContentListAsString()
creates a comma separated String based on the configured list of content typesList<com.atlassian.core.util.PairType>
getContentStatusList()
FeedCustomContentType
getCustomContentType(String identifier)
List<FeedCustomContentType>
getCustomContentTypes()
List
getExcludedSpaceKeys()
List<SpacePickerHelper.SpaceDTO>
getFavouriteSpaces()
int
getMaxResults()
String
getNiceRssType()
String
getRssLink()
List<com.atlassian.core.util.PairType>
getRssSorts()
String
getRssType()
List<com.atlassian.core.util.PairType>
getRssTypes()
String
getSelectedPublicFeed()
In order to select the RadioBox in velocity we need to provide a String instead of a boolean.String
getSort()
List
getSpaces()
String
getSpacesAsNiceList(List spaceList)
List<com.atlassian.core.util.PairType>
getSubContentEntityTypes()
int
getTimeSpan()
String
getTitle()
List<String>
getTypes()
boolean
hasAnonymousAccess()
boolean
isCreated()
boolean
isEditMode()
boolean
isModified()
boolean
isPublicFeed()
boolean
isShowContent()
boolean
isWebdavEnabled()
void
prepare()
void
setBlogpostSubTypes(List<String> blogSubTypes)
void
setContentEntityManager(ContentEntityManager contentEntityManager)
void
setCreated(boolean created)
void
setExcludedSpaceKeys(List excludedSpaceKeys)
void
setMaxResults(int maxResults)
void
setModified(boolean modified)
void
setPageSubTypes(List<String> pageSubTypes)
void
setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor)
void
setPublicFeed(boolean publicFeed)
void
setRssLink(String rssLink)
void
setRssType(String rssType)
void
setSettingsManager(SettingsManager settingsManager)
void
setShowContent(boolean showContent)
void
setSort(String sort)
void
setSpaceManager(SpaceManager spaceManager)
void
setSpaces(List spaces)
void
setTimeSpan(int timeSpan)
void
setTitle(String title)
void
setTypes(List<String> types)
void
validate()
-
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, isPermitted, isPrintableVersion, isSkipAccessCheck, isUserStatusPluginEnabled, isUsingH2, isUsingHSQL, setAccessModeService, setApiDateFormatService, setApiPersonService, setBootstrapManager, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPreviousLoginDate, setServletRequestSupplier, 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
-
-
-
-
Method Detail
-
prepare
public void prepare()
- Specified by:
prepare
in interfacecom.opensymphony.xwork2.Preparable
-
validate
public void validate()
- Specified by:
validate
in interfaceMessageHolderAware
- Specified by:
validate
in interfacecom.opensymphony.xwork2.Validateable
- Overrides:
validate
in classcom.opensymphony.xwork2.ActionSupport
-
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
@XsrfProtectionExcluded public String execute() throws Exception
- Specified by:
execute
in interfacecom.opensymphony.xwork2.Action
- Overrides:
execute
in classcom.opensymphony.xwork2.ActionSupport
- Throws:
Exception
-
getContentEntityManager
public ContentEntityManager getContentEntityManager()
-
setContentEntityManager
public void setContentEntityManager(ContentEntityManager contentEntityManager)
-
getSubContentEntityTypes
public List<com.atlassian.core.util.PairType> getSubContentEntityTypes()
-
getContentStatusList
public List<com.atlassian.core.util.PairType> getContentStatusList()
-
getRssTypes
public List<com.atlassian.core.util.PairType> getRssTypes()
-
getRssSorts
public List<com.atlassian.core.util.PairType> getRssSorts()
-
getAccessTypes
public List<com.atlassian.core.util.PairType> getAccessTypes()
-
getNiceRssType
public String getNiceRssType()
-
getAvailableGlobalSpaces
public List<SpacePickerHelper.SpaceDTO> getAvailableGlobalSpaces()
Find all spaces that user has permission to view and allow them to search among these- Returns:
- List
-
getAggregateOptions
public List<com.atlassian.core.util.PairType> getAggregateOptions()
-
getFavouriteSpaces
public List<SpacePickerHelper.SpaceDTO> getFavouriteSpaces()
-
getContentListAsString
public String getContentListAsString()
creates a comma separated String based on the configured list of content types
-
getCustomContentType
public FeedCustomContentType getCustomContentType(String identifier)
-
getCustomContentTypes
public List<FeedCustomContentType> getCustomContentTypes()
-
isWebdavEnabled
public boolean isWebdavEnabled()
-
hasAnonymousAccess
public boolean hasAnonymousAccess()
-
getSpaces
public List getSpaces()
-
setSpaces
public void setSpaces(List spaces)
-
getExcludedSpaceKeys
public List getExcludedSpaceKeys()
-
setExcludedSpaceKeys
public void setExcludedSpaceKeys(List excludedSpaceKeys)
-
isModified
public boolean isModified()
-
setModified
public void setModified(boolean modified)
-
getMaxResults
public int getMaxResults()
-
setMaxResults
public void setMaxResults(int maxResults)
-
getTimeSpan
public int getTimeSpan()
-
setTimeSpan
public void setTimeSpan(int timeSpan)
-
isCreated
public boolean isCreated()
-
setCreated
public void setCreated(boolean created)
-
getRssLink
public String getRssLink()
-
setRssLink
public void setRssLink(String rssLink)
-
getRssType
public String getRssType()
-
setRssType
public void setRssType(String rssType)
-
getSort
public String getSort()
-
setSort
public void setSort(String sort)
-
isPublicFeed
public boolean isPublicFeed()
-
setPublicFeed
public void setPublicFeed(boolean publicFeed)
-
getSelectedPublicFeed
public String getSelectedPublicFeed()
In order to select the RadioBox in velocity we need to provide a String instead of a boolean.- Returns:
- String
-
getTitle
public String getTitle()
-
setTitle
public void setTitle(String title)
-
setSpaceManager
public void setSpaceManager(SpaceManager spaceManager)
-
setPluginAccessor
public void setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor)
- Overrides:
setPluginAccessor
in classConfluenceActionSupport
-
isShowContent
public boolean isShowContent()
-
setShowContent
public void setShowContent(boolean showContent)
-
setSettingsManager
public void setSettingsManager(SettingsManager settingsManager)
- Overrides:
setSettingsManager
in classConfluenceActionSupport
-
isEditMode
public boolean isEditMode()
- Specified by:
isEditMode
in interfaceFormAware
-
-