Examples of IDirectory


Examples of fr.soleil.salsa.entity.IDirectory

                // Partial mode for recording.
                setAttribute("dataRecorderPartialMode", false);
               
                // Run name.
                String runName = config.getName();
                IDirectory directory = config.getDirectory();
                while(directory != null) {
                    runName = directory.getName() + "." + runName;
                    directory = directory.getDirectory();
                }
                setAttribute("runName", runName);
               
                // Scan number.
                setAttribute("scanNumber", config.getScanNumber());
View Full Code Here

Examples of fr.soleil.salsa.entity.IDirectory

    /**
     *
     */
    public void setDirectory(IDirectory directory) {
        IDirectory oldValue = this.baseBean.getDirectory();
        this.baseBean.setDirectory(directory);
        this.firePropertyChange("directory", oldValue, directory);
    }
View Full Code Here

Examples of fr.soleil.salsa.entity.IDirectory

        return resultModel;
    }

    public static IDirectory saveDirectory(IDirectory directoryModel) throws PersistenceException {

        IDirectory directoryImpl = AutoCopier.copyDirectoryToImpl(directoryModel);
        IDirectory resultImpl = ConfigApi.saveDirectory(directoryImpl);
        IDirectory resultModel = AutoCopier.copyDirectoryToModel(resultImpl);
        return resultModel;
    }
View Full Code Here

Examples of fr.soleil.salsa.entity.IDirectory

        IDirectory resultModel = AutoCopier.copyDirectoryToModel(resultImpl);
        return resultModel;
    }

    public static IDirectory getRootDirectory() {
        IDirectory rootImpl = ConfigApi.getRootDirectory();
        IDirectory rootModel = AutoCopier.copyDirectoryToModel(rootImpl);
        return rootModel;
    }
View Full Code Here

Examples of fr.soleil.salsa.entity.IDirectory

                toDrop = nodes;
            }
            ITreeNode realTarget = TreeNodeUtils.findDirectoryNode(target);
            if (realTarget != null) {
                realTarget.addNodes(toDrop.toArray(new ITreeNode[toDrop.size()]));
                IDirectory directory = (IDirectory) realTarget.getData();
                for (ITreeNode node : toDrop) {
                    if (node.getData() instanceof IEntity) {
                        ((IEntity) node.getData()).setDirectory(directory);
                    }
                }
View Full Code Here

Examples of fr.soleil.salsa.entity.IDirectory

    /**
     *
     */
    public void setDirectory(IDirectory directory) {
        IDirectory oldValue = this.baseBean.getDirectory();
        this.baseBean.setDirectory(directory);
        this.firePropertyChange("directory", oldValue, directory);
    }
View Full Code Here

Examples of fr.soleil.salsa.entity.IDirectory

            result.setLoaded(true);
            result.setId(id);
            result.setTimestamp(c.getTimestamp());
            if (c.getDirectoryId() != null) {
                IDirectory parent = new DirectoryImpl();
                parent.setId(c.getDirectoryId());
                result.setDirectory(parent);
            }
            if (c.getType().equals("Config1DImpl")) {
                result.setType(IConfig.ScanType.SCAN_1D);
            }
View Full Code Here

Examples of fr.soleil.salsa.entity.IDirectory

    }

    @Override
    public IDirectory getRootDirectory() {
        ConfigDAOJdbcImpl dao = new ConfigDAOJdbcImpl();
        IDirectory root = dao.getRootDirectory();
        return root;
    }
View Full Code Here

Examples of fr.soleil.salsa.entity.IDirectory

            // Update
            dao.updateDirectory(directory);
        }

        // We get the updated directory.
        IDirectory result = dao.getDirectoryById(id);
        if (result.getDirectory() != null && result.getDirectory().getId() != null) {
            Integer parentId = result.getDirectory().getId();
            IDirectory parent = getDirectoryById(parentId);
            result.setDirectory(parent);
        }

        return result;
    }
View Full Code Here

Examples of fr.soleil.salsa.entity.IDirectory

        }
        return result;
    }

    private IDirectory findSubDirectory(IDirectory parent, String childName) {
        IDirectory result = null;

        if (parent != null) {
            List<IDirectory> subDirs = parent.getSubDirectoriesList();

            for (int i = 0; (i < subDirs.size()) && (result == null); i++) {
                IDirectory d = subDirs.get(i);
                if (d.getName().equals(childName)) {
                    result = d;
                }
            }
        }
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.