18 package org.turro.action;
20 import java.io.IOException;
21 import javax.servlet.http.HttpServletRequest;
22 import javax.servlet.http.HttpServletResponse;
23 import javax.servlet.http.HttpSession;
24 import org.turro.action.queue.NotificationCategory;
25 import org.turro.elephant.context.ElephantContext;
26 import org.turro.elephant.context.IConstructor;
27 import org.turro.plugin.contacts.IContact;
42 public boolean canAct(String action);
50 public static boolean checkAgreements(HttpServletRequest request, HttpServletResponse response)
throws IOException {
51 String url = request.getRequestURL().toString();
52 HttpSession session = request.getSession(
true);
55 !url.contains(
"/user/myagreements")) {
57 if(agreements !=
null) {
static< T > T loadImplementation(Class< T > jclass)
static String getRootWebPath()
void setContact(String idContact)
boolean canSendEmails(NotificationCategory nc)
void sendIfNecessary(IConstructor constructor)
String getPendingAccessURL()
static boolean checkAgreements(HttpServletRequest request, HttpServletResponse response)
void setContact(IContact contact)
boolean declinedNotifications()
String getPendingActURL(String action)
boolean declinedAccessing()
boolean canAct(String action)