Package org.jitterbit.integration.data.entity

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


        browser = new WebServicePipelineBrowser(pipeline);
    }

    @Override
    public boolean isDropAllowed(DropTargetDragEvent evt) {
        IntegrationEntity entity = getDraggedEntity(evt);
        if (entity instanceof Transformation) {
            Transformation tf = (Transformation) entity;
            TransformationActivityNode node = (TransformationActivityNode) getNode();
            if (browser.getRequestActivity() == node.getDataObject()) {
                return tf.getOutputStructure() instanceof WebServiceRequestStructure;
View Full Code Here


    private String translate(IntegrationEntityId id) {
        StringBuilder sb = new StringBuilder("[");
        sb.append(id.getEntityType());
        sb.append(" - ").append(id.toString()).append(" - ");
        if (objectLookup != null) {
            IntegrationEntity entity = objectLookup.getEntity(id);
            if (entity != null) {
                sb.append(entity.getName());
            }
        }
        sb.append("]");
        return sb.toString();
    }
View Full Code Here

     *         list is returned if no instance's permissions vetos READ on <tt>entity</tt> for
     *         <tt>user</tt>.
     */
    public KList<? extends IntegrationEntity> getVetosReadPermission(User user, IntegrationEntity entity) {
        KList<IntegrationEntity> veto = KList.newList();
        IntegrationEntity owner = entity.getParent();
        // TODO: Currently we treat RootFolders as always allowing everything,
        // so a RootFolder cannot veto READ permission.
        while (owner != null && !(owner instanceof RootFolder)) {
            if (!hasPermission(user, owner, Permission.READ)) {
                veto.add(owner);
            }
            owner = owner.getParent();
        }
        for (IntegrationEntity req : dependencies.getRequiredObjects(entity)) {
            if (!hasPermission(user, req, Permission.READ)) {
                veto.add(req);
            }
View Full Code Here

     *         list is returned if no instance's permissions vetos READ on <tt>entity</tt> for
     *         <tt>group</tt>.
     */
    public KList<? extends IntegrationEntity> getVetosReadPermission(Group group, IntegrationEntity entity) {
        KList<IntegrationEntity> veto = KList.newList();
        IntegrationEntity owner = entity.getParent();
        while (owner != null) {
            if (!hasPermission(group, owner, Permission.READ)) {
                veto.add(owner);
            }
            owner = owner.getParent();
        }
        for (IntegrationEntity req : dependencies.getRequiredObjects(entity)) {
            if (!hasPermission(group, req, Permission.READ)) {
                veto.add(req);
            }
View Full Code Here

    public String getPresentationName() {
        return format("EntityNameEdit", entityId.getEntityType());
    }

    private void setName(String name) {
        IntegrationEntity entity = controller.getProject().getItemLookup().getEntity(entityId);
        if (entity != null) {
            EntityRenamer renamer = controller.getView().getEntityRenamer(entity);
            renamer.setNewName(name);
        } else {
            Alert.error("This change cannot be undone/redone.", "Not Undoable/Redoable");
View Full Code Here

        fileDrop = new FileDropBehavior(controller, node);
    }

    @Override
    public boolean handleDrop(DropTargetDropEvent evt) {
        IntegrationEntity dropped = getDroppedEntity(evt);
        boolean success = false;
        if (dropped instanceof Schedule) {
            success = handleScheduleDrop(dropped);
        } else if (dropped instanceof OperationFlowActivity) {
            success = handleOperationActivityDrop((OperationFlowActivity) dropped);
View Full Code Here

    public boolean isDropAllowed(DropTargetDragEvent evt) {
        return isEntityDropAllowed(evt) || fileDrop.isDropAllowed(evt);
    }
   
    private boolean isEntityDropAllowed(DropTargetDragEvent evt) {
        IntegrationEntity e = getDraggedEntity(evt);
        return dropFilter.apply(e);
    }
View Full Code Here

        this.node = node;
    }

    @Override
    public boolean isDropAllowed(DropTargetDragEvent evt) {
        IntegrationEntity entity = getDraggedEntity(evt);
        return (entity != null) && node.getDataObject().getType().accepts(entity);
    }
View Full Code Here

    }

    @Override
    @SuppressWarnings("unchecked")
    public boolean handleDrop(DropTargetDropEvent evt) {
        IntegrationEntity entity = getDroppedEntity(evt);
        if (entity == null) {
            return false;
        }
        // This is ugly (and generates a warning) but it is safe because isDropAllowed()
        // is called first and that returns false if the drop cannot be done
View Full Code Here

     * @return the copy
     */
    public IntegrationEntity createAndInsertCopy(IntegrationEntity original) {
        IntegrationProjectLock.acquire();
        try {
            IntegrationEntity parent = original.getParent();
            if (parent == null) {
                throw new IllegalStateException("The entity to be copied has no parent.");
            }
            IntegrationProject project = getProject(parent);
            if (project == null) {
                throw new IllegalStateException("The entity does not belong to a project.");
            }
            IntegrationEntity copy = original.cloneWithNewID();
            copy.setParent(parent);
            setNewName(copy);
            copyPermissions(original, copy, project);
            copyPluginSettings(original, copy, project);
            doSpecialHandling(original, copy, project);
            project.insertEntity(copy, parent);
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.