Package org.jitterbit.integration.data.entity

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


        this.pageDisplayer = pageDisplayer;
        lookup = ProjectUtils.getProject(tf).getItemLookup();
    }

    public StructureLink inputLink() {
        IntegrationEntity item = lookup.getEntity(tf.getSourceId());
        if (item == null) {
            item = lookup.getEntity(tf.getSourceTextDocumentId());
            if (item == null) {
                DataStructure s = tf.getInputStructure();
                if (s instanceof WebServiceStructure) {
View Full Code Here


        }
        return item != null ? new StructureLink(item, pageDisplayer) : StructureLink.none();
    }

    public StructureLink outputLink() {
        IntegrationEntity item = lookup.getEntity(tf.getTargetId());
        if (item == null) {
            item = lookup.getEntity(tf.getTargetTextDocumentId());
            if (item == null) {
                DataStructure s = tf.getOutputStructure();
                if (s instanceof WebServiceStructure) {
View Full Code Here

    public Locatable getDatabase() {
        if (database != null) {
            return database;
        }
        // XXX: The (Locatable) cast is OK, but the (EntitySelectionPage) cast is fragile.
        IntegrationEntity item = ((EntitySelectionPage) startPage).getSelectedEntity();
        return (Locatable) item;
    }
View Full Code Here

        ui.addRow("Details:", createDetailsArea(), true);
    }

    private JLabel createEntityLabel() {
        JLabel label = ui.makeValueLabel("");
        IntegrationEntity entity = entityLookup.getEntity(result.getSubjectId());
        if (entity != null) {
            RendererUtils.decorateRenderer(label, entity, false);
        } else {
            label.setText("Unknown entity - ID = " + result.getSubjectId() + "]");
        }
View Full Code Here

            List<IntegrationEntity> revivalOrder = Lists.newArrayList();
            // TODO: Add some limit here.
            while (!toRevive.isEmpty()) {
                for (Iterator<IntegrationEntity> it = toRevive.iterator(); it.hasNext();) {
                    IntegrationEntity applicant = it.next();
                    if (qualifiesForRevival(applicant)) {
                        revivalOrder.add(applicant);
                        it.remove();
                        break;
                    }
View Full Code Here

        private boolean qualifiesForRevival(IntegrationEntity applicant) {
            for (IntegrationEntity entity : toRevive) {
                if (applicant == entity) {
                    continue;
                }
                IntegrationEntity parent = applicant.getParent();
                while (parent != null && !(parent instanceof RootFolder)) {
                    if (toRevive.contains(parent)) {
                        return false;
                    }
                    parent = parent.getParent();
                }
                for (IntegrationEntity req : dependencyStore.getRequiredObjects(applicant)) {
                    if (toRevive.contains(req)) {
                        return false;
                    }
View Full Code Here

        return particles.isEmpty() ? null : searchDown(root, 0);
    }

    private IntegrationEntity searchDown(IntegrationEntity parent, int partIndex) {
        PathParticle p = particles.get(partIndex);
        IntegrationEntity e = p.findMatchingChild(parent);
        if (e == null) {
            return null;
        }
        if (partIndex == (particles.size() - 1)) {
            return e;
View Full Code Here

        return indexOfColumn(ENTITY);
    }

    @Override
    protected Object[] getColumnDataForTypedObject(EntityTestResult result) {
        IntegrationEntity entity = entityLookup.getEntity(result.getSubjectId());
        if (entity == null) {
            // TODO: Log warning?
            return null;
        }
        if (includeDate) {
View Full Code Here

     *            the <tt>EntityLink</tt> to be added.
     * @throws IllegalArgumentException
     *             if <tt>link</tt> is null.
     */
    public void addLink(EntityLink link) {
        IntegrationEntity main = link.getMainObject();
        IntegrationEntity dep = link.getDependantObject();
        // Delete the old link, if there is one:
        EntityLink old = mainToDependants.get(main, dep);
        if (old != null) {
            removeLink(old);
        }
View Full Code Here

        if (path.hasWildcards()) {
            return fragment;
        } else if (path.isPathToFolder()) {
            return addWildcardAndTryCompleteAgain(fragment);
        } else {
            IntegrationEntity e = path.search(project);
            if (e == null) {
                return addWildcardAndTryCompleteAgain(fragment);
            }
            String completed = ProjectPath.toPathString(e);
            return fragment + completed.substring(fragment.length());
View Full Code Here

TOP

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

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.