Class NetworkFeedAction

java.lang.Object
org.apache.struts2.ActionSupport
com.opensymphony.xwork2.ActionSupport
All Implemented Interfaces:
WebInterface, UserAware, MessageHolderAware, com.opensymphony.xwork2.Action, com.opensymphony.xwork2.interceptor.ValidationAware, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, Serializable, org.apache.struts2.action.Action, org.apache.struts2.interceptor.ValidationAware, org.apache.struts2.Validateable

public class NetworkFeedAction extends ConfluenceActionSupport implements UserAware
Generates a feed of the people who are being followed by a specified user.
See Also:
  • Field Details

  • Constructor Details

    • NetworkFeedAction

      public NetworkFeedAction()
  • Method Details

    • getSyndFeed

      public com.rometools.rome.feed.synd.SyndFeed getSyndFeed()
      Magic accessor that is monitored by RssResult.
      Returns:
      the feed
    • execute

      public String execute() throws Exception
      Specified by:
      execute in interface org.apache.struts2.action.Action
      Overrides:
      execute in class org.apache.struts2.ActionSupport
      Throws:
      Exception
    • setFeedBuilder

      public void setFeedBuilder(SyndFeedService feedBuilder)
    • setPredefinedSearchBuilder

      public void setPredefinedSearchBuilder(PredefinedSearchBuilder predefinedSearchBuilder)
    • setFollowManager

      public void setFollowManager(FollowManagerInternal followManager)
    • getUser

      public ConfluenceUser getUser()
      Specified by:
      getUser in interface UserAware
      Returns:
      user - the user that the action worked on
    • isUserRequired

      public boolean isUserRequired()
      Description copied from interface: UserAware
      If 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:
      isUserRequired in interface UserAware
      Returns:
      true if the action requires a page in order to execute
    • isViewPermissionRequired

      public boolean isViewPermissionRequired()
      Specified by:
      isViewPermissionRequired in interface UserAware
      Returns:
      true if the action requires a check on com.atlassian.confluence.user.actions.UserAwareInterceptor.VIEW_USER_PROFILE_PERMISSION
    • setUsername

      public void setUsername(String username)
    • setRssType

      public void setRssType(String rssType)
    • setMax

      public void setMax(int max)
    • setContentType

      public void setContentType(ContentTypeEnum contentType)
      Set the content type to be returned.

      Struts sets the contentType from the named parameter using EnumTypeConverter as defined by NetworkFeedAction-conversion.properties.