BrightSide Workbench Full Report + Source Code
org.turro.dossier.command.DossierInterceptor Class Reference
Inheritance diagram for org.turro.dossier.command.DossierInterceptor:
Collaboration diagram for org.turro.dossier.command.DossierInterceptor:

Protected Member Functions

boolean doExecuteWeb (IConstructor constructor, String goTo, KeyValueMap kvm) throws IOException
 
boolean doExecuteApp (Application application, String goTo, KeyValueMap kvm)
 

Additional Inherited Members

- Public Member Functions inherited from org.turro.action.AbstractInterceptor
boolean executeWeb (IConstructor constructor, String goTo, KeyValueMap kvm)
 
boolean executeApp (Application application, String goTo, KeyValueMap kvm)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 36 of file DossierInterceptor.java.

Member Function Documentation

◆ doExecuteApp()

boolean org.turro.dossier.command.DossierInterceptor.doExecuteApp ( Application  application,
String  goTo,
KeyValueMap  kvm 
)
protected

Reimplemented from org.turro.action.AbstractInterceptor.

Definition at line 81 of file DossierInterceptor.java.

81  {
82  if("issue".equals(goTo)) {
83  if(Application.getApplication().isInRole("issue:edit")) {
84  DossierMenu.showIssue(kvm.get(Long.class, "issueId"));
85  }
86  return true;
87  } else if("dossier".equals(goTo)) {
88  if(Application.getApplication().isInRole("dossier:edit")) {
89  DossierMenu.showDossier(kvm.get(Long.class, "dossierId"));
90  }
91  return true;
92  } else if("project".equals(goTo)) {
93  if(Application.getApplication().isInRole("dossier:edit")) {
94  DossierMenu.showDossier(kvm.get(Long.class, "projectId"));
95  }
96  return true;
97  } else if("myissues".equals(goTo)) {
98  DossierMenu.showMyIssues();
99  return true;
100  }
101  return false;
102  }
Here is the call graph for this function:

◆ doExecuteWeb()

boolean org.turro.dossier.command.DossierInterceptor.doExecuteWeb ( IConstructor  constructor,
String  goTo,
KeyValueMap  kvm 
) throws IOException
protected

Reimplemented from org.turro.action.AbstractInterceptor.

Definition at line 39 of file DossierInterceptor.java.

39  {
40  if("dossier".equals(goTo)) {
41  String path = ElephantContext.getEntityWebContext("/dossier");
42  if(Strings.isBlank(path)) {
43  path = "/user/mydossiers";
44  }
45  constructor.redirect(Parameters.path(path)
46  .add("item", kvm.get("dossierId"))
47  .plain());
48  constructor.redirect(path + "?item=" + kvm.get(Long.class, "dossierId"));
49  return true;
50  } else if("project".equals(goTo)) {
51  String path = ElephantContext.getEntityWebContext("/project");
52  if(Strings.isBlank(path)) {
53  path = "/user/myprojects";
54  }
55  constructor.redirect(Parameters.path(path)
56  .add("item", kvm.get("projectId"))
57  .plain());
58  return true;
59  } else if("axproject".equals(goTo)) {
60  String path = ElephantContext.getEntityWebContext("/axproject");
61  if(Strings.isBlank(path)) {
62  path = ElephantContext.getEntityWebContext("/project");
63  if(!Strings.isBlank(path)) {
64  path = path + "/alliance";
65  }
66  }
67  if(Strings.isBlank(path)) {
68  path = "/user/alliance/projects";
69  }
70  constructor.redirect(Parameters.path(path)
71  .add("serverDomain", kvm.get("server"))
72  .add("service", "/axserver")
73  .add("item", kvm.get("axprojectId"))
74  .plain());
75  return true;
76  }
77  return false;
78  }
Here is the call graph for this function:

The documentation for this class was generated from the following file: