Class NetworkFeedAction
java.lang.Object
org.apache.struts2.ActionSupport
com.atlassian.confluence.core.AbstractI18nActionSupport
com.atlassian.confluence.core.ConfluenceActionSupport
com.atlassian.confluence.rss.actions.NetworkFeedAction
- All Implemented Interfaces:
WebInterface,UserAware,MessageHolderAware,Serializable,org.apache.struts2.action.Action,org.apache.struts2.interceptor.ValidationAware,org.apache.struts2.locale.LocaleProvider,org.apache.struts2.text.TextProvider,org.apache.struts2.Validateable
Generates a feed of the people who are being followed by a specified user.
- See Also:
-
Field Summary
FieldsFields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
accessModeService, CANCEL, confluenceAccessManager, contentUiSupport, eventPublisher, formatSettingsManager, globalSettingsManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, localeManager, loginManager, messageHolder, permissionManager, pluginAccessor, PREVIEW, request, response, spacePermissionManager, strutsHelper, systemInformationService, userAccessor, webInterfaceManagerFields inherited from class org.apache.struts2.ActionSupport
containerFields inherited from interface org.apache.struts2.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute()com.rometools.rome.feed.synd.SyndFeedMagic accessor that is monitored byRssResult.getUser()booleanIf the action requires that the user be set before being run, then it should return true to this method.booleanvoidsetContentType(ContentTypeEnum contentType) Set the content type to be returned.voidsetFeedBuilder(SyndFeedService feedBuilder) voidsetFollowManager(FollowManagerInternal followManager) voidsetMax(int max) voidsetPredefinedSearchBuilder(PredefinedSearchBuilder predefinedSearchBuilder) voidsetRssType(String rssType) voidsetUsername(String username) Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, getActionErrors, getActionMessages, getActionName, getActiveRequest, getActiveResponse, getAuthenticatedUser, getBootstrapStatusProvider, getCancelResult, getDateFormatter, getDefaultTimeZone, getFieldErrors, getGlobalSettings, getHelper, getI18n, getLocale, getMessageHolder, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getTimeZone, getUserByName, getUserInterfaceState, getWebInterfaceContext, isAnonymousUser, isEmailVisible, isPermitted, setAccessModeService, setBootstrapStatusProvider, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventPublisher, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setSettingsManager, setSpacePermissionManager, setStrutsHelper, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManagerMethods inherited from class com.atlassian.confluence.core.AbstractI18nActionSupport
getText, getText, getText, getText, getText, getText, getText, getText, getTextStrictMethods inherited from class org.apache.struts2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, getContainer, getFormatted, getLocaleProvider, getText, getText, getTextProvider, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, toLocale, validateMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.confluence.validation.MessageHolderAware
validate
-
Field Details
-
DEFAULT_MAX_RESULTS
public static final int DEFAULT_MAX_RESULTS- See Also:
-
-
Constructor Details
-
NetworkFeedAction
public NetworkFeedAction()
-
-
Method Details
-
getSyndFeed
public com.rometools.rome.feed.synd.SyndFeed getSyndFeed()Magic accessor that is monitored byRssResult.- Returns:
- the feed
-
execute
- Specified by:
executein interfaceorg.apache.struts2.action.Action- Overrides:
executein classorg.apache.struts2.ActionSupport- Throws:
Exception
-
setFeedBuilder
-
setPredefinedSearchBuilder
-
setFollowManager
-
getUser
-
isUserRequired
public boolean isUserRequired()Description copied from interface:UserAwareIf the action requires that the user be set before being run, then it should return true to this method. If the action requires a user, but no user is available, then the interceptor will automatically redirect to the 'notfound' result- Specified by:
isUserRequiredin interfaceUserAware- Returns:
- true if the action requires a page in order to execute
-
isViewPermissionRequired
public boolean isViewPermissionRequired()- Specified by:
isViewPermissionRequiredin interfaceUserAware- Returns:
- true if the action requires a check on com.atlassian.confluence.user.actions.UserAwareInterceptor.VIEW_USER_PROFILE_PERMISSION
-
setUsername
-
setRssType
-
setMax
public void setMax(int max) -
setContentType
Set the content type to be returned.Struts sets the contentType from the named parameter using
EnumTypeConverteras defined by NetworkFeedAction-conversion.properties.
-