Package org.jitterbit.integration.data.entity

Examples of org.jitterbit.integration.data.entity.EmailMessage


*/
public final class EmailSearchValuesCollector implements SearchValuesCollector {

    @Override
    public List<String> getValues(IntegrationEntity object) {
        EmailMessage email = (EmailMessage) object;
        return Arrays.asList(
                email.getSmtpServers(),
                email.getSendTo(),
                email.getSentFrom(),
                email.getAccountName(),
                email.getCC(),
                email.getBCC(),
                email.getReplyTo(),
                email.getSubject(),
                email.getText()
        );
    }
View Full Code Here


   
    @Test
    public void testDeleteSeveralEntities() {
        IntegrationEntity schedule = new Schedule("Test Schedule");
        project.insertEntity(schedule, project.getRootFolder(EntityType.Schedule));
        IntegrationEntity email = new EmailMessage("Test Schedule");
        project.insertEntity(email, project.getRootFolder(EntityType.EmailMessage));
        Listener lst = new SeveralEntitiesDeletedListener(schedule, email);
        project.addProjectListener(lst);
        project.deleteItems(Arrays.asList(schedule, email));
        lst.verify();
View Full Code Here

    }
   
    @Test
    public void testIncompatibleItems() {
        DefaultEntityMover mover = new DefaultEntityMover();
        mover.setItemsToMove(Arrays.asList(new Schedule("S"), new EmailMessage()));
        assertFalse(mover.isAllowedTarget(new Folder("F", EntityType.Schedule)));
        assertFalse(mover.isAllowedTarget(new Folder("F", EntityType.EmailMessage)));
        mover.setItemsToMove(Arrays.asList(new Schedule("S"), new Folder("F", EntityType.Schedule)));
        assertFalse(mover.isAllowedTarget(new Folder("F", EntityType.Schedule)));
        mover.setItemsToMove(Arrays.asList(new Folder("F", EntityType.Operation)));
View Full Code Here

        assertFalse(mover.isAllowedTarget(new Folder("F", EntityType.Schedule)));
    }
   
    @Test
    public void testTargetAlreadyParentItem() {
        testTargetAlreadyParent(new Folder("F", EntityType.EmailMessage), new EmailMessage());
    }
View Full Code Here

            build(failureOp, built);
        }
    }

    private void checkSuccessEmail(OperationWrapper from) {
        EmailMessage email = getSuccessEmail(from);
        if (email != null) {
            link(from, email, RouteType.SUCCESS);
        }
    }
View Full Code Here

            link(from, email, RouteType.SUCCESS);
        }
    }

    private void checkFailureEmail(OperationWrapper from) {
        EmailMessage email = getFailureEmail(from);
        if (email != null) {
            link(from, email, RouteType.FAILURE);
        }
    }
View Full Code Here

                removeFailureOperation(op);
            }
        }

        private void updateSuccessMessage(OperationWrapper op) {
            EmailMessage success = entityLookup.getEntity(op.getSuccessEmailId(), EmailMessage.class);
            if (success != null) {
                setSuccessEmail(op, success);
            } else {
                removeSuccessEmail(op);
            }
View Full Code Here

                removeSuccessEmail(op);
            }
        }

        private void updateFailureMessage(OperationWrapper op) {
            EmailMessage failure = entityLookup.getEntity(op.getFailureEmailId(), EmailMessage.class);
            if (failure != null) {
                setFailureEmail(op, failure);
            } else {
                removeFailureEmail(op);
            }
View Full Code Here

            }
            Operation failureOp = getFailureOp(opWrapper);
            if (failureOp != null) {
                link(opWrapper, failureOp, RouteType.FAILURE);
            }
            EmailMessage successEmail = getSuccessEmail(opWrapper);
            if (successEmail != null) {
                link(opWrapper, successEmail, RouteType.SUCCESS);
            }
            EmailMessage failureEmail = getFailureEmail(opWrapper);
            if (failureEmail != null) {
                link(opWrapper, failureEmail, RouteType.FAILURE);
            }
            return opWrapper;
        }
View Full Code Here

    private IntegrationEntity item;

    @Before
    public void setUp() {
        item = new EmailMessage("Email");
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.entity.EmailMessage

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.