1 package org.tigris.scarab.workflow; 2 3 48 49 import java.util.List ; 50 import java.util.Map ; 51 52 53 import org.tigris.scarab.om.ScarabUser; 54 import org.tigris.scarab.om.Issue; 55 import org.tigris.scarab.om.Module; 56 import org.tigris.scarab.om.IssueType; 57 import org.tigris.scarab.om.AttributeOption; 58 import org.tigris.scarab.om.OptionWorkflow; 59 import org.tigris.scarab.om.WorkflowRules; 60 import org.tigris.scarab.om.Attribute; 61 import org.tigris.scarab.util.ScarabException; 62 63 70 public class DefaultWorkflow implements Workflow 71 { 72 public boolean canMakeTransition(ScarabUser user, 73 AttributeOption fromOption, 74 AttributeOption toOption, 75 Issue issue) 76 throws ScarabException 77 78 { 79 return true; 80 } 81 82 public String checkTransition(AttributeOption fromOption, 83 AttributeOption toOption, 84 Issue issue, Map newAttVals, 85 ScarabUser user) 86 throws ScarabException 87 { 88 return null; 89 } 90 91 public String checkInitialTransition(AttributeOption toOption, 92 Issue issue, Map newAttVals, 93 ScarabUser user) 94 throws ScarabException 95 { 96 return null; 97 } 98 99 public OptionWorkflow getWorkflowForRole(AttributeOption fromOption, 100 AttributeOption toOption, 101 String roleName, 102 Module module, 103 IssueType issueType) 104 throws ScarabException 105 { 106 return null; 107 } 108 109 public List getWorkflowsForIssueType(IssueType issueType) 110 throws ScarabException 111 { 112 return null; 113 } 114 115 public List getWorkflowsForRoleList(AttributeOption fromOption, 116 AttributeOption toOption, 117 List roleNames, 118 Module module, 119 IssueType issueType) 120 throws ScarabException 121 { 122 return null; 123 } 124 125 public OptionWorkflow inherit(AttributeOption fromOption, 126 AttributeOption toOption, 127 String roleName, Module module, 128 IssueType issueType) 129 throws ScarabException 130 { 131 return null; 132 } 133 134 public void saveWorkflow(AttributeOption fromOption, 135 AttributeOption toOption, 136 String roleName, Module module, 137 IssueType issueType, WorkflowRules workflowRule) 138 throws ScarabException 139 { 140 } 142 143 public void resetWorkflow(AttributeOption fromOption, 144 AttributeOption toOption, 145 String roleName, Module module, 146 IssueType issueType) 147 throws ScarabException 148 { 149 } 151 152 public void resetWorkflows(String roleName, Module module, IssueType issueType, 153 boolean initial) 154 throws ScarabException 155 { 156 } 158 159 public void deleteWorkflowsForOption(AttributeOption option, 160 Module module, IssueType issueType) 161 throws ScarabException 162 { 163 } 165 166 public void deleteWorkflowsForAttribute(Attribute attr, Module module, 167 IssueType issueType) 168 throws ScarabException 169 { 170 } 172 173 public void addIssueTypeWorkflowToModule(Module module, 174 IssueType issueType) 175 throws ScarabException 176 { 177 } 179 180 public void copyIssueTypeWorkflows(IssueType issueType, IssueType newIssueType) 181 throws ScarabException 182 { 183 } 185 186 public void resetAllWorkflowsForIssueType(Module module, 187 IssueType issueType) 188 throws ScarabException 189 { 190 } 192 } 193 194 | Popular Tags |