1452: Implement a GUI for StatMan Algorithms Importer

Task-Url: https://support.d4science.org/issues/1452

Fixed Documentation

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/statistical-algorithms-importer@124335 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2016-02-19 09:49:10 +00:00
parent 557f0e9407
commit ffe2c85472
9 changed files with 27 additions and 22 deletions

View File

@ -18,7 +18,8 @@ public class StatAlgoImporterMonitor extends AutoProgressMessageBox {
/** /**
* *
* {@inheritDoc} * @param headingHtml
* @param messageHtml
*/ */
public StatAlgoImporterMonitor(SafeHtml headingHtml, SafeHtml messageHtml) { public StatAlgoImporterMonitor(SafeHtml headingHtml, SafeHtml messageHtml) {
super(headingHtml, messageHtml); super(headingHtml, messageHtml);
@ -27,7 +28,7 @@ public class StatAlgoImporterMonitor extends AutoProgressMessageBox {
/** /**
* *
* {@inheritDoc} * @param headingHtml
*/ */
public StatAlgoImporterMonitor(SafeHtml headingHtml) { public StatAlgoImporterMonitor(SafeHtml headingHtml) {
super(headingHtml); super(headingHtml);
@ -36,7 +37,8 @@ public class StatAlgoImporterMonitor extends AutoProgressMessageBox {
/** /**
* *
* {@inheritDoc} * @param headingHtml
* @param messageHtml
*/ */
public StatAlgoImporterMonitor(String headingHtml, String messageHtml) { public StatAlgoImporterMonitor(String headingHtml, String messageHtml) {
super(headingHtml, messageHtml); super(headingHtml, messageHtml);
@ -45,7 +47,7 @@ public class StatAlgoImporterMonitor extends AutoProgressMessageBox {
/** /**
* *
* {@inheritDoc} * @param headingHtml
*/ */
public StatAlgoImporterMonitor(String headingHtml) { public StatAlgoImporterMonitor(String headingHtml) {
super(headingHtml); super(headingHtml);

View File

@ -24,7 +24,7 @@ public interface StatAlgoImporterService extends RemoteService {
/** /**
* Get informations on the current user * Get informations on the current user
* *
* @return * @return UserInfo user inforamations
* @throws StatAlgoImporterServiceException * @throws StatAlgoImporterServiceException
*/ */
public UserInfo hello() throws StatAlgoImporterServiceException; public UserInfo hello() throws StatAlgoImporterServiceException;
@ -33,7 +33,7 @@ public interface StatAlgoImporterService extends RemoteService {
/** /**
* Get File Upload Monitor during the file upload operation in Import CSV * Get File Upload Monitor during the file upload operation in Import CSV
* *
* @return * @return FileUploadMonitor
* @throws StatAlgoImporterServiceException * @throws StatAlgoImporterServiceException
*/ */
public FileUploadMonitor getFileUploadMonitor() public FileUploadMonitor getFileUploadMonitor()

View File

@ -8,7 +8,7 @@ import com.allen_sauer.gwt.log.client.Log;
import com.sencha.gxt.widget.core.client.ProgressBar; import com.sencha.gxt.widget.core.client.ProgressBar;
/** /**
* Updates a {@link ProgressBar} progress and text based on {@link CSVImportProgressListener} events. * Updates a {@link ProgressBar} progress and text based on {@link FileUploadProgressListener} events.
* *
* @author "Giancarlo Panichi" * @author "Giancarlo Panichi"
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a> * <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>

View File

@ -7,7 +7,7 @@ package org.gcube.portlets.user.statisticalalgorithmsimporter.client.upload.prog
/** /**
* Defines a listener for operation progress. * Defines a listener for file upload progress.
* *
* @author "Giancarlo Panichi" * @author "Giancarlo Panichi"
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a> * <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>

View File

@ -13,8 +13,7 @@ import com.google.gwt.user.client.Timer;
import com.google.gwt.user.client.rpc.AsyncCallback; import com.google.gwt.user.client.rpc.AsyncCallback;
/** /**
* This {@link Timer} retrieves {@link OperationProgress} from the specified {@link OperationProgressSource} with the scheduled interval. *
* The retrieved information are spread to the subscribed {@link CSVImportProgressListener}.
* *
* @author "Giancarlo Panichi" * @author "Giancarlo Panichi"
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a> * <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>

View File

@ -408,7 +408,7 @@ public class FilesStorage {
* *
* @param user * @param user
* @param folderId * @param folderId
* @return * @return boolean
* @throws StatAlgoImporterServiceException * @throws StatAlgoImporterServiceException
*/ */
public boolean existProjectItemOnWorkspace(String user, String folderId) public boolean existProjectItemOnWorkspace(String user, String folderId)
@ -444,7 +444,7 @@ public class FilesStorage {
* *
* @param user * @param user
* @param itemId * @param itemId
* @return * @return WorkspaceItem
* @throws StatAlgoImporterServiceException * @throws StatAlgoImporterServiceException
*/ */
public WorkspaceItem retrieveItemInfoOnWorkspace(String user, String itemId) public WorkspaceItem retrieveItemInfoOnWorkspace(String user, String itemId)
@ -493,13 +493,12 @@ public class FilesStorage {
} }
} }
/** /**
* *
* @param user * @param user User
* User * @param wi WorkspaceItem
* @param remotePath * @return InputStream
* File path on storage
* @return Input stream back to read the file
* @throws StatAlgoImporterServiceException * @throws StatAlgoImporterServiceException
*/ */
public InputStream retrieveImputStream(String user, WorkspaceItem wi) public InputStream retrieveImputStream(String user, WorkspaceItem wi)

View File

@ -52,7 +52,7 @@ public class MainCodeSave {
* @param file description of destination file * @param file description of destination file
* @param code code to insert in the file * @param code code to insert in the file
* @param project * @param project
* @return * @return ItemDescription
* @throws StatAlgoImporterServiceException * @throws StatAlgoImporterServiceException
*/ */
public ItemDescription saveNew(ASLSession aslSession, ItemDescription file, public ItemDescription saveNew(ASLSession aslSession, ItemDescription file,

View File

@ -82,7 +82,8 @@ public class FileUploadMonitor implements Serializable {
} }
/** /**
* @return the reason *
* @return failureReason
*/ */
public String getFailureReason() { public String getFailureReason() {
return failureReason; return failureReason;
@ -96,14 +97,17 @@ public class FileUploadMonitor implements Serializable {
} }
/** /**
* @param elaboratedLenght the elaboratedLenght to set *
* @param elaboratedLenght
*/ */
public void setElaboratedLenght(long elaboratedLenght) { public void setElaboratedLenght(long elaboratedLenght) {
this.elaboratedLenght = elaboratedLenght; this.elaboratedLenght = elaboratedLenght;
} }
/** /**
* @param failed the failed to set *
* @param failureReason
* @param failureDetails
*/ */
public void setFailed(String failureReason, String failureDetails) { public void setFailed(String failureReason, String failureDetails) {
this.state = FileUploadState.FAILED; this.state = FileUploadState.FAILED;

View File

@ -85,7 +85,8 @@ public class ItemDescription implements Serializable {
* Compare basic information with another ItemDescription not null * Compare basic information with another ItemDescription not null
* *
* @param itemDescription * @param itemDescription
* @return * @return boolean
*
*/ */
public boolean compareInfo(ItemDescription itemDescription){ public boolean compareInfo(ItemDescription itemDescription){
if(itemDescription!=null && id.compareTo(itemDescription.getId())==0 && if(itemDescription!=null && id.compareTo(itemDescription.getId())==0 &&