@Override public String trash() { try { if (0 == this.getId()) { this.addActionError(this.getText("jprss.message.rss.invalidId")); return INPUT; } this.setStrutsAction(ApsAdminSystemConstants.DELETE); Channel channel = this.getRssManager().getChannel(this.getId()); this.setActive(channel.isActive()); this.setCategory(channel.getCategory()); this.setContentType(channel.getContentType()); this.setDescription(channel.getDescription()); this.setFeedType(channel.getFeedType()); this.setFilters(channel.getFilters()); this.setTitle(channel.getTitle()); this.setMaxContentsSize(channel.getMaxContentsSize()); } catch (Throwable t) { ApsSystemUtils.logThrowable(t, this, "trash"); return FAILURE; } return SUCCESS; }