Package br.com.visualmidia.business

Examples of br.com.visualmidia.business.Update


   * @return
   * @uml.property  name="updateList"
   */
    public List<Update> getUpdateList() {
      if ( GDSystem.isClientMode()){
        Update lastupdate = updateList.get(0);
        for (Update update : updateList) {
          if( Long.parseLong(lastupdate.getBuildId()) < Long.parseLong(update.getBuildId())) {
            lastupdate = update;
          }
        } 
        updateList.removeAll(updateList);
        updateList.add(lastupdate);
View Full Code Here


        File directory = new File(Constants.FILES_PATH);
        if(directory.exists() && directory.isDirectory()) {
          String[] directoryList = directory.list();
          for (String buildId : directoryList) {
        if(Long.parseLong(buildId) > Long.parseLong(clientBuildId)) {
          Update update = new Update(buildId, "", "");
          update.updateFiles();
          updateToBeMadeInTheCliente.add(update);
        }
      }
        }
       
View Full Code Here

//  }

  private List<Update> getUpdateList(String clientBuildId) {
    List<Update> updateToBeMadeInTheCliente = new ArrayList<Update>();
    if ( Long.parseLong(clientBuildId) != Long.parseLong(Constants.BUILD_ID)){
      Update lastupdate = new Update(Constants.BUILD_ID, "Atualiza��o no Cliente", "Atualizando para o BuildID do Server");
      lastupdate.updateFiles();
      updateToBeMadeInTheCliente.add(lastupdate);
      return updateToBeMadeInTheCliente;
    }
    return null;
  }
View Full Code Here

    }

    protected void execute(PrevalentSystem system) throws BusinessException {
      int cont = -1;
      for (int i = 0; i < system.getUpdates().size(); i++) {
      Update updateTemp = system.getUpdates().get(i);
        if(updateTemp.getBuildId().equals(update.getBuildId())){
          cont = i;
        break;
      }
    }
View Full Code Here

TOP

Related Classes of br.com.visualmidia.business.Update

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.