Search in sources :

Example 1 with EmailSender

use of teammates.logic.api.EmailSender in project teammates by TEAMMATES.

the class Action method initialiseAttributes.

@SuppressWarnings("unchecked")
protected void initialiseAttributes(HttpServletRequest req) {
    request = req;
    requestUrl = HttpRequestHelper.getRequestedUrl(request);
    logic = new Logic();
    gateKeeper = new GateKeeper();
    setTaskQueuer(new TaskQueuer());
    setEmailSender(new EmailSender());
    requestParameters = request.getParameterMap();
    session = request.getSession();
    sessionToken = CryptoHelper.computeSessionToken(session.getId());
    parseAndInitializeRegkeyFromRequest();
    // Set error status forwarded from the previous action
    isError = getRequestParamAsBoolean(Const.ParamsNames.ERROR);
}
Also used : TaskQueuer(teammates.logic.api.TaskQueuer) GateKeeper(teammates.logic.api.GateKeeper) EmailSender(teammates.logic.api.EmailSender) Logic(teammates.logic.api.Logic)

Example 2 with EmailSender

use of teammates.logic.api.EmailSender in project teammates by TEAMMATES.

the class AutomatedAction method initialiseAttributes.

protected void initialiseAttributes(HttpServletRequest request, HttpServletResponse response) {
    this.request = request;
    this.response = response;
    this.logic = new Logic();
    setTaskQueuer(new TaskQueuer());
    setEmailSender(new EmailSender());
}
Also used : TaskQueuer(teammates.logic.api.TaskQueuer) EmailSender(teammates.logic.api.EmailSender) Logic(teammates.logic.api.Logic)

Aggregations

EmailSender (teammates.logic.api.EmailSender)2 Logic (teammates.logic.api.Logic)2 TaskQueuer (teammates.logic.api.TaskQueuer)2 GateKeeper (teammates.logic.api.GateKeeper)1