Examples of UpdateCollection


Examples of org.infoglue.cms.entities.up2date.UpdateCollection

        URL u = new URL(url);
        URLConnection urlConn = u.openConnection();
        urlConn.setAllowUserInteraction(false);
        urlConn.setUseCaches (false);
       
        UpdateCollection coll = (UpdateCollection) unmar.unmarshal( new InputStreamReader(urlConn.getInputStream()));
        ret = coll.getUpdatePackageList();
      }
      catch (ValidationException e2)
      {
        e2.printStackTrace();
      } catch (MalformedURLException e) {
View Full Code Here

Examples of org.infoglue.cms.entities.up2date.UpdateCollection

  public Vector getInstalledUpdates()
  {
    logger.info("GetInstalled Updates");

    Unmarshaller unmar = null;
    UpdateCollection coll = new UpdateCollection();
    try
    {
      unmar = new Unmarshaller(mapping);
      unmar.setWhitespacePreserve(true);
      unmar.setValidation(false);
      coll = (UpdateCollection) unmar.unmarshal(new InputSource(new FileReader(path + "installed.xml")));
    }
    catch (MarshalException e2)
    {
      logger.info("Marshal exception");
    }
    catch (ValidationException e2)
    {
      e2.printStackTrace();
    }
    catch (FileNotFoundException e2)
    {
      logger.info("No packages found");
    }
    catch (MappingException e1)
    {
      e1.printStackTrace();
    }

    logger.info("Leaving GetInstalled Updates");
    return coll.getUpdatePackageList();
  }
View Full Code Here

Examples of org.infoglue.cms.entities.up2date.UpdateCollection

        unmar.setWhitespacePreserve(true);
        unmar.setValidation(false);
      } catch (MappingException e1) {
        e1.printStackTrace();
      }
      UpdateCollection coll = new UpdateCollection();
      try {
        coll =
          (UpdateCollection) unmar.unmarshal(
            new InputSource(
              new FileReader(path + "installed.xml")));
      } catch (MarshalException e2) {
        e2.printStackTrace();
      } catch (ValidationException e2) {
        e2.printStackTrace();
      } catch (FileNotFoundException e2) {
        logger.info("No previous installations");
      }
      coll.getUpdatePackageList().add(upd);
     
      Marshaller marshaller = null;
      try {
        marshaller =
          new Marshaller(
View Full Code Here

Examples of org.infoglue.cms.entities.up2date.UpdateCollection

      unmar.setWhitespacePreserve(true);
      unmar.setValidation(false);
    } catch (MappingException e1) {
      e1.printStackTrace();
    }
    UpdateCollection coll = new UpdateCollection();
    try {
      coll =
        (UpdateCollection) unmar.unmarshal(
          new InputSource(
            new FileReader(path + "installed.xml")));
    } catch (MarshalException e2) {
      e2.printStackTrace();
    } catch (ValidationException e2) {
      e2.printStackTrace();
    } catch (FileNotFoundException e2) {
      logger.info("No previous installations");
    }

      // Find the update with id updatePackageId
      Iterator iterator = coll.getUpdatePackageList().iterator();
      while (iterator.hasNext()) {
          UpdatePackage u = (UpdatePackage) iterator.next();
          if(upd.getPackageId().compareTo(u.getPackageId())==0)
          {
          coll.getUpdatePackageList().remove(u);
          iterator = coll.getUpdatePackageList().iterator();
          }
      }


     
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.