|
boolean | itsMe (String id) |
|
boolean | myTurn (HttpServletRequest request) |
|
void | execute (ServletContext context, HttpServletRequest request, HttpServletResponse response) |
|
◆ createPopup()
static String org.turro.action.EntityInfoContent.createPopup |
( |
EntityInfoType |
type, |
|
|
LinkType |
link, |
|
|
String |
path |
|
) |
| |
|
static |
Definition at line 40 of file EntityInfoContent.java.
41 return "popupInfo('+Info', '" +
static String createURL(EntityInfoType type, LinkType link)
◆ createURL() [1/2]
Definition at line 46 of file EntityInfoContent.java.
48 type = EntityInfoType.SUMMARY;
53 return ElephantContext.getRootWebPath() + DirectContents.DIRECT_CONTENT_PATH +
54 getIdentifier() +
"?type=" + type.toString() +
"&link=" + link.toString();
static String getIdentifier()
◆ createURL() [2/2]
static String org.turro.action.EntityInfoContent.createURL |
( |
String |
path, |
|
|
EntityInfoType |
type, |
|
|
LinkType |
link |
|
) |
| |
|
static |
◆ execute()
void org.turro.action.EntityInfoContent.execute |
( |
ServletContext |
context, |
|
|
HttpServletRequest |
request, |
|
|
HttpServletResponse |
response |
|
) |
| |
Implements org.turro.elephant.direct.IDirectContent.
Definition at line 76 of file EntityInfoContent.java.
78 Map<String, String[]> pars = request.getParameterMap();
79 EntityInfoType type = pars.containsKey(
"type") ? EntityInfoType.valueOf(pars.get(
"type")[0]) :
null;
80 LinkType link = pars.containsKey(
"link") ? LinkType.valueOf(pars.get(
"link")[0]) :
null;
81 response.setContentType(
"text/html;charset=" + ElephantContext.getEncoding());
82 EntitiesInfo.writeEntityInfo(response.getWriter(), pars.get(
"path")[0], type, link);
83 }
catch (IOException ex) {
84 Logger.getLogger(EntityInfoContent.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
◆ getIdentifier()
static String org.turro.action.EntityInfoContent.getIdentifier |
( |
| ) |
|
|
static |
Definition at line 61 of file EntityInfoContent.java.
62 return EntityInfoContent.class.getAnnotation(DirectContent.class).identifier();
◆ itsMe()
boolean org.turro.action.EntityInfoContent.itsMe |
( |
String |
id | ) |
|
◆ myTurn()
boolean org.turro.action.EntityInfoContent.myTurn |
( |
HttpServletRequest |
request | ) |
|
The documentation for this class was generated from the following file: