Package org.jitterbit.integration.data.entity.factory

Examples of org.jitterbit.integration.data.entity.factory.IntegrationEntityFactory.createEntity()


    @Override
    public void createEntity(EntityType type, Folder parent, boolean openEditor, Callback callback) {
        checkArgument(type != EntityType.Folder, "Folders cannot be created through this factory");
        IntegrationEntityFactoryCallback factoryCallback = createFactoryCallback(type, callback, openEditor);
        IntegrationEntityFactory factory = getEntityFactory(type);
        factory.createEntity(parent, factoryCallback);
    }

    private IntegrationEntityFactory getEntityFactory(EntityType type) {
        EntityConfig config = view.getEntityConfig(type);
        return config.getFactory();
View Full Code Here


    }

    private void createFolder() {
        ParentFolderLocator locator = new ParentFolderLocator(view);
        IntegrationEntityFactory factory = new FolderFactory();
        factory.createEntity(locator.getParent(EntityType.Folder), new FactoryCallback());
    }

    private void setEnabled() {
        setEnabled(parent != null && itemType != null);
    }
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.