|
boolean | itsMe (String id) |
|
boolean | myTurn (HttpServletRequest request) |
|
void | execute (ServletContext context, HttpServletRequest request, HttpServletResponse response) |
|
◆ addInformation() [1/3]
static String org.turro.dossier.www.AddInformationCtrl.addInformation |
( |
IssueWrapper |
wrapper, |
|
|
String |
link |
|
) |
| |
|
static |
◆ addInformation() [2/3]
static String org.turro.dossier.www.AddInformationCtrl.addInformation |
( |
IssueWrapper |
wrapper, |
|
|
String |
link, |
|
|
String |
template |
|
) |
| |
|
static |
Definition at line 88 of file AddInformationCtrl.java.
89 IConstructor constructor = Application.getApplication().getConstructor();
90 if(constructor.isInRole(
"issue:edit")) {
91 ElephantMarker marker =
new ElephantMarker(constructor);
92 marker.put(
"projectContext",
new ProjectContext());
93 marker.put(
"action", DirectContents.createRelativeURL(
getIdentifier()));
94 marker.put(
"wrapper", wrapper);
95 marker.put(
"issue", wrapper.getIssue());
96 marker.put(
"redirect", link);
97 if(constructor.isInRole(
"issue:dossier")) {
98 List<Dossier> dossiers =
new DossierResults().getDossierList();
99 if(dossiers.stream().anyMatch(d -> d.getId().equals(wrapper.getIssue().getId()))) {
100 marker.put(
"dossiers", dossiers);
104 return marker.parse(
"issue", Strings.isBlank(
template) ?
"addinfo" :
template);
◆ addInformation() [3/3]
static String org.turro.dossier.www.AddInformationCtrl.addInformation |
( |
String |
issueId, |
|
|
String |
link, |
|
|
String |
template |
|
) |
| |
|
static |
Definition at line 78 of file AddInformationCtrl.java.
79 Long
id = Long.valueOf(issueId);
80 Issue issue =
new DossierPU().find(Issue.class,
id);
◆ execute()
void org.turro.dossier.www.AddInformationCtrl.execute |
( |
ServletContext |
context, |
|
|
HttpServletRequest |
request, |
|
|
HttpServletResponse |
response |
|
) |
| |
Implements org.turro.elephant.direct.IDirectContent.
Definition at line 124 of file AddInformationCtrl.java.
125 if(ServletFileUpload.isMultipartContent(request)) {
127 processInformation(request, response);
128 }
catch (FileUploadException | IOException ex) {
129 Logger.getLogger(AddInformationCtrl.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
◆ getIdentifier()
static String org.turro.dossier.www.AddInformationCtrl.getIdentifier |
( |
| ) |
|
|
static |
Definition at line 109 of file AddInformationCtrl.java.
110 return AddInformationCtrl.class.getAnnotation(DirectContent.class).identifier();
◆ itsMe()
boolean org.turro.dossier.www.AddInformationCtrl.itsMe |
( |
String |
id | ) |
|
◆ myTurn()
boolean org.turro.dossier.www.AddInformationCtrl.myTurn |
( |
HttpServletRequest |
request | ) |
|
The documentation for this class was generated from the following file: