com.atlassian.confluence.dashboard.actions
Class ConfigureRssFeedAction

java.lang.Object
  extended by com.opensymphony.xwork.ActionSupport
      extended by com.atlassian.confluence.core.ConfluenceActionSupport
          extended by com.atlassian.confluence.dashboard.actions.ConfigureRssFeedAction
All Implemented Interfaces:
FormAware, WebInterface, MessageHolderAware, com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, com.opensymphony.xwork.Preparable, com.opensymphony.xwork.TextProvider, com.opensymphony.xwork.Validateable, com.opensymphony.xwork.ValidationAware, Serializable

public class ConfigureRssFeedAction
extends ConfluenceActionSupport
implements com.opensymphony.xwork.Preparable, FormAware

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, PREVIEW, 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
ConfigureRssFeedAction()
           
 
Method Summary
 String doDefault()
          Default webwork action execution method.
 String 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 these
 ContentEntityManager getContentEntityManager()
           
 String getContentListAsString()
          creates a comma separated String based on the configured list of content types
 List<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 isShowDiff()
          Deprecated. Since 4.0. Diffs are no longer supported in RSS feeds.
 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 setShowDiff(boolean showDiff)
          Deprecated. Since 4.0. Diffs are no longer supported in RSS feeds.
 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, getActionName, getActionName, getAuthenticatedUser, getBootstrapManager, getCancel, getCancelResult, getContext, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDefaultTimeZone, getDocLink, getEventManager, getFriendlyDateFormatter, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getMessageHolder, getNiceContentType, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUser, getUserAccessor, getUserByName, getUserFullName, getUserInterfaceState, getUserLocaleDefaultDatePattern, getUserProfilePicUrl, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPermissionCheck, isPermitted, isPermittedAsString, isPrintableVersion, isSharedMode, isUserStatusPluginEnabled, isUsingHSQL, setApiDateFormatService, setBootstrapManager, setCancel, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionCheck, setPermissionManager, setPreviousLoginDate, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigureRssFeedAction

public ConfigureRssFeedAction()
Method Detail

prepare

public void prepare()
Specified by:
prepare in interface com.opensymphony.xwork.Preparable

validate

public void validate()
Specified by:
validate in interface MessageHolderAware
Specified by:
validate in interface com.opensymphony.xwork.Validateable
Overrides:
validate in class com.opensymphony.xwork.ActionSupport

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

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()

getSpacesAsNiceList

public String getSpacesAsNiceList(List spaceList)

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)

getTypes

public List<String> getTypes()

setTypes

public void setTypes(List<String> types)

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)

setBlogpostSubTypes

public void setBlogpostSubTypes(List<String> blogSubTypes)

setPageSubTypes

public void setPageSubTypes(List<String> pageSubTypes)

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 class ConfluenceActionSupport

isShowDiff

@Deprecated
public boolean isShowDiff()
Deprecated. Since 4.0. Diffs are no longer supported in RSS feeds.

Returns:

setShowDiff

@Deprecated
public void setShowDiff(boolean showDiff)
Deprecated. Since 4.0. Diffs are no longer supported in RSS feeds.

Parameters:
showDiff -

isShowContent

public boolean isShowContent()

setShowContent

public void setShowContent(boolean showContent)

setSettingsManager

public void setSettingsManager(SettingsManager settingsManager)
Overrides:
setSettingsManager in class ConfluenceActionSupport

isEditMode

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


Copyright © 2003–2015 Atlassian. All rights reserved.