1 |
|
package org.kuali.student.lum.program.client.credential; |
2 |
|
|
3 |
|
import com.google.gwt.event.shared.HandlerManager; |
4 |
|
import org.kuali.student.common.ui.client.application.ViewContext; |
5 |
|
import org.kuali.student.common.ui.client.mvc.DataModel; |
6 |
|
import org.kuali.student.lum.program.client.credential.edit.CredentialEditController; |
7 |
|
import org.kuali.student.lum.program.client.credential.view.CredentialViewController; |
8 |
|
import org.kuali.student.lum.program.client.events.ProgramViewEvent; |
9 |
|
import org.kuali.student.lum.program.client.versions.ProgramVersionsController; |
10 |
|
import org.kuali.student.lum.program.client.widgets.ProgramSideBar; |
11 |
|
|
12 |
|
|
13 |
|
@author |
14 |
|
|
|
|
| 0% |
Uncovered Elements: 26 (26) |
Complexity: 8 |
Complexity Density: 0.53 |
|
15 |
|
public class CredentialManager { |
16 |
|
|
17 |
|
private CredentialViewController credentialViewController; |
18 |
|
|
19 |
|
private CredentialEditController credentialEditController; |
20 |
|
|
21 |
|
private ProgramVersionsController programVersionsController; |
22 |
|
|
23 |
|
protected DataModel model; |
24 |
|
|
25 |
|
private ViewContext viewContext = new ViewContext(); |
26 |
|
|
27 |
|
private static HandlerManager eventBus; |
28 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
29 |
0
|
public CredentialManager() {... |
30 |
0
|
eventBus = new HandlerManager(null); |
31 |
0
|
model = new DataModel(); |
32 |
|
} |
33 |
|
|
|
|
| 0% |
Uncovered Elements: 7 (7) |
Complexity: 2 |
Complexity Density: 0.4 |
|
34 |
0
|
public CredentialViewController getBaccViewController() {... |
35 |
0
|
model.resetRoot(); |
36 |
0
|
if (credentialViewController == null) { |
37 |
0
|
credentialViewController = new CredentialViewController(model, viewContext, eventBus); |
38 |
|
} |
39 |
0
|
eventBus.fireEvent(new ProgramViewEvent()); |
40 |
0
|
return credentialViewController; |
41 |
|
} |
42 |
|
|
|
|
| 0% |
Uncovered Elements: 6 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
43 |
0
|
public CredentialEditController getBaccEditController() {... |
44 |
0
|
model.resetRoot(); |
45 |
0
|
if (credentialEditController == null) { |
46 |
0
|
credentialEditController = new CredentialEditController(model, viewContext, eventBus); |
47 |
|
} |
48 |
0
|
return credentialEditController; |
49 |
|
} |
50 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
51 |
0
|
public ProgramVersionsController getProgramVersionsController() {... |
52 |
0
|
if (programVersionsController == null) { |
53 |
0
|
programVersionsController = new ProgramVersionsController(model, ProgramSideBar.Type.CREDENTIAL, viewContext, eventBus); |
54 |
|
} |
55 |
0
|
return programVersionsController; |
56 |
|
} |
57 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
58 |
0
|
public static HandlerManager getEventBus() {... |
59 |
0
|
return eventBus; |
60 |
|
} |
61 |
|
} |