@@ -0,0 +1,1876 @@
+/*******************************************************************************%0A * Copyright (c) 2015 Bosch Software Innovations GmbH and others.%0A * All rights reserved. This program and the accompanying materials%0A * are made available under the terms of the Eclipse Public License v1.0%0A * and Eclipse Distribution License v1.0 which accompany this distribution.%0A *   %0A * The Eclipse Public License is available at%0A * http://www.eclipse.org/legal/epl-v10.html%0A * The Eclipse Distribution License is available at%0A * http://www.eclipse.org/org/documents/edl-v10.php.%0A *   %0A * Contributors:%0A * Bosch Software Innovations GmbH - Please refer to git log%0A *******************************************************************************/%0Apackage org.eclipse.vorto.repository.model;%0A%0A/**%0A * We need this views because of the difference in how data is structured between API%0A * in the client and server.%0A */%0Apublic class UploadResultView %7B%0A%09String handleId;%0A%09String errorMessage;%0A%09boolean valid;%0A%09ModelView modelResource;%0A%0A%09public UploadResultView() %7B%0A%0A%09%7D%0A%09%0A%09public boolean statusOk() %7B%0A%09%09return handleId != null && valid;%0A%09%7D%0A%0A%09public String getHandleId() %7B%0A%09%09return handleId;%0A%09%7D%0A%0A%09public void setHandleId(String handleId) %7B%0A%09%09this.handleId = handleId;%0A%09%7D%0A%0A%09public String getErrorMessage() %7B%0A%09%09return errorMessage;%0A%09%7D%0A%0A%09public void setErrorMessage(String errorMessage) %7B%0A%09%09this.errorMessage = errorMessage;%0A%09%7D%0A%0A%09public ModelView getModelResource() %7B%0A%09%09return modelResource;%0A%09%7D%0A%0A%09public void setModelResource(ModelView modelResource) %7B%0A%09%09this.modelResource = modelResource;%0A%09%7D%0A%0A%09public boolean isValid() %7B%0A%09%09return valid;%0A%09%7D%0A%0A%09public void setValid(boolean valid) %7B%0A%09%09this.valid = valid;%0A%09%7D%0A%0A%09@Override%0A%09public String toString() %7B%0A%09%09return %22UploadResult %5BhandleId=%22 + handleId + %22, errorMessage=%22 + errorMessage + %22, valid=%22 + valid%0A%09%09%09%09+ %22, modelResource=%22 + modelResource + %22%5D%22;%0A%09%7D%0A%7D%0A

Rename this pojo to make it uniform with ModelView