| /******************************************************************************** |
| * Copyright (c) 2015-2019 Contributors to the Eclipse Foundation |
| * |
| * See the NOTICE file(s) distributed with this work for additional |
| * information regarding copyright ownership. |
| * |
| * This program and the accompanying materials are made available under the |
| * terms of the Eclipse Public License v. 2.0 which is available at |
| * http://www.eclipse.org/legal/epl-2.0. |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| ********************************************************************************/ |
| package org.eclipse.mdm.apicopy.entity; |
| |
| import javax.xml.bind.annotation.XmlAccessType; |
| import javax.xml.bind.annotation.XmlAccessorType; |
| import javax.xml.bind.annotation.XmlRootElement; |
| |
| /** |
| * DTO for encapsulating the result of an api copy request. |
| * |
| */ |
| @XmlRootElement |
| @XmlAccessorType(XmlAccessType.FIELD) |
| public class CopyStatusResponse { |
| |
| public enum State { |
| OK, FAILED, |
| } |
| |
| private State state; |
| private String message; |
| private String stacktrace; |
| |
| public CopyStatusResponse() { |
| } |
| |
| /** |
| * @param state |
| */ |
| public void setState(State state) { |
| this.state = state; |
| } |
| |
| /** |
| * @param message |
| */ |
| public void setMessage(String message) { |
| this.message = message; |
| } |
| |
| /** |
| * @param stacktrace |
| */ |
| public void setStacktrace(String stacktrace) { |
| this.stacktrace = stacktrace; |
| } |
| |
| /** |
| * @return the state |
| */ |
| public State getState() { |
| return state; |
| } |
| |
| /** |
| * @return |
| */ |
| public String getMessage() { |
| return message; |
| } |
| |
| /** |
| * @return |
| */ |
| public String getStacktrace() { |
| return stacktrace; |
| } |
| } |