1 19 package org.openharmonise.workfloweditor.model; 20 21 import java.util.ArrayList ; 22 import java.util.List ; 23 24 31 public class WorkflowModel { 32 33 36 private ArrayList m_stages = new ArrayList (); 37 38 41 private String m_sTitle = null; 42 43 46 private ArrayList m_availableRoles = new ArrayList (); 47 48 53 public WorkflowModel(String sTitle) { 54 super(); 55 this.m_sTitle = sTitle; 56 } 57 58 63 public void addWorkflowStage(WorkflowStage stage) { 64 this.m_stages.add(stage); 65 } 66 67 72 public void removeWorkflowStage(WorkflowStage stage) { 73 this.m_stages.remove(stage); 74 } 75 76 81 public List getWorkflowStages() { 82 return (List ) this.m_stages.clone(); 83 } 84 85 90 public void addAvailableRole(Role role) { 91 this.m_availableRoles.add(role); 92 } 93 94 99 public void removeAvailableRole(Role role) { 100 this.m_availableRoles.remove(role); 101 } 102 103 108 public List getAvailableRoles() { 109 return (List ) this.m_availableRoles.clone(); 110 } 111 } 112 | Popular Tags |