| 1 |
|
package org.itracker.web.ptos; |
| 2 |
|
|
| 3 |
|
import java.util.Locale; |
| 4 |
|
|
| 5 |
|
import org.itracker.model.Project; |
| 6 |
|
import org.itracker.model.ProjectScript; |
| 7 |
|
import org.itracker.services.util.CustomFieldUtilities; |
| 8 |
|
import org.itracker.services.util.IssueUtilities; |
| 9 |
|
import org.itracker.services.util.WorkflowUtilities; |
| 10 |
|
|
|
|
|
| 0% |
Uncovered Elements: 11 (11) |
Complexity: 5 |
Complexity Density: 0.83 |
|
| 11 |
|
public class ProjectScriptPTO { |
| 12 |
|
|
| 13 |
|
private final ProjectScript script; |
| 14 |
|
private final Locale locale; |
| 15 |
|
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
| 16 |
0
|
public ProjectScriptPTO(ProjectScript script, Locale locale) {... |
| 17 |
0
|
this.script = script; |
| 18 |
0
|
this.locale = locale; |
| 19 |
|
} |
| 20 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 21 |
0
|
public String getFieldName() {... |
| 22 |
0
|
return CustomFieldUtilities.getCustomFieldName(this.script.getFieldId(), locale); |
| 23 |
|
|
| 24 |
|
} |
| 25 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 26 |
0
|
public String getEventName() {... |
| 27 |
0
|
return WorkflowUtilities.getEventName(script.getScript().getEvent(), locale); |
| 28 |
|
} |
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 29 |
0
|
@Deprecated... |
| 30 |
|
public ProjectScript getVO() { |
| 31 |
0
|
return this.script; |
| 32 |
|
} |
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 33 |
0
|
public ProjectScript getScript() {... |
| 34 |
0
|
return this.script; |
| 35 |
|
} |
| 36 |
|
|
| 37 |
|
} |