Package org.jitterbit.integration.data.entity

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


        setSelection(SelectionFactory.newOrderedSelection(node));
    }

    @Override
    protected boolean isEnabledFor(Object node) {
        IntegrationEntity entity = getSelectedEntity(node);
        result = entity != null ? new SingleEntityValidationResult(entity, entity.getCurrentValidationResult()) : null;
        return result != null && !result.isEverythingOk();
    }
View Full Code Here


            private boolean readIsNotDenied() {
                return userPerms == null || !userPerms.isDenied(Permission.READ);
            }

            private boolean processParent() {
                IntegrationEntity parent = entity.getParent();
                if ((parent != null) && cyclicDependencyGuard.add(parent)) {
                    userPerms = mergeReadBit(userPerms, new Step(parent).process());
                }
                return readIsNotDenied();
            }
View Full Code Here

                                                   int row,
                                                   int column) {
        super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
        setFont(TextStyles.DefaultListText.getFont());
        if (value instanceof IntegrationEntity) {
            IntegrationEntity entity = (IntegrationEntity) value;
            ValidationStatus v = validationDecorating ? entity.getValidationStatus() : ValidationStatus.VALID;
            RendererUtils.decorateRenderer(this, entity, v, longMode);
        } else {
            setIcon(null);
            setToolTipText(null);
        }
View Full Code Here

            private boolean readIsNotDenied() {
                return !(readIsDenied());
            }
           
            private boolean checkParent() {
                IntegrationEntity parent = entity.getParent();
                if ((parent != null) && cyclicDependencyGuard.add(parent)) {
                    perms = mergeReadBit(perms, new Step(parent).process());
                }
                return readIsNotDenied();
            }
View Full Code Here

    }

    private void firePermissionsChanged(Collection<IntegrationEntityId> ids) {
        IntegrationEntityLookup lookup = project.getItemLookup();
        for (IntegrationEntityId id : ids) {
            IntegrationEntity entity = lookup.getEntity(id);
            if (shouldBeMadeDirty(entity)) {
                firePermissionsChanged(entity);
            }
        }
    }
View Full Code Here

    }

    public void openEditor(PipelineActivity a) {
        if (a instanceof IntegrationEntityPipelineActivity) {
            IntegrationEntityPipelineActivity<?> ia = (IntegrationEntityPipelineActivity) a;
            IntegrationEntity item = ia.getContent();
            if (item instanceof BuiltInIntegrationEntity) {
                Alert.error(Strings.format("UneditableItem.Name", ia.getEntityType()), Strings.get("Uneditable.Title"));
            } else {
                openPage(item);
            }
View Full Code Here

        if (perms == null || !perms.isAllowed(Permission.READ)) {
            perms = Permissions.grantRead(perms);
            map.put(entity.getID(), roleId, perms);
            setDirty(entity);
        }
        IntegrationEntity owner = entity.getParent();
        while (owner != null) {
            if (!cyclicDependencyGuard.contains(owner)) {
                grantReadPermissionImpl(role, roleId, owner, cyclicDependencyGuard);
            }
            owner = owner.getParent();
        }
        for (IntegrationEntity req : dependencies.getRequiredObjects(entity)) {
            if (!cyclicDependencyGuard.contains(entity)) {
                grantReadPermissionImpl(role, roleId, req, cyclicDependencyGuard);
            }
View Full Code Here

    private void setDirty(IntegrationEntity e) {
        dirtyEntities.add(e.getID());
    }

    private void setParentsReadable(K role, T roleId, IntegrationEntity entity) {
        IntegrationEntity owner = entity.getParent();
        if (owner == null) {
            return;
        }
        if (!hasPermission(role, owner, Permission.READ)) {
            MapImpl<T, V> map = getMap(owner);
            Permissions perms = map.get(owner.getID(), roleId);
            if (perms == null) {
                perms = new Permissions(READ_SET, null);
            } else {
                perms = Permissions.add(perms, READ_SET, null);
            }
View Full Code Here

        this.connection = connection;
    }
   
    @Override
    public boolean isDropAllowed(DropTargetDragEvent evt) {
        IntegrationEntity e = getDraggedEntity(evt);
        return getAllowedType(e) != null;
    }
View Full Code Here

        return getAllowedType(e) != null;
    }
   
    @Override
    public boolean handleDrop(DropTargetDropEvent evt) {
        IntegrationEntity entity = getDroppedEntity(evt);
        if (entity == null) {
            return false;
        }
        PipelineActivity activity = entity.getExtensionObject(PipelineActivity.class);
        if (activity == null) {
            return false;
        }
        boolean success = controller.insertNewActivity(opNode.getPipeline(), connection, activity);
        updateSelection(entity, success);
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.