| /********************************************************************************* |
| * Copyright (c) 2020 Robert Bosch GmbH and others. |
| * |
| * This program and the accompanying materials are made |
| * available under the terms of the Eclipse Public License 2.0 |
| * which is available at https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Contributors: |
| * Robert Bosch GmbH - initial API and implementation |
| ******************************************************************************** |
| */ |
| package org.eclipse.app4mc.cloud.manager; |
| |
| import java.util.ArrayList; |
| import java.util.HashMap; |
| import java.util.LinkedHashMap; |
| |
| public class WorkflowStatus { |
| |
| private String uuid; |
| private ArrayList<String> selectedServices = new ArrayList<>(); |
| private ArrayList<String> messages = new ArrayList<>(); |
| private ArrayList<String> errors = new ArrayList<>(); |
| private HashMap<String, String> results = new LinkedHashMap<>(); |
| |
| public String getUuid() { |
| return uuid; |
| } |
| |
| public void setUuid(String uuid) { |
| this.uuid = uuid; |
| } |
| |
| public ArrayList<String> getSelectedServices() { |
| return selectedServices; |
| } |
| |
| public void addSelectedService(String service) { |
| this.selectedServices.add(service); |
| } |
| |
| public void removeSelectedService(String service) { |
| this.selectedServices.remove(service); |
| } |
| |
| public ArrayList<String> getMessages() { |
| return messages; |
| } |
| |
| public void addMessage(String message) { |
| this.messages.add(message); |
| } |
| |
| public ArrayList<String> getErrors() { |
| return errors; |
| } |
| |
| public void addError(String error) { |
| this.errors.add(error); |
| } |
| |
| public HashMap<String, String> getResults() { |
| return this.results; |
| } |
| |
| public void addResult(String key, String resultFile) { |
| this.results.put(key, resultFile); |
| } |
| |
| public void clear() { |
| this.selectedServices.clear(); |
| this.messages.clear(); |
| this.errors.clear(); |
| this.results.clear(); |
| } |
| } |