Package org.vosao.common

Examples of org.vosao.common.VfsNode


      String path = msg.getMessage();
      if (ImportExportBusinessImpl.isGlobalSequenceImportFile(
          path.substring(1))) {
        return;
      }
      VfsNode node = VfsNode.find(path);
      if (node == null) {
        logger.error("VFS node not found " + path);
        return;
      }
      String xml = new String(node.getData(), "UTF-8");
      if (!getBusiness().getImportExportBusiness().getExporterFactory()
          .getSiteExporter().importSystemFile(path.substring(1), xml)) {
        getBusiness().getImportExportBusiness().getExporterFactory()
          .getResourceExporter().importResourceFile(path, node.getData());
      }
    }
    catch (DocumentException e) {
      logger.error(e.getMessage());
      e.printStackTrace();
View Full Code Here


  public void onMessage(Message message) {
    SimpleMessage msg = (SimpleMessage)message;
    String path = msg.getMessage();
    getBusiness().getFolderBusiness().createFolder(path);
    VfsNode node = VfsNode.find(path);
    if (node == null) {
      logger.error("VFS node not found " + path);
      return;
    }
    for (VfsNode child : node.getChildren()) {
      if (child.isDirectory()) {
        getBusiness().getMessageQueue().publish(new SimpleMessage(
            Topic.IMPORT_FOLDER, child.getPath()));
      }
      else {
View Full Code Here

TOP

Related Classes of org.vosao.common.VfsNode

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.