Class PurgeTrashItemAction

    • Constructor Detail

      • PurgeTrashItemAction

        public PurgeTrashItemAction()
    • Method Detail

      • validate

        public void validate()
        Specified by:
        validate in interface MessageHolderAware
        Specified by:
        validate in interface com.opensymphony.xwork2.Validateable
        validate in class com.opensymphony.xwork2.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 com.opensymphony.xwork2.Action
        execute in class com.opensymphony.xwork2.ActionSupport
      • setTrashManager

        public void setTrashManager​(TrashManager trashManager)
      • setContentEntityManager

        public void setContentEntityManager​(ContentEntityManager contentEntityManager)
      • getContentId

        public long getContentId()
      • setContentId

        public void setContentId​(long contentId)
      • getType

        public String getType()