public class

RemoveSpaceFromFavouriteAjaxAction

extends ConfluenceActionSupport
implements Beanable SpaceAware
java.lang.Object
   ↳ com.opensymphony.xwork.ActionSupport
     ↳ com.atlassian.confluence.core.ConfluenceActionSupport
       ↳ com.atlassian.confluence.labels.actions.RemoveSpaceFromFavouriteAjaxAction

Summary

[Expand]
Inherited Constants
From class com.atlassian.confluence.core.ConfluenceActionSupport
From interface com.opensymphony.xwork.Action
[Expand]
Inherited Fields
From class com.atlassian.confluence.core.ConfluenceActionSupport
From class com.opensymphony.xwork.ActionSupport
Public Constructors
RemoveSpaceFromFavouriteAjaxAction()
Public Methods
String execute()
Map<StringCollection<String>> getBean()
Labelable getEntity()
Used so that the links are correctly built when JS is disabled
Space getSpace()
boolean isPermitted()
boolean isSpaceRequired()
If the action requires that the space be set before being run, then it should return true to this method.
boolean isViewPermissionRequired()
void setEntityId(long entityId)
void setLabelsService(LabelsService labelsService)
void setSpace(Space space)
IOC method for setting the space on the action.
[Expand]
Inherited Methods
From class com.atlassian.confluence.core.ConfluenceActionSupport
From class com.opensymphony.xwork.ActionSupport
From class java.lang.Object
From interface com.atlassian.confluence.core.Beanable
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.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 RemoveSpaceFromFavouriteAjaxAction ()

Public Methods

public String execute ()

public Map<StringCollection<String>> getBean ()

public Labelable getEntity ()

Used so that the links are correctly built when JS is disabled

Returns
  • The entity the label is removed from

public Space getSpace ()

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

public void setEntityId (long entityId)

public void setLabelsService (LabelsService labelsService)

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.