All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.zeroturnaround.jenkins.util.ServerConvertUtil Maven / Gradle / Ivy

Go to download

LiveRebel Plugin helps to run updates to your JEE containers faster. LiveRebel is a tool for hot updates without downtime, lost sessions and OutOfMemoryErrors. You have to have a running LiveRebel Command Center to use this plugin.

The newest version!
package org.zeroturnaround.jenkins.util;

import org.zeroturnaround.jenkins.ServerCheckbox;
import org.zeroturnaround.liverebel.plugins.Server;

import java.util.ArrayList;
import java.util.List;

public class ServerConvertUtil {

  public static List serverToServerCheckBox (List servers) {
    List serverCheckboxList = new ArrayList();
    for (Server server : servers) {
      serverCheckboxList.add(new ServerCheckbox(server.getId(), server.getTitle(), server.getParentNames(), server.getIndentDepth(), server.isChecked(), server.isConnected(), server.isGroup()));
    }
    return serverCheckboxList;
  }

  public static List serverCheckBoxToServer(List servers) {
    List serversNew = new ArrayList();
    for (Server server : servers) {
      serversNew.add(server);
    }
    return serversNew;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy