Class EditNotificationsAction

java.lang.Object
org.apache.struts2.ActionSupport
All Implemented Interfaces:
PageAware, WebInterface, SpaceAware, Spaced, UserAware, BreadcrumbAware, 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 EditNotificationsAction extends AbstractUserProfileAction implements SpaceAware, PageAware
See Also:
  • Constructor Details

    • EditNotificationsAction

      public EditNotificationsAction()
  • Method Details

    • getPaginationSupport

      public PaginationSupport getPaginationSupport()
    • setStartIndex

      public void setStartIndex(int startIndex)
    • getPageSize

      public int getPageSize()
    • getPaginatedItems

      public List getPaginatedItems()
    • doAddSpaceNotification

      public String doAddSpaceNotification()
    • doRemoveSpaceNotification

      public String doRemoveSpaceNotification()
    • doAddPageNotification

      public String doAddPageNotification()
    • doRemovePageNotification

      public String doRemovePageNotification()
    • getPageNotificationsForUser

      public List getPageNotificationsForUser()
    • getSpaceNotificationsForUser

      public List getSpaceNotificationsForUser()
    • 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
    • resetPagination

      public void resetPagination()
    • getPage

      public AbstractPage getPage()
      Specified by:
      getPage in interface PageAware
      Returns:
      page the page that the action worked on
    • setPage

      public void setPage(AbstractPage page)
      Description copied from interface: PageAware
      IOC method for setting the page on the action. This is called from the interceptor
      Specified by:
      setPage in interface PageAware
      Parameters:
      page - the page that the action will be working on.
    • getSpaceKey

      public String getSpaceKey()
    • getSpaceName

      public String getSpaceName()
    • setSpaceKey

      public void setSpaceKey(String spaceKey)
    • getUndoLink

      public AddWatchLink getUndoLink()
    • isPageRequired

      public boolean isPageRequired()
      Description copied from interface: PageAware
      If the action requires that the page be set before being run, then it should return true to this method. If the action requires a page, but no page is available, then the interceptor will automatically redirect to the 'pagenotfound' result
      Specified by:
      isPageRequired in interface PageAware
      Returns:
      true if the action requires a page in order to execute
    • isLatestVersionRequired

      public boolean isLatestVersionRequired()
      Description copied from interface: PageAware
      If the action can only work on the most recent version of a page, this will cause the interceptor to silently replace the version that it looks up with the most recent version, if necessary.
      Specified by:
      isLatestVersionRequired in interface PageAware
      Returns:
      true if the action requires the most recent version of a page
    • isPermitted

      public boolean isPermitted()
      Description copied from class: ConfluenceActionSupport
      Overrides:
      isPermitted in class ConfluenceActionSupport
    • setPageId

      public void setPageId(long pageId)
    • getPageId

      public long getPageId()
    • isChangesSaved

      public boolean isChangesSaved()
    • setChangesSaved

      public void setChangesSaved(boolean changesSaved)
    • setSpace

      public void setSpace(Space space)
      Description copied from interface: SpaceAware
      IOC method for setting the space on the action. This is called from the interceptor
      Specified by:
      setSpace in interface SpaceAware
      Parameters:
      space - the space that the action will be working on.
    • isSpaceRequired

      public boolean isSpaceRequired()
      Description copied from interface: SpaceAware
      If the action requires that the space be set before being run, then it should return true to this method. If the action requires a space, but no space is available, then the interceptor will automatically redirect to the 'pagenotfound' result
      Specified by:
      isSpaceRequired in interface SpaceAware
      Returns:
      true if the action requires a space in order to execute
    • getSpace

      public Space getSpace()
      Specified by:
      getSpace in interface Spaced
    • setContentType

      public void setContentType(String contentType)