|
boolean | itsMe (String id) |
|
boolean | myTurn (HttpServletRequest request) |
|
void | execute (ServletContext context, HttpServletRequest request, HttpServletResponse response) |
|
- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 60 of file AttachAction.java.
◆ createURL()
static String org.turro.attach.www.AttachAction.createURL |
( |
IConstructor |
constructor, |
|
|
String |
values |
|
) |
| |
|
static |
Definition at line 79 of file AttachAction.java.
80 String exrino = Actions.createRightNowAction(values);
81 return ElephantContext.getRootWebPath() +
static String getIdentifier()
◆ delAttachment()
static String org.turro.attach.www.AttachAction.delAttachment |
( |
Attachment |
attachment, |
|
|
String |
link |
|
) |
| |
|
static |
Definition at line 74 of file AttachAction.java.
75 IConstructor constructor = Application.getApplication().getConstructor();
76 return createURL(constructor,
"action=delete;id=" + attachment.getId() +
";redirect=" + HttpUtil.encodeURL(link));
static String createURL(IConstructor constructor, String values)
◆ execute()
void org.turro.attach.www.AttachAction.execute |
( |
ServletContext |
context, |
|
|
HttpServletRequest |
request, |
|
|
HttpServletResponse |
response |
|
) |
| |
Implements org.turro.elephant.direct.IDirectContent.
Definition at line 101 of file AttachAction.java.
102 if(ServletFileUpload.isMultipartContent(request)) {
104 processUpload(request, response);
105 }
catch (FileUploadException | IOException ex) {
106 Logger.getLogger(AttachAction.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
110 processAction(request, response);
111 }
catch (IOException ex) {
112 Logger.getLogger(AttachAction.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
◆ getIdentifier()
static String org.turro.attach.www.AttachAction.getIdentifier |
( |
| ) |
|
|
static |
Definition at line 86 of file AttachAction.java.
87 return AttachAction.class.getAnnotation(DirectContent.class).identifier();
◆ itsMe()
boolean org.turro.attach.www.AttachAction.itsMe |
( |
String |
id | ) |
|
◆ myTurn()
boolean org.turro.attach.www.AttachAction.myTurn |
( |
HttpServletRequest |
request | ) |
|
◆ newAttachment()
static String org.turro.attach.www.AttachAction.newAttachment |
( |
String |
entityPath, |
|
|
String |
link, |
|
|
String |
template |
|
) |
| |
|
static |
Definition at line 62 of file AttachAction.java.
63 IConstructor constructor = Application.getApplication().getConstructor();
64 if(constructor.isInRole(
"attach:new")) {
65 ElephantMarker marker =
new ElephantMarker(constructor);
66 marker.put(
"action", DirectContents.createRelativeURL(
getIdentifier()));
67 marker.put(
"entityPath", entityPath);
68 marker.put(
"redirect", link);
69 return marker.parse(
"attachment", Strings.isBlank(
template) ?
"newAttachment" :
template);
The documentation for this class was generated from the following file: