public class

EditNotificationsAction

extends AbstractUserProfileAction
implements PageAware SpaceAware
java.lang.Object
   ↳ com.opensymphony.xwork.ActionSupport
     ↳ com.atlassian.confluence.core.ConfluenceActionSupport
       ↳ com.atlassian.confluence.user.actions.AbstractUserProfileAction
         ↳ com.atlassian.confluence.user.actions.EditNotificationsAction

Summary

Nested Classes
class EditNotificationsAction.UndoLink  
[Expand]
Inherited Constants
From class com.atlassian.confluence.user.actions.AbstractUserProfileAction
From class com.atlassian.confluence.core.ConfluenceActionSupport
From interface com.opensymphony.xwork.Action
[Expand]
Inherited Fields
From class com.atlassian.confluence.user.actions.AbstractUserProfileAction
From class com.atlassian.confluence.core.ConfluenceActionSupport
From class com.opensymphony.xwork.ActionSupport
Public Constructors
EditNotificationsAction()
Public Methods
String doAddPageNotification()
String doAddSpaceNotification()
String doDefault()
Default webwork action execution method.
String doRemovePageNotification()
String doRemoveSpaceNotification()
AbstractPage getPage()
long getPageId()
List getPageNotificationsForUser()
int getPageSize()
List getPaginatedItems()
PaginationSupport getPaginationSupport()
Space getSpace()
String getSpaceKey()
String getSpaceName()
List getSpaceNotificationsForUser()
EditNotificationsAction.UndoLink getUndoLink()
boolean isChangesSaved()
boolean isInfoNeeded()
boolean isLatestVersionRequired()
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.
boolean isPageRequired()
If the action requires that the page be set before being run, then it should return true to this method.
boolean isPermitted()
boolean isSpaceRequired()
If the action requires that the space be set before being run, then it should return true to this method.
void setChangesSaved(boolean changesSaved)
void setContentType(String contentType)
void setPage(AbstractPage page)
IOC method for setting the page on the action.
void setPageId(long pageId)
void setSpace(Space space)
IOC method for setting the space on the action.
void setSpaceKey(String spaceKey)
void setStartIndex(int startIndex)
[Expand]
Inherited Methods
From class com.atlassian.confluence.user.actions.AbstractUserProfileAction
From class com.atlassian.confluence.core.ConfluenceActionSupport
From class com.opensymphony.xwork.ActionSupport
From class java.lang.Object
From interface com.atlassian.confluence.pages.actions.PageAware
From interface com.atlassian.confluence.plugin.descriptor.web.WebInterface
From interface com.atlassian.confluence.spaces.Spaced
From interface com.atlassian.confluence.spaces.actions.SpaceAware
From interface com.atlassian.confluence.user.actions.UserAware
From interface com.atlassian.confluence.util.breadcrumbs.BreadcrumbAware
From interface com.opensymphony.xwork.Action
From interface com.opensymphony.xwork.LocaleProvider
From interface com.opensymphony.xwork.TextProvider
From interface com.opensymphony.xwork.Validateable
From interface com.opensymphony.xwork.ValidationAware

Public Constructors

public EditNotificationsAction ()

Public Methods

public String doAddPageNotification ()

public String doAddSpaceNotification ()

public String doDefault ()

Default webwork action execution method.

Returns
  • the action result
Throws
Exception

public String doRemovePageNotification ()

public String doRemoveSpaceNotification ()

public AbstractPage getPage ()

public long getPageId ()

public List getPageNotificationsForUser ()

public int getPageSize ()

public List getPaginatedItems ()

public PaginationSupport getPaginationSupport ()

public Space getSpace ()

public String getSpaceKey ()

public String getSpaceName ()

public List getSpaceNotificationsForUser ()

public EditNotificationsAction.UndoLink getUndoLink ()

public boolean isChangesSaved ()

public boolean isInfoNeeded ()

public boolean isLatestVersionRequired ()

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.

Returns
  • true if the action requires the most recent version of a page

public boolean isPageRequired ()

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

Returns
  • true if the action requires a page in order to execute

public boolean isPermitted ()

public boolean isSpaceRequired ()

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

Returns
  • true if the action requires a space in order to execute

public void setChangesSaved (boolean changesSaved)

public void setContentType (String contentType)

public void setPage (AbstractPage page)

IOC method for setting the page on the action. This is called from the interceptor

Parameters
page the page that the action will be working on.

public void setPageId (long pageId)

public void setSpace (Space space)

IOC method for setting the space on the action. This is called from the interceptor

Parameters
space the space that the action will be working on.

public void setSpaceKey (String spaceKey)

public void setStartIndex (int startIndex)