Package org.uengine.util

Examples of org.uengine.util.ZipEntryMapper


        if(mainPdr.getId().equals(subDefVerId)){
          isRoot=true;
        }
       
        String defName = pdr.getName().toString();
        ZipEntryMapper entryMapper = new ZipEntryMapper(defName,subDefVerId,pdr.getAlias(), objType,pdr.getVersion(),in);
        zipEntryMapperList.add(entryMapper);
       
        ua.setDefinitionList(defName, pdr.getAlias(), pdr.getBelongingDefinitionId(), subDefVerId, objType, "","", pdr.getParentFolder(), pdr.getId(), isRoot);
      }
     
View Full Code Here


    net.sf.jazzlib.ZipOutputStream zipOut = new net.sf.jazzlib.ZipOutputStream(new FileOutputStream(filePath));
    int zipEntryMapperLength = zipEntryMapperList.size();
   
    for(int idx=0; idx<zipEntryMapperLength; idx++) {
     
      ZipEntryMapper zipEntryMapper = (ZipEntryMapper)zipEntryMapperList.get(idx);

      if(zipEntryMapper.getEntryType().equals(ZipEntryMapper.TYPE_FOLDER)) {
        zipOut.putNextEntry(new net.sf.jazzlib.ZipEntry(zipEntryMapper.getEntryName() + File.separatorChar))
       
      } else {
        String entryName = zipEntryMapper.getEntryAlias() + ZipEntryMapper.ENTRY_SEPARATOR
                       + zipEntryMapper.getEntryType()
       
        ua.setProcessDefinitions(zipEntryMapper.getEntryId(), entryName);
       
        zipOut.putNextEntry(new net.sf.jazzlib.ZipEntry(entryName));
       
        InputStream zipIn = (InputStream)zipEntryMapper.getStream();
       
        if(zipIn!=null){
          byte [] buf = new byte[1024];
          int len;
          while ((len = zipIn.read(buf)) > 0) {
View Full Code Here

                        String parentDefAlias,
                        ProcessDefinitionRemote[] pds,
                        boolean allVersion) throws Exception{
   
    ArrayList zipEntryMapperList = new ArrayList();
    zipEntryMapperList.add(new ZipEntryMapper(parentDefName,"", parentDefAlias, ZipEntryMapper.TYPE_FOLDER,0,null));
   
    getChildStreamsImpl(parentDefid, parentDefName, pds, zipEntryMapperList,allVersion);
    return zipEntryMapperList;
  }
View Full Code Here

          String defName = parentDefName + File.separatorChar+pds[i].getName();
          String defAlias = pds[i].getAlias();
          String defType = pds[i].getObjType();
         
        if(pds[i].isFolder()){
          zipEntryMapperList.add(new ZipEntryMapper(
              defName,"", defAlias, ZipEntryMapper.TYPE_FOLDER, 0, null));
            getChildStreamsImpl(
                pds[i].getId(),
                defName,
                pds,zipEntryMapperList,
                allVersion);
        }else{
          if(!allVersion && !pds[i].isProduction()) continue;
       
            InputStream in = getResourceStream(pds[i].getId());
            zipEntryMapperList.add(new ZipEntryMapper(
                defName,"", defAlias, defType,pds[i].getVersion(), in));
        }
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.uengine.util.ZipEntryMapper

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.