Class PurgeTrashItemAction

java.lang.Object
org.apache.struts2.ActionSupport
All Implemented Interfaces:
WebInterface, Spaced, 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 PurgeTrashItemAction extends AbstractSpaceAction
See Also:
  • Field Details

  • Constructor Details

    • PurgeTrashItemAction

      public PurgeTrashItemAction()
  • Method Details

    • validate

      public void validate()
      Specified by:
      validate in interface MessageHolderAware
      Specified by:
      validate in interface org.apache.struts2.Validateable
      Overrides:
      validate in class org.apache.struts2.ActionSupport
    • execute

      public String execute() throws Exception
      Function checks if the trash item is a page or another object and calls the apropiate remove functions The page object is special since cases like being a parent or being a homepage must be handled
      Specified by:
      execute in interface org.apache.struts2.action.Action
      Overrides:
      execute in class org.apache.struts2.ActionSupport
      Throws:
      Exception
    • setTrashManager

      public void setTrashManager(TrashManager trashManager)
    • setContentEntityManager

      public void setContentEntityManager(ContentEntityManager contentEntityManager)
    • getContentId

      public long getContentId()
    • setContentId

      public void setContentId(long contentId)
    • isPermitted

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

      public ContentEntityObject getContentEntityObject()
    • getType

      public String getType()