1 23 package org.infoglue.cms.applications.workflowtool.function; 24 25 import org.infoglue.cms.controllers.kernel.impl.simple.ContentController; 26 27 import com.opensymphony.workflow.WorkflowException; 28 29 32 public class ContentCleaner extends ContentFunction 33 { 34 37 protected void execute() throws WorkflowException 38 { 39 try 40 { 41 if(getContentVO() != null) 42 { 43 ContentController.getContentController().delete(getContentVO(), getDatabase()); 44 } 45 } 46 catch(Exception e) 47 { 48 throwException(e); 49 } 50 } 51 } | Popular Tags |