package org.gcube.portlets.user.reportgenerator.shared; import java.io.Serializable; import java.util.ArrayList; /** * Simply wraps the Response clases of the RSG WS for sending them to the client * @author Massimiliano Assante, ISTI-CNR * */ @SuppressWarnings("serial") public class VmeExportResponse implements Serializable { private boolean globallySucceded; private ArrayList responseMessageList; public VmeExportResponse() { super(); responseMessageList = new ArrayList(); } public VmeExportResponse(VmeResponseEntry singleResponse) { responseMessageList = new ArrayList(); responseMessageList.add(singleResponse); } public VmeExportResponse(ArrayList responseMessageList) { super(); this.responseMessageList = responseMessageList; } public ArrayList getResponseMessageList() { if (responseMessageList == null) responseMessageList = new ArrayList(); return responseMessageList; } public void setResponseMessageList(ArrayList responseMessageList) { this.responseMessageList = responseMessageList; } public boolean isGloballySucceded() { return globallySucceded; } public void setGloballySucceded(boolean globallySucceded) { this.globallySucceded = globallySucceded; } }