Search in sources :

Example 1 with FileUploadResponse

use of edu.stanford.bmir.protege.web.client.upload.FileUploadResponse in project webprotege by protegeproject.

the class CreateNewProjectPresenter method handleSourcesUploadComplete.

private void handleSourcesUploadComplete(FormPanel.SubmitCompleteEvent event, ProjectCreatedHandler projectCreatedHandler) {
    FileUploadResponse response = new FileUploadResponse(event.getResults());
    if (response.wasUploadAccepted()) {
        DocumentId documentId = response.getDocumentId();
        NewProjectSettings newProjectSettings = new NewProjectSettings(loggedInUserManager.getLoggedInUserId(), view.getProjectName(), view.getProjectDescription(), documentId);
        submitCreateNewProjectRequest(newProjectSettings, projectCreatedHandler);
    } else {
        MessageBox.showAlert("Upload Failed", response.getUploadRejectedMessage());
    }
}
Also used : FileUploadResponse(edu.stanford.bmir.protege.web.client.upload.FileUploadResponse) DocumentId(edu.stanford.bmir.protege.web.shared.csv.DocumentId)

Aggregations

FileUploadResponse (edu.stanford.bmir.protege.web.client.upload.FileUploadResponse)1 DocumentId (edu.stanford.bmir.protege.web.shared.csv.DocumentId)1