Package org.jitterbit.integration.data.entity

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


        addEntry("Name:", entity.getName());
        if (DebugMode.IS_ENABLED) {
            addEntry("GUID:", entity.getID());
        }
        if (includePath) {
            addEntry("Path:", new EntityPath(entity).toString());
        }
        addCreatedDate(entity);
        addModifiedDate(entity);
        addDescription(entity);
        if (entity.isDeleted()) {
View Full Code Here


                public void run() {
                    ExpressionArea area = new ExpressionArea();
                    IntegrationProject project = IntegrationProject.createNewProject("Test");
                    Operation op = new Operation("Op");
                    project.insertEntityUnderRoot(op);
                    String oldPath = new EntityPath(op).toString();
                    String expression = getRunOperationCall(op);
                    area.setText(ScriptConstants.wrapInTags(expression));
                    op.setName("$Op");
                    String newPath = new EntityPath(op).toString();
                    PathChangeHandler changeHandler = new PathChangeHandler(area);
                    changeHandler.pathsHaveChanged(Arrays.asList(new PathChange(op, oldPath, newPath)));
                    String newExpression = area.getText();
                    assertTrue(newExpression.contains(getRunOperationCall(op)));
                }
View Full Code Here

            fail(e.getMessage());
        }
    }

    private String getRunOperationCall(Operation op) {
        return "RunOperation(" + ScriptConstants.BEGIN_TAG + new EntityPath(op).toString() + ScriptConstants.END_TAG + ")";
    }
View Full Code Here

        @Override
        public void replaced(List<IntegrationEntity> chunks) {
            int size = chunks.size();
            if (size > 0) {
                IntegrationEntity last = chunks.get(size - 1);
                String path = new EntityPath(last, false).toString();
                if (path.length() > 50) {
                    int start = path.length() - 50;
                    path = "..." + path.substring(start);
                }
                statusLabel.setText("Replaced: " + path);
View Full Code Here

        EntityIcons.Category category = EntityIcons.Category.fromValidationStatus(validation);
        Icon icon = IconStore.getIcons(entity).getIcon(category, size);
        renderer.setIcon(icon);
        String name = entity.getName();
        if (longMode) {
            String fullPath = new EntityPath(entity, false).toString();
            renderer.setText(name + " [ " + fullPath + "]");
        } else {
            int maxLength = 50;
            if (name.length() <= maxLength) {
                renderer.setText(name);
View Full Code Here

            IntegrationProjectLock.release();
        }
    }

    private IntegrationProject getProject(IntegrationEntity entity) {
        IntegrationEntity root = new EntityPath(entity).root();
        return (root instanceof IntegrationProject ? (IntegrationProject) root : null);
    }
View Full Code Here

    /**
     * Returns the path to use for display when a project item is used as argument to a script
     * function. This does not include the surrounding tags.
     */
    public static String getProjectItemPath(IntegrationEntity e) {
        return new EntityPath(e, false).toString();
    }
View Full Code Here

     */
    public void publish(IntegrationEntity entity) {
        if (entity == null) {
            ApplicationMessageEvent.postInformationMessage(sender, " "); //$NON-NLS-1$
        } else {
            EntityPath path = new EntityPath(entity, includeProject);
            ApplicationMessageEvent.postInformationMessage(sender, path.toString(), new ApplicationMessageEvent.LifeTime(lifetime));
        }
    }
View Full Code Here

TOP

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

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.