19 package org.turro.contacts.action;
21 import java.io.PrintWriter;
22 import org.turro.string.Strings;
23 import org.turro.auth.Authentication;
24 import org.turro.commentit.CommentItUtil;
25 import org.turro.contacts.SignUp;
26 import org.turro.contacts.zul.register.RegisterControl;
27 import org.turro.elephant.context.ElephantContext;
28 import org.turro.elephant.context.IAction;
29 import org.turro.elephant.impl.abstracts.AbstractAction;
30 import org.turro.plugin.contacts.IContact;
31 import org.turro.plugin.contacts.SoftContact;
32 import org.turro.starit.StarItUtil;
33 import org.turro.voteit.VoteItUtil;
34 import org.turro.www.commentit.CommentItCtrl;
35 import org.turro.www.starit.StarItCtrl;
36 import org.turro.www.voteit.VoteItCtrl;
53 boolean isAJAX =
false;
55 if (
"vote-it".equals(action)) {
67 vic.
setAllowedString(allowedString ==
null ?
null : allowedString.replaceAll(
"-",
"'"));
69 }
else if (
"star-it".equals(action)) {
83 }
else if (
"comment-it".equals(action)) {
91 if(
"true".equals(
remove)) {
93 }
else if(!Strings.isBlank(body)) {
107 }
else if (
"confirm".equals(action)) {
static IContact getIContact()
static String getEncoding()
int getIntParameter(String param, int defaultValue)
String getActionParameter()
static void addStars(Object entity, int stars, SoftContact contact)
static void addVote(Object entity, int vote, IContact contact)
void setEntityPath(String entityPath)
void renderStars(boolean container)
void setForbiden(boolean forbiden)
void setEntityPath(String entityPath)
void renderVotes(boolean container)
void setAllowedString(String allowedString)
String getParameter(String param)
HttpServletResponse getResponse()
void redirect(String path)
HttpServletRequest getRequest()