1 23 package org.infoglue.cms.applications.workflowtool.function.title; 24 25 import org.infoglue.cms.applications.workflowtool.function.InfoglueFunction; 26 27 import com.opensymphony.workflow.WorkflowException; 28 29 32 public abstract class Populator extends InfoglueFunction 33 { 34 37 private static final String TITLE_PROPERTYSET_KEY = WORKFLOW_PROPERTYSET_PREFIX + "title"; 38 39 42 public Populator() 43 { 44 super(); 45 } 46 47 50 protected void execute() throws WorkflowException 51 { 52 populate(getTitle()); 53 } 54 55 58 private void populate(final String title) throws WorkflowException 59 { 60 if(title != null && title.trim().length() > 0) 61 { 62 setPropertySetString(TITLE_PROPERTYSET_KEY, title.trim()); 63 } 64 } 65 66 69 protected abstract String getTitle(); 70 } 71 | Popular Tags |