|
static boolean | checkAgreements (HttpServletRequest request, HttpServletResponse response) throws IOException |
|
- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 33 of file IAgreements.java.
◆ canAccess()
boolean org.turro.action.IAgreements.canAccess |
( |
| ) |
|
◆ canAct()
boolean org.turro.action.IAgreements.canAct |
( |
String |
action | ) |
|
◆ canNotify()
boolean org.turro.action.IAgreements.canNotify |
( |
| ) |
|
◆ canSendEmails()
◆ checkAgreements()
static boolean org.turro.action.IAgreements.checkAgreements |
( |
HttpServletRequest |
request, |
|
|
HttpServletResponse |
response |
|
) |
| throws IOException |
|
static |
Definition at line 50 of file IAgreements.java.
51 String url = request.getRequestURL().toString();
52 HttpSession session = request.getSession(
true);
53 if(session.getAttribute(Contacts.LOGGED_ICONTACT) !=
null &&
54 !Boolean.TRUE.equals(session.getAttribute(IAgreements.AGREE_CHECKED)) &&
55 !url.contains(
"/user/myagreements")) {
56 IAgreements agreements = Plugins.loadImplementation(IAgreements.class,
"agreements");
57 if(agreements !=
null) {
58 agreements.setContact((IContact) session.getAttribute(Contacts.LOGGED_ICONTACT));
59 if(!agreements.canAccess()) {
60 response.sendRedirect(ElephantContext.getRootWebPath() + agreements.getPendingAccessURL());
63 session.setAttribute(IAgreements.AGREE_CHECKED, Boolean.TRUE);
◆ declinedAccessing()
boolean org.turro.action.IAgreements.declinedAccessing |
( |
| ) |
|
◆ declinedNotifications()
boolean org.turro.action.IAgreements.declinedNotifications |
( |
| ) |
|
◆ getPendingAccessURL()
String org.turro.action.IAgreements.getPendingAccessURL |
( |
| ) |
|
◆ getPendingActURL()
String org.turro.action.IAgreements.getPendingActURL |
( |
String |
action | ) |
|
◆ isValid()
boolean org.turro.action.IAgreements.isValid |
( |
| ) |
|
◆ sendIfNecessary()
void org.turro.action.IAgreements.sendIfNecessary |
( |
IConstructor |
constructor | ) |
|
◆ setContact() [1/2]
void org.turro.action.IAgreements.setContact |
( |
IContact |
contact | ) |
|
◆ setContact() [2/2]
void org.turro.action.IAgreements.setContact |
( |
String |
idContact | ) |
|
◆ AGREE_CHECKED
String org.turro.action.IAgreements.AGREE_CHECKED = "AGREE_CHECKED" |
The documentation for this interface was generated from the following file: