Package org.eurekastreams.server.action.request

Examples of org.eurekastreams.server.action.request.SendWelcomeEmailRequest


    {
        context.checking(new Expectations()
        {
            {
                oneOf(actionContext).getParams();
                will(returnValue(new SendWelcomeEmailRequest("somebody@example.com", "somebody1")));

                oneOf(emailerFactory).createMessage();
                will(returnValue(message));

                oneOf(emailerFactory).setTo(message, "somebody@example.com");
View Full Code Here


     * @return True if successful.
     */
    @Override
    public Boolean execute(final ActionContext inActionContext)
    {
        SendWelcomeEmailRequest request = (SendWelcomeEmailRequest) inActionContext.getParams();
        String emailAddress = request.getEmailAddress();
        String accountId = request.getAccountId();

        if (emailAddress != null && emailAddress != "")
        {
            try
            {
View Full Code Here

        // Send email notification if necessary
        if (createRequest.getSendEmail() && sendWelcomeEmailAction != null && !sendWelcomeEmailAction.isEmpty())
        {
            inActionContext.getUserActionRequests().add(
                    new UserActionRequest(sendWelcomeEmailAction, null, new SendWelcomeEmailRequest(
                            inPerson.getEmail(), inPerson.getAccountId())));
        }

        return person;
    }
View Full Code Here

TOP

Related Classes of org.eurekastreams.server.action.request.SendWelcomeEmailRequest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.