Package org.jitterbit.integration.data.entity

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


    public static EmailMessage createFailureEmail() {
        return createEmail("Failure");
    }
   
    public static EmailMessage createEmail(String name) {
        EmailMessage email = new EmailMessage(name);
        project.insertEntityUnderRoot(email);
        lookup.addItem(email);
        return email;
    }
View Full Code Here


        schedules.addSubFolder(f1);
        Folder f2 = new Folder("F2", EntityType.Schedule);
        Schedule s4 = new Schedule("s4");
        f2.addItem(s4);
        schedules.addSubFolder(f2);
        EmailMessage email = new EmailMessage();
        project.getRootFolder(EntityType.EmailMessage).addItem(email);
        assertEquals(Sets.newHashSet(s1, s2, s3, s4),
                        Sets.newHashSet(project.getAllEntitiesOfClass(Schedule.class)));
        assertTrue(project.getAllEntitiesOfClass(Operation.class).isEmpty());
        assertEquals(Sets.newHashSet(s1, s2, f1, s3, f2, s4, email),
View Full Code Here

        project.insertEntity(s1, schedules);
        Folder folder = new Folder("Folder", EntityType.Schedule);
        Schedule s2 = new Schedule("s2");
        folder.addItem(s2);
        project.insertEntity(folder, schedules);
        EmailMessage email = new EmailMessage();
        project.insertEntity(email, project.getRootFolder(EntityType.EmailMessage));
        s1.setDeployDirty(false);
        s2.setDeployDirty(false);
        email.setDeployDirty(false);
        folder.setDeployDirty(false);
        project.markAsDeployDirty();
        for (IntegrationEntity e : Arrays.asList(s1, s2, folder, email)) {
            assertTrue(e.isDeployDirty());
        }
View Full Code Here

        schedules.addItem(s1);
        Folder folder = new Folder("Folder", EntityType.Schedule);
        Schedule s2 = new Schedule("s2");
        folder.addItem(s2);
        schedules.addSubFolder(folder);
        EmailMessage email = new EmailMessage();
        project.getRootFolder(EntityType.EmailMessage).addItem(email);
        project.refreshItemLookup();
        for (IntegrationEntity e : Arrays.asList(s1, s2, folder, email)) {
            assertSame(e, project.getItemLookup().getEntity(e.getID()));
        }
View Full Code Here

        project.insertEntity(s1, schedules);
        Folder folder = new Folder("Folder", EntityType.Schedule);
        Schedule s2 = new Schedule("s2");
        folder.addItem(s2);
        project.insertEntity(folder, schedules);
        EmailMessage email = new EmailMessage();
        project.insertEntity(email, project.getRootFolder(EntityType.EmailMessage));
        markAsDeployClean(s1);
        markAsDeployClean(s2);
        markAsDeployClean(email);
        assertFalse(project.doesAtLeastOneItemNeedDeploy());
        s1.setDeployed(false);
        assertTrue(project.doesAtLeastOneItemNeedDeploy());
        s1.setDeployed(true);
        assertFalse(project.doesAtLeastOneItemNeedDeploy());
        email.setDeployDirty(true);
        assertTrue(project.doesAtLeastOneItemNeedDeploy());
    }
View Full Code Here

        schedule_4 = new Schedule("s4");
        schedule_5 = new Schedule("s5");
        scheduleSubFolder_2.addItem(schedule_4);
        scheduleSubFolder_2.addItem(schedule_5);
        schedules.addSubFolder(scheduleSubFolder_2);
        email_1 = new EmailMessage();
        project.getRootFolder(EntityType.EmailMessage).addItem(email_1);
        project.setLocationOnDisk(new File("/tmp/"));
        return project;
    }
View Full Code Here

        assertEquals(3, schedules.getNumberOfItemsRecursively());
    }
   
    private void checkEmails(IntegrationProject partial) {
        RootFolder emails = partial.getRootFolder(EntityType.EmailMessage);
        EmailMessage email_1_copy = (EmailMessage) emails.getDescendant(email_1.getID());
        assertEquals(email_1, email_1_copy);
        assertEquals(0, emails.getNumberOfSubFoldersRecursively());
        assertEquals(1, emails.getNumberOfItemsRecursively());
    }
View Full Code Here

                }
            });
        }

        public void install() {
            EmailMessage email = getDataObject().getActivity();
            email.addPropertyChangeListener(EmailMessage.PROPERTY_NAME, this);
            email.addValidationListener(this);
        }
View Full Code Here

            email.addPropertyChangeListener(EmailMessage.PROPERTY_NAME, this);
            email.addValidationListener(this);
        }

        public void dispose() {
            EmailMessage email = getDataObject().getActivity();
            email.removePropertyChangeListener(EmailMessage.PROPERTY_NAME, this);
            email.removeValidationListener(this);
        }
View Full Code Here

        super(controller, emailNode);
    }
   
    @Override
    protected void processNewValue(GraphNodeEditor editor) {
        EmailMessage email = getNode().getDataObject().getActivity();
        String oldName = email.getName();
        String newName = (String) editor.getCellEditorValue();
        if (!oldName.equals(newName)) {
            UndoableEdit edit = new EntityRenameEdit(getController(), email, newName);
            EntityRenamer renamer = getController().getView().getEntityRenamer(email);
            if (renamer.setNewName(newName)) {
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.