Package org.jitterbit.integration.data.entity

Examples of org.jitterbit.integration.data.entity.Folder.addItem()


    // Start by checking if it belongs to a folder.
    // This will implicitly add the item to a project.
    List<Folder> folderList = m_itemIdParentFolderListMap.get( entity.getID() );
    if ( folderList != null && !folderList.isEmpty() ) {
      Folder nextFolder = folderList.get(0);
      nextFolder.addItem(entity);
      folderList.remove(0);
      return;
    }
    else {
      project.getRootFolder(entity.getEntityType()).addItem(entity);
View Full Code Here


        schedules.addItem(s1);
        Schedule s2 = new Schedule("s2");
        schedules.addItem(s2);
        Folder f1 = new Folder("F1", EntityType.Schedule);
        Schedule s3 = new Schedule("s3");
        f1.addItem(s3);
        schedules.addSubFolder(f1);
        Folder f2 = new Folder("F2", EntityType.Schedule);
        Schedule s4 = new Schedule("s4");
        f2.addItem(s4);
        schedules.addSubFolder(f2);
View Full Code Here

        Schedule s3 = new Schedule("s3");
        f1.addItem(s3);
        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)));
View Full Code Here

        RootFolder schedules = project.getRootFolder(EntityType.Schedule);
        Schedule s1 = new Schedule("s1");
        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);
View Full Code Here

        RootFolder schedules = project.getRootFolder(EntityType.Schedule);
        Schedule s1 = new Schedule("s1");
        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)) {
View Full Code Here

        RootFolder schedules = project.getRootFolder(EntityType.Schedule);
        Schedule s1 = new Schedule("s1");
        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);
View Full Code Here

    public void run() {
        installNameValidator();
        Schedule moved = new Schedule("S");
        Schedule existing = new Schedule("S");
        Folder parent = new Folder("F", EntityType.Schedule);
        parent.addItem(existing);
        DeleteRequestHandler deleter = new DeleteRequestHandler() {
           
            @Override
            public boolean deleteRequested(List<IntegrationEntity> entitiesToDelete) {
                return false;
View Full Code Here

        Folder originalParent = new Folder("F1", EntityType.Schedule);
        Folder newParent = new Folder("F2", EntityType.Schedule);
        String name = "S";
        Schedule scheduleToMove = new Schedule(name);
        originalParent.addItem(scheduleToMove);
        newParent.addItem(new Schedule(name));
        DefaultEntityMover mover = new DefaultEntityMover();
        mover.setConflictResolver(ConflictResolver.DO_NOT_MOVE);
        mover.setItemsToMove(Arrays.asList(scheduleToMove));
        assertTrue(mover.isAllowedTarget(newParent));
        assertTrue(mover.executeMove(newParent).isEmpty());
View Full Code Here

    public void run() {
        installNameValidator();
        Schedule moved = new Schedule("S");
        Schedule existing = new Schedule("S");
        Folder parent = new Folder("F", EntityType.Schedule);
        parent.addItem(existing);
        DialogConflictResolver resolver = createResolver();
        resolver.resolve(moved, parent, existing);
    }

    private DialogConflictResolver createResolver() {
View Full Code Here

        frame.publish();
    }
   
    private EntityTreeSelector<Source> createSelector() {
        Folder secret = new Folder("Secret", EntityType.Source);
        secret.addItem(new Source("Deep Throat"));
        project.insertEntityUnderRoot(secret);
        Folder amusement = new Folder("Of Amusement", EntityType.Source);
        amusement.addItem(new Source("Jerry's Apartment"));
        project.insertEntityUnderRoot(amusement);
        Source toSelect = new Source("www.jitterbit.com");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.