|
boolean | itsMe (String id) |
|
boolean | myTurn (HttpServletRequest request) |
|
void | execute (ServletContext context, HttpServletRequest request, HttpServletResponse response) |
|
◆ editDossier() [1/2]
static String org.turro.dossier.www.EditDossierCtrl.editDossier |
( |
Dossier |
dossier, |
|
|
String |
link, |
|
|
String |
template |
|
) |
| |
|
static |
Definition at line 72 of file EditDossierCtrl.java.
73 IConstructor constructor = Application.getApplication().getConstructor();
75 DossierWrapper wrapper =
new DossierWrapper(dossier);
76 if(wrapper.isParticipant()) {
77 ElephantMarker marker =
new ElephantMarker(constructor);
78 marker.put(
"action", DirectContents.createRelativeURL(
getIdentifier()));
79 marker.put(
"redirect", link);
80 marker.put(
"webDefault", DescribeItUtil.descriptionString(DescribeItUtil.DEFAULT_ID, dossier));
81 marker.put(
"dossier", dossier);
82 AttachCtrl ac =
new AttachCtrl(constructor);
83 ac.setEntityPath(DossierPU.getObjectPath(dossier));
84 ac.setPublicOnly(
false);
85 marker.put(
"ac", ac.parseAttachments());
86 return marker.parse(
"dossier", Strings.isBlank(
template) ?
"editDossier" :
template);
static String getIdentifier()
◆ editDossier() [2/2]
static String org.turro.dossier.www.EditDossierCtrl.editDossier |
( |
String |
dossierId, |
|
|
String |
link, |
|
|
String |
template |
|
) |
| |
|
static |
Definition at line 66 of file EditDossierCtrl.java.
67 Long
id = Long.valueOf(dossierId);
68 Dossier dossier =
new DossierPU().find(Dossier.class,
id);
static String editDossier(String dossierId, String link, String template)
◆ execute()
void org.turro.dossier.www.EditDossierCtrl.execute |
( |
ServletContext |
context, |
|
|
HttpServletRequest |
request, |
|
|
HttpServletResponse |
response |
|
) |
| |
Implements org.turro.elephant.direct.IDirectContent.
Definition at line 107 of file EditDossierCtrl.java.
108 if(ServletFileUpload.isMultipartContent(request)) {
110 processInformation(request, response);
111 }
catch (FileUploadException | IOException ex) {
112 Logger.getLogger(EditDossierCtrl.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
◆ getIdentifier()
static String org.turro.dossier.www.EditDossierCtrl.getIdentifier |
( |
| ) |
|
|
static |
Definition at line 92 of file EditDossierCtrl.java.
93 return EditDossierCtrl.class.getAnnotation(DirectContent.class).identifier();
◆ itsMe()
boolean org.turro.dossier.www.EditDossierCtrl.itsMe |
( |
String |
id | ) |
|
◆ myTurn()
boolean org.turro.dossier.www.EditDossierCtrl.myTurn |
( |
HttpServletRequest |
request | ) |
|
The documentation for this class was generated from the following file: