Called by constructor in request for one action.
53 boolean isAJAX =
false;
55 if (
"vote-it".equals(action)) {
57 IContact contact = Authentication.getIContact();
63 VoteItUtil.addVote(path, vote, contact);
65 vic.setEntityPath(path);
66 vic.setForbiden(
false);
67 vic.setAllowedString(allowedString ==
null ?
null : allowedString.replaceAll(
"-",
"'"));
68 vic.renderVotes(
false);
69 }
else if (
"star-it".equals(action)) {
71 IContact contact = Authentication.getIContact();
76 SoftContact scontact =
new SoftContact();
77 scontact.contact = contact;
79 StarItUtil.addStars(path, stars, scontact);
81 sic.setEntityPath(path);
82 sic.renderStars(
false);
83 }
else if (
"comment-it".equals(action)) {
85 IContact contact = Authentication.getIContact();
91 if(
"true".equals(
remove)) {
93 }
else if(!Strings.isBlank(body)) {
94 SoftContact scontact =
new SoftContact();
95 scontact.contact = contact;
100 if(scontact.isValid()) {
101 CommentItUtil.addComment(path, body, scontact);
103 CommentItCtrl sic =
new CommentItCtrl(
constructor);
104 sic.setEntityPath(path);
105 sic.renderComments(
false);
107 }
else if (
"confirm".equals(action)) {
112 SignUp su = RegisterControl.confirmEmail(
getParameter(
"id"));
113 RegisterControl.writeResultConfirmAction(
constructor, su);
int getIntParameter(String param, int defaultValue)
String getActionParameter()
String getParameter(String param)
HttpServletResponse getResponse()
void redirect(String path)
HttpServletRequest getRequest()