org.visallo.web.clientapi.model.ClientApiWorkspaceUndoResponse Maven / Gradle / Ivy
package org.visallo.web.clientapi.model;
import org.visallo.web.clientapi.util.ClientApiConverter;
import java.util.ArrayList;
import java.util.List;
public class ClientApiWorkspaceUndoResponse implements ClientApiObject {
private List failures = new ArrayList();
public List getFailures() {
return failures;
}
public boolean isSuccess() {
return failures.size() == 0;
}
@Override
public String toString() {
return ClientApiConverter.clientApiToString(this);
}
public void addFailure(ClientApiUndoItem data) {
this.failures.add(data);
}
}