2521: Explore the possibility to port the StatMan interface onto Dataminer
https://support.d4science.org/issues/2521 Fixed DeleteItem git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/data-miner-manager@128274 82a268e6-3cf1-43bd-a215-b396298e98cfmaster
parent
bd115101c0
commit
e43bac9129
@ -1,166 +0,0 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package org.gcube.portlets.user.dataminermanager.client.bean;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author ceras
|
||||
*
|
||||
*/
|
||||
public class CsvMetadata implements Serializable {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = -6513418575213232121L;
|
||||
|
||||
private boolean hasHeader;
|
||||
private String fileAbsolutePath, template, tableName, description, delimiterChar, commentChar;
|
||||
|
||||
|
||||
public CsvMetadata() {
|
||||
super();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @param hasHeader
|
||||
* @param fileAbsolutePath
|
||||
* @param tableName
|
||||
* @param delimiterChar
|
||||
* @param commentChar
|
||||
*/
|
||||
public CsvMetadata(boolean hasHeader, String fileAbsolutePath, String delimiterChar, String commentChar) {
|
||||
super();
|
||||
this.hasHeader = hasHeader;
|
||||
this.fileAbsolutePath = fileAbsolutePath;
|
||||
this.delimiterChar = delimiterChar;
|
||||
this.commentChar = commentChar;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return the hasHeader
|
||||
*/
|
||||
public boolean isHasHeader() {
|
||||
return hasHeader;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param hasHeader the hasHeader to set
|
||||
*/
|
||||
public void setHasHeader(boolean hasHeader) {
|
||||
this.hasHeader = hasHeader;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return the fileAbsolutePath
|
||||
*/
|
||||
public String getFileAbsolutePath() {
|
||||
return fileAbsolutePath;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param fileAbsolutePath the fileAbsolutePath to set
|
||||
*/
|
||||
public void setFileAbsolutePath(String fileAbsolutePath) {
|
||||
this.fileAbsolutePath = fileAbsolutePath;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return the template
|
||||
*/
|
||||
public String getTemplate() {
|
||||
return template;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param template the template to set
|
||||
*/
|
||||
public void setTemplate(String template) {
|
||||
this.template = template;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return the tableName
|
||||
*/
|
||||
public String getTableName() {
|
||||
return tableName;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param tableName the tableName to set
|
||||
*/
|
||||
public void setTableName(String tableName) {
|
||||
this.tableName = tableName;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return the description
|
||||
*/
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param description the description to set
|
||||
*/
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return the delimiterChar
|
||||
*/
|
||||
public String getDelimiterChar() {
|
||||
return delimiterChar;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param delimiterChar the delimiterChar to set
|
||||
*/
|
||||
public void setDelimiterChar(String delimiterChar) {
|
||||
this.delimiterChar = delimiterChar;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return the commentChar
|
||||
*/
|
||||
public String getCommentChar() {
|
||||
return commentChar;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param commentChar the commentChar to set
|
||||
*/
|
||||
public void setCommentChar(String commentChar) {
|
||||
this.commentChar = commentChar;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return the serialversionuid
|
||||
*/
|
||||
public static long getSerialversionuid() {
|
||||
return serialVersionUID;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
@ -1,129 +0,0 @@
|
||||
package org.gcube.portlets.user.dataminermanager.client.bean;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class FileMetadata implements Serializable {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
private String fileAbsolutePath, fileTaxaPath,fileVernaculaPath, fileName, description, type;
|
||||
|
||||
|
||||
public FileMetadata() {
|
||||
super();
|
||||
}
|
||||
public FileMetadata( String fileAbsolutePath,String type) {
|
||||
super();
|
||||
this.fileAbsolutePath = fileAbsolutePath;
|
||||
this.fileTaxaPath=null;
|
||||
this.fileVernaculaPath=null;
|
||||
this.type=type;
|
||||
}
|
||||
public FileMetadata( String fileAbsolutePath,String fileTaxaPath, String fileVernacularPath,String type) {
|
||||
super();
|
||||
this.fileAbsolutePath = fileAbsolutePath;
|
||||
this.fileTaxaPath=fileTaxaPath;
|
||||
this.fileVernaculaPath=fileVernacularPath;
|
||||
this.type=type;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public String getType()
|
||||
{
|
||||
return type;
|
||||
|
||||
}
|
||||
public void setType(String type)
|
||||
{
|
||||
this.type=type;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return the fileAbsolutePath
|
||||
*/
|
||||
public String getTaxaFileAbsolutePath() {
|
||||
return fileTaxaPath;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param fileAbsolutePath the fileAbsolutePath to set
|
||||
*/
|
||||
public void setTaxaFileAbsolutePath(String fileTaxaPath) {
|
||||
this.fileTaxaPath = fileTaxaPath;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return the fileAbsolutePath
|
||||
*/
|
||||
public String getVernacularFileAbsolutePath() {
|
||||
return fileVernaculaPath;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param fileAbsolutePath the fileAbsolutePath to set
|
||||
*/
|
||||
public void setVernacularFileAbsolutePath(String fileVernaculaPath) {
|
||||
this.fileVernaculaPath = fileVernaculaPath;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return the fileAbsolutePath
|
||||
*/
|
||||
public String getFileAbsolutePath() {
|
||||
return fileAbsolutePath;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param fileAbsolutePath the fileAbsolutePath to set
|
||||
*/
|
||||
public void setFileAbsolutePath(String fileAbsolutePath) {
|
||||
this.fileAbsolutePath = fileAbsolutePath;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return the description
|
||||
*/
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param description the description to set
|
||||
*/
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return the fileName
|
||||
*/
|
||||
public String getFileName() {
|
||||
return fileName;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param fileName the tableName to set
|
||||
*/
|
||||
public void setFileName(String fileName) {
|
||||
this.fileName = fileName;
|
||||
}
|
||||
|
||||
}
|
@ -1,139 +0,0 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package org.gcube.portlets.user.dataminermanager.client.bean;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import org.gcube.portlets.user.dataminermanager.client.bean.ComputationStatus.Status;
|
||||
import org.gcube.portlets.user.dataminermanager.client.bean.output.Resource;
|
||||
|
||||
|
||||
/**
|
||||
* @author ceras
|
||||
*
|
||||
*/
|
||||
public class ImportStatus implements Serializable {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 190974315819110637L;
|
||||
Status status;
|
||||
String id, fileName, resourceId;
|
||||
Date date;
|
||||
Resource resource;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public ImportStatus() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param id
|
||||
* @param fileName
|
||||
* @param isCompleted
|
||||
*/
|
||||
public ImportStatus(String id, String fileName, Status status, Date date) {
|
||||
super();
|
||||
this.id = id;
|
||||
this.fileName = fileName;
|
||||
this.status = status;
|
||||
this.date = date;
|
||||
this.resource=new Resource();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the id
|
||||
*/
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param id the id to set
|
||||
*/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the fileName
|
||||
*/
|
||||
public String getFileName() {
|
||||
return fileName;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param fileName the fileName to set
|
||||
*/
|
||||
public void setFileName(String fileName) {
|
||||
this.fileName = fileName;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the status
|
||||
*/
|
||||
public Status getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param status the status to set
|
||||
*/
|
||||
public void setStatus(Status status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the date
|
||||
*/
|
||||
public Date getDate() {
|
||||
return date;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the resourceId
|
||||
*/
|
||||
public String getResourceId() {
|
||||
return resourceId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param resourceId the resourceId to set
|
||||
*/
|
||||
public void setResourceId(String resourceId) {
|
||||
this.resourceId = resourceId;
|
||||
}
|
||||
|
||||
public void setResource(Resource resource)
|
||||
{
|
||||
this.resource=resource;
|
||||
}
|
||||
|
||||
public Resource getResoruce()
|
||||
{
|
||||
return resource;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param date the date to set
|
||||
*/
|
||||
public void setDate(Date date) {
|
||||
this.date = date;
|
||||
}
|
||||
|
||||
public boolean isFailed() {
|
||||
return this.status == Status.FAILED;
|
||||
}
|
||||
|
||||
public boolean isComplete() {
|
||||
return this.status == Status.COMPLETE;
|
||||
}
|
||||
|
||||
public boolean isTerminated() {
|
||||
return this.status==Status.COMPLETE || this.status==Status.FAILED;
|
||||
}
|
||||
}
|
@ -1,150 +0,0 @@
|
||||
package org.gcube.portlets.user.dataminermanager.client.bean;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.gcube.portlets.user.dataminermanager.client.DataMinerManager;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Giancarlo Panichi
|
||||
* email: <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||
*
|
||||
*/
|
||||
public class ResourceItem implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 2814548224382024267L;
|
||||
private List<String> columnNames = new ArrayList<String>();
|
||||
|
||||
private Type type;
|
||||
private String id;
|
||||
private String name;
|
||||
private String description;
|
||||
private String template;
|
||||
private Provenance provenance;
|
||||
private Date creationDate;
|
||||
private String operatorId;
|
||||
private String url;
|
||||
private Operator operator;
|
||||
|
||||
|
||||
|
||||
public enum Provenance {
|
||||
IMPORTED,
|
||||
COMPUTED,
|
||||
SYSTEM
|
||||
};
|
||||
|
||||
public enum Type {
|
||||
TABLE,
|
||||
FILE
|
||||
}
|
||||
|
||||
public ResourceItem() {
|
||||
super();
|
||||
}
|
||||
|
||||
|
||||
public ResourceItem(Type type, String id, String name, String description,
|
||||
String template, Provenance provenance, Date creationDate,
|
||||
String operatorId, String url) {
|
||||
this.type=type;
|
||||
this.id= id;
|
||||
this.name=name;
|
||||
this.description=description;
|
||||
this.template=template;
|
||||
this.provenance=provenance;
|
||||
this.creationDate=creationDate;
|
||||
this.operatorId=operatorId;
|
||||
this.url=url;
|
||||
}
|
||||
|
||||
|
||||
public void setColumnNames(List<String> columnNames) {
|
||||
this.columnNames = columnNames;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the columnNames
|
||||
*/
|
||||
public List<String> getColumnNames() {
|
||||
return columnNames;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param columnName
|
||||
*/
|
||||
public void addColumnName(String columnName) {
|
||||
this.columnNames.add(columnName);
|
||||
}
|
||||
|
||||
public Operator getOperator() {
|
||||
if (operator==null) {
|
||||
OperatorsClassification classification = DataMinerManager.getDefaultOperatorsClassification();
|
||||
if (classification!=null)
|
||||
operator=classification.getOperatorById(operatorId);
|
||||
}
|
||||
return operator;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public boolean isFile() {
|
||||
return type==Type.FILE;
|
||||
}
|
||||
|
||||
public boolean isTable() {
|
||||
return type==Type.TABLE;
|
||||
}
|
||||
|
||||
|
||||
public Type getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
|
||||
public String getTemplate() {
|
||||
return template;
|
||||
}
|
||||
|
||||
|
||||
public Provenance getProvenance() {
|
||||
return provenance;
|
||||
}
|
||||
|
||||
|
||||
public Date getCreationDate() {
|
||||
return creationDate;
|
||||
}
|
||||
|
||||
|
||||
public String getOperatorId() {
|
||||
return operatorId;
|
||||
}
|
||||
|
||||
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,70 @@
|
||||
package org.gcube.portlets.user.dataminermanager.client.events;
|
||||
|
||||
import org.gcube.portlets.user.dataminermanager.shared.data.ComputationId;
|
||||
|
||||
import com.google.gwt.event.shared.EventHandler;
|
||||
import com.google.gwt.event.shared.GwtEvent;
|
||||
import com.google.gwt.event.shared.HandlerRegistration;
|
||||
import com.google.gwt.event.shared.HasHandlers;
|
||||
|
||||
/**
|
||||
* Cancel Computation Request Event
|
||||
*
|
||||
*
|
||||
* @author "Giancarlo Panichi" <a
|
||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||
*
|
||||
*/
|
||||
public class CancelComputationExecutionRequestEvent
|
||||
extends
|
||||
GwtEvent<CancelComputationExecutionRequestEvent.CancelComputationExecutionRequestEventHandler> {
|
||||
|
||||
public static Type<CancelComputationExecutionRequestEventHandler> TYPE = new Type<CancelComputationExecutionRequestEventHandler>();
|
||||
private ComputationId computationId;
|
||||
|
||||
public interface CancelComputationExecutionRequestEventHandler extends
|
||||
EventHandler {
|
||||
void onCancel(CancelComputationExecutionRequestEvent event);
|
||||
}
|
||||
|
||||
public interface HasCancelComputationExecutionRequestEventHandler extends
|
||||
HasHandlers {
|
||||
public HandlerRegistration addCancelComputationExecutionRequestEventHandler(
|
||||
CancelComputationExecutionRequestEventHandler handler);
|
||||
}
|
||||
|
||||
public CancelComputationExecutionRequestEvent(ComputationId computationId) {
|
||||
this.computationId = computationId;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void dispatch(
|
||||
CancelComputationExecutionRequestEventHandler handler) {
|
||||
handler.onCancel(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Type<CancelComputationExecutionRequestEventHandler> getAssociatedType() {
|
||||
return TYPE;
|
||||
}
|
||||
|
||||
public static Type<CancelComputationExecutionRequestEventHandler> getType() {
|
||||
return TYPE;
|
||||
}
|
||||
|
||||
public static void fire(HasHandlers source,
|
||||
CancelComputationExecutionRequestEvent event) {
|
||||
source.fireEvent(event);
|
||||
}
|
||||
|
||||
public ComputationId getComputationId() {
|
||||
return computationId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "CancelComputationExecutionRequestEvent [computationId="
|
||||
+ computationId + "]";
|
||||
}
|
||||
|
||||
}
|
@ -1,68 +0,0 @@
|
||||
package org.gcube.portlets.user.dataminermanager.client.events;
|
||||
|
||||
import org.gcube.portlets.user.dataminermanager.shared.data.ComputationId;
|
||||
|
||||
import com.google.gwt.event.shared.EventHandler;
|
||||
import com.google.gwt.event.shared.GwtEvent;
|
||||
import com.google.gwt.event.shared.HandlerRegistration;
|
||||
import com.google.gwt.event.shared.HasHandlers;
|
||||
|
||||
/**
|
||||
* Cancel Computation Request Event
|
||||
*
|
||||
*
|
||||
* @author "Giancarlo Panichi" <a
|
||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||
*
|
||||
*/
|
||||
public class CancelComputationRequestEvent
|
||||
extends
|
||||
GwtEvent<CancelComputationRequestEvent.CancelComputationRequestEventHandler> {
|
||||
|
||||
public static Type<CancelComputationRequestEventHandler> TYPE = new Type<CancelComputationRequestEventHandler>();
|
||||
private ComputationId computationId;
|
||||
|
||||
public interface CancelComputationRequestEventHandler extends EventHandler {
|
||||
void onCancel(CancelComputationRequestEvent event);
|
||||
}
|
||||
|
||||
public interface HasCancelComputationRequestEventHandler extends
|
||||
HasHandlers {
|
||||
public HandlerRegistration addCancelComputationRequestEventHandler(
|
||||
CancelComputationRequestEventHandler handler);
|
||||
}
|
||||
|
||||
public CancelComputationRequestEvent(ComputationId computationId) {
|
||||
this.computationId = computationId;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void dispatch(CancelComputationRequestEventHandler handler) {
|
||||
handler.onCancel(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Type<CancelComputationRequestEventHandler> getAssociatedType() {
|
||||
return TYPE;
|
||||
}
|
||||
|
||||
public static Type<CancelComputationRequestEventHandler> getType() {
|
||||
return TYPE;
|
||||
}
|
||||
|
||||
public static void fire(HasHandlers source,
|
||||
CancelComputationRequestEvent event) {
|
||||
source.fireEvent(event);
|
||||
}
|
||||
|
||||
public ComputationId getComputationId() {
|
||||
return computationId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "CancelComputationRequestEvent [computationId=" + computationId
|
||||
+ "]";
|
||||
}
|
||||
|
||||
}
|
@ -1,59 +0,0 @@
|
||||
package org.gcube.portlets.user.dataminermanager.client.events;
|
||||
|
||||
import com.google.gwt.event.shared.EventHandler;
|
||||
import com.google.gwt.event.shared.GwtEvent;
|
||||
import com.google.gwt.event.shared.HandlerRegistration;
|
||||
import com.google.gwt.event.shared.HasHandlers;
|
||||
|
||||
/**
|
||||
* Component Refresh Layout Event
|
||||
*
|
||||
*
|
||||
* @author "Giancarlo Panichi" <a
|
||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||
*
|
||||
*/
|
||||
public class ComponentRefreshLayoutEvent
|
||||
extends
|
||||
GwtEvent<ComponentRefreshLayoutEvent.ComponentRefreshLayoutEventHandler> {
|
||||
|
||||
public static Type<ComponentRefreshLayoutEventHandler> TYPE = new Type<ComponentRefreshLayoutEventHandler>();
|
||||
|
||||
public interface ComponentRefreshLayoutEventHandler extends EventHandler {
|
||||
void onRefresh(ComponentRefreshLayoutEvent event);
|
||||
}
|
||||
|
||||
public interface HasComponentRefreshLayoutEventHandler extends HasHandlers {
|
||||
public HandlerRegistration addComponentRefreshLayoutEventHandler(
|
||||
ComponentRefreshLayoutEventHandler handler);
|
||||
}
|
||||
|
||||
public ComponentRefreshLayoutEvent() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void dispatch(ComponentRefreshLayoutEventHandler handler) {
|
||||
handler.onRefresh(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Type<ComponentRefreshLayoutEventHandler> getAssociatedType() {
|
||||
return TYPE;
|
||||
}
|
||||
|
||||
public static Type<ComponentRefreshLayoutEventHandler> getType() {
|
||||
return TYPE;
|
||||
}
|
||||
|
||||
public static void fire(HasHandlers source,
|
||||
ComponentRefreshLayoutEvent event) {
|
||||
source.fireEvent(event);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "ComponentRefreshLayoutEvent []";
|
||||
}
|
||||
|
||||
}
|
@ -1,68 +0,0 @@
|
||||
package org.gcube.portlets.user.dataminermanager.client.events;
|
||||
|
||||
|
||||
import org.gcube.portlets.user.dataminermanager.shared.workspace.ItemDescription;
|
||||
|
||||
import com.google.gwt.event.shared.EventHandler;
|
||||
import com.google.gwt.event.shared.GwtEvent;
|
||||
import com.google.gwt.event.shared.HandlerRegistration;
|
||||
import com.google.gwt.event.shared.HasHandlers;
|
||||
|
||||
/**
|
||||
* Delete Item Event
|
||||
*
|
||||
*
|
||||
* @author "Giancarlo Panichi" <a
|
||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||
*
|
||||
*/
|
||||
public class DeleteItemEvent extends
|
||||
GwtEvent<DeleteItemEvent.DeleteItemEventHandler> {
|
||||
|
||||
public static Type<DeleteItemEventHandler> TYPE = new Type<DeleteItemEventHandler>();
|
||||
private ItemDescription itemDescription;
|
||||
|
||||
public interface DeleteItemEventHandler extends EventHandler {
|
||||
void onDelete(DeleteItemEvent event);
|
||||
}
|
||||
|
||||
public interface HasDeleteItemEventHandler extends HasHandlers {
|
||||
public HandlerRegistration addDeleteItemEventHandler(
|
||||
DeleteItemEventHandler handler);
|
||||
}
|
||||
|
||||
public DeleteItemEvent(ItemDescription itemDescription) {
|
||||
this.itemDescription = itemDescription;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void dispatch(DeleteItemEventHandler handler) {
|
||||
handler.onDelete(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Type<DeleteItemEventHandler> getAssociatedType() {
|
||||
return TYPE;
|
||||
}
|
||||
|
||||
public static Type<DeleteItemEventHandler> getType() {
|
||||
return TYPE;
|
||||
}
|
||||
|
||||
public static void fire(HasHandlers source, DeleteItemEvent deleteItemEvent) {
|
||||
source.fireEvent(deleteItemEvent);
|
||||
}
|
||||
|
||||
public ItemDescription getItemDescription() {
|
||||
return itemDescription;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "DeleteItemEvent [itemDescription=" + itemDescription + "]";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,76 @@
|
||||
package org.gcube.portlets.user.dataminermanager.client.events;
|
||||
|
||||
import org.gcube.portlets.user.dataminermanager.client.type.DataMinerWorkAreaElementType;
|
||||
import org.gcube.portlets.user.dataminermanager.shared.workspace.ItemDescription;
|
||||
|
||||
import com.google.gwt.event.shared.EventHandler;
|
||||
import com.google.gwt.event.shared.GwtEvent;
|
||||
import com.google.gwt.event.shared.HandlerRegistration;
|
||||
import com.google.gwt.event.shared.HasHandlers;
|
||||
|
||||
/**
|
||||
* Delete Item Request Event
|
||||
*
|
||||
*
|
||||
* @author "Giancarlo Panichi" <a
|
||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||
*
|
||||
*/
|
||||
public class DeleteItemRequestEvent extends
|
||||
GwtEvent<DeleteItemRequestEvent.DeleteItemRequestEventHandler> {
|
||||
|
||||
public static Type<DeleteItemRequestEventHandler> TYPE = new Type<DeleteItemRequestEventHandler>();
|
||||
private DataMinerWorkAreaElementType dataMinerWorkAreaElementType;
|
||||
private ItemDescription itemDescription;
|
||||
|
||||
public interface DeleteItemRequestEventHandler extends EventHandler {
|
||||
void onDeleteRequest(DeleteItemRequestEvent event);
|
||||
}
|
||||
|
||||
public interface HasDeleteItemRequestEventHandler extends HasHandlers {
|
||||
public HandlerRegistration addDeleteItemRequestEventHandler(
|
||||
DeleteItemRequestEventHandler handler);
|
||||
}
|
||||
|
||||
public DeleteItemRequestEvent(
|
||||
DataMinerWorkAreaElementType dataMinerWorkAreaElementType,
|
||||
ItemDescription itemDescription) {
|
||||
this.itemDescription = itemDescription;
|
||||
this.dataMinerWorkAreaElementType = dataMinerWorkAreaElementType;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void dispatch(DeleteItemRequestEventHandler handler) {
|
||||
handler.onDeleteRequest(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Type<DeleteItemRequestEventHandler> getAssociatedType() {
|
||||
return TYPE;
|
||||
}
|
||||
|
||||
public static Type<DeleteItemRequestEventHandler> getType() {
|
||||
return TYPE;
|
||||
}
|
||||
|
||||
public static void fire(HasHandlers source,
|
||||
DeleteItemRequestEvent deleteItemEvent) {
|
||||
source.fireEvent(deleteItemEvent);
|
||||
}
|
||||
|
||||
public ItemDescription getItemDescription() {
|
||||
return itemDescription;
|
||||
}
|
||||
|
||||
public DataMinerWorkAreaElementType getDataMinerWorkAreaElementType() {
|
||||
return dataMinerWorkAreaElementType;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "DeleteItemRequestEvent [dataMinerWorkAreaElementType="
|
||||
+ dataMinerWorkAreaElementType + ", itemDescription="
|
||||
+ itemDescription + "]";
|
||||
}
|
||||
|
||||
}
|
@ -1,42 +0,0 @@
|
||||
package org.gcube.portlets.user.dataminermanager.client.events;
|
||||
|
||||
import com.google.gwt.event.shared.GwtEvent;
|
||||
import com.google.gwt.event.shared.EventHandler;
|
||||
import java.lang.String;
|
||||
import com.google.gwt.event.shared.HasHandlers;
|
||||
|
||||
public class MaskEvent extends GwtEvent<MaskEvent.MaskHandler> {
|
||||
|
||||
public static Type<MaskHandler> TYPE = new Type<MaskHandler>();
|
||||
private String message;
|
||||
|
||||
public interface MaskHandler extends EventHandler {
|
||||
void onMask(MaskEvent event);
|
||||
}
|
||||
|
||||
public MaskEvent(String message) {
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void dispatch(MaskHandler handler) {
|
||||
handler.onMask(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Type<MaskHandler> getAssociatedType() {
|
||||
return TYPE;
|
||||
}
|
||||
|
||||
public static Type<MaskHandler> getType() {
|
||||
return TYPE;
|
||||
}
|
||||
|
||||
public static void fire(HasHandlers source, String message) {
|
||||
source.fireEvent(new MaskEvent(message));
|
||||
}
|
||||
}
|
@ -0,0 +1,96 @@
|
||||
package org.gcube.portlets.user.dataminermanager.client.events;
|
||||
|
||||
import org.gcube.portlets.user.dataminermanager.client.bean.OperatorsClassification;
|
||||
import org.gcube.portlets.user.dataminermanager.client.type.OperatorsClassificationRequestType;
|
||||
|
||||
import com.google.gwt.event.shared.EventHandler;
|
||||
import com.google.gwt.event.shared.GwtEvent;
|
||||
import com.google.gwt.event.shared.HandlerRegistration;
|
||||
import com.google.gwt.event.shared.HasHandlers;
|
||||
|
||||
/**
|
||||
* Operators Classification Event
|
||||
*
|
||||
*
|
||||
* @author "Giancarlo Panichi" <a
|
||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||
*
|
||||
*/
|
||||
public class OperatorsClassificationEvent
|
||||
extends
|
||||
GwtEvent<OperatorsClassificationEvent.OperatorsClassificationEventHandler> {
|
||||
|
||||
public static Type<OperatorsClassificationEventHandler> TYPE = new Type<OperatorsClassificationEventHandler>();
|
||||
private OperatorsClassificationRequestType operatorsClassificationRequestType;
|
||||
private String classificationName;
|
||||
private OperatorsClassification operatorsClassification;
|
||||
|
||||
public interface OperatorsClassificationEventHandler extends
|
||||
EventHandler {
|
||||
void onOperatorsClassification(OperatorsClassificationEvent event);
|
||||
}
|
||||
|
||||
public interface HasOperatorsClassificationEventHandler extends
|
||||
HasHandlers {
|
||||
public HandlerRegistration addOperatorsClassificationEventHandler(
|
||||
OperatorsClassificationEventHandler handler);
|
||||
}
|
||||
|
||||
public OperatorsClassificationEvent(OperatorsClassification operatorsClassification) {
|
||||
this.operatorsClassificationRequestType = OperatorsClassificationRequestType.Default;
|
||||
this.operatorsClassification=operatorsClassification;
|
||||
}
|
||||
|
||||
public OperatorsClassificationEvent(
|
||||
String classificationName, OperatorsClassification operatorsClassification) {
|
||||
this.operatorsClassificationRequestType = OperatorsClassificationRequestType.ByName;
|
||||
this.classificationName=classificationName;
|
||||
this.operatorsClassification=operatorsClassification;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void dispatch(OperatorsClassificationEventHandler handler) {
|
||||
handler.onOperatorsClassification(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Type<OperatorsClassificationEventHandler> getAssociatedType() {
|
||||
return TYPE;
|
||||
}
|
||||
|
||||
public static Type<OperatorsClassificationEventHandler> getType() {
|
||||
return TYPE;
|
||||
}
|
||||
|
||||
public static void fire(HasHandlers source,
|
||||
OperatorsClassificationEvent event) {
|
||||
source.fireEvent(event);
|
||||
}
|
||||
|
||||
public OperatorsClassificationRequestType getOperatorsClassificationRequestType() {
|
||||
return operatorsClassificationRequestType;
|
||||
}
|
||||
|
||||
public String getClassificationName() {
|
||||
return classificationName;
|
||||
}
|
||||
|
||||
public OperatorsClassification getOperatorsClassification() {
|
||||
return operatorsClassification;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "OperatorsClassificationEvent [operatorsClassificationRequestType="
|
||||
+ operatorsClassificationRequestType
|
||||
+ ", classificationName="
|
||||
+ classificationName
|
||||
+ ", operatorsClassification="
|
||||
+ operatorsClassification + "]";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,84 @@
|
||||
package org.gcube.portlets.user.dataminermanager.client.events;
|
||||
|
||||
import org.gcube.portlets.user.dataminermanager.client.type.OperatorsClassificationRequestType;
|
||||
|
||||
import com.google.gwt.event.shared.EventHandler;
|
||||
import com.google.gwt.event.shared.GwtEvent;
|
||||
import com.google.gwt.event.shared.HandlerRegistration;
|
||||
import com.google.gwt.event.shared.HasHandlers;
|
||||
|
||||
/**
|
||||
* Operators Classification Request Event
|
||||
*
|
||||
*
|
||||
* @author "Giancarlo Panichi" <a
|
||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||
*
|
||||
*/
|
||||
public class OperatorsClassificationRequestEvent
|
||||
extends
|
||||
GwtEvent<OperatorsClassificationRequestEvent.OperatorsClassificationRequestEventHandler> {
|
||||
|
||||
public static Type<OperatorsClassificationRequestEventHandler> TYPE = new Type<OperatorsClassificationRequestEventHandler>();
|
||||
private OperatorsClassificationRequestType operatorsClassificationRequestType;
|
||||
private String classificationName;
|
||||
|
||||
public interface OperatorsClassificationRequestEventHandler extends
|
||||
EventHandler {
|
||||
void onRequest(OperatorsClassificationRequestEvent event);
|
||||
}
|
||||
|
||||
public interface HasOperatorsClassificationRequestEventHandler extends
|
||||
HasHandlers {
|
||||
public HandlerRegistration addOperatorsClassificationRequestEventHandler(
|
||||
OperatorsClassificationRequestEventHandler handler);
|
||||
}
|
||||
|
||||
public OperatorsClassificationRequestEvent() {
|
||||
this.operatorsClassificationRequestType = OperatorsClassificationRequestType.Default;
|
||||
}
|
||||
|
||||
public OperatorsClassificationRequestEvent(
|
||||
String classificationName) {
|
||||
this.operatorsClassificationRequestType = OperatorsClassificationRequestType.ByName;
|
||||
this.classificationName=classificationName;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void dispatch(OperatorsClassificationRequestEventHandler handler) {
|
||||
handler.onRequest(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Type<OperatorsClassificationRequestEventHandler> getAssociatedType() {
|
||||
return TYPE;
|
||||
}
|
||||
|
||||
public static Type<OperatorsClassificationRequestEventHandler> getType() {
|
||||
return TYPE;
|
||||
}
|
||||
|
||||
public static void fire(HasHandlers source,
|
||||
OperatorsClassificationRequestEvent event) {
|
||||
source.fireEvent(event);
|
||||
}
|
||||
|
||||
public OperatorsClassificationRequestType getOperatorsClassificationRequestType() {
|
||||
return operatorsClassificationRequestType;
|
||||
}
|
||||
|
||||
public String getClassificationName() {
|
||||
return classificationName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "OperatorsClassificationRequestEvent [operatorsClassificationRequestType="
|
||||
+ operatorsClassificationRequestType
|
||||
+ ", classificationName="
|
||||
+ classificationName + "]";
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
@ -1,43 +0,0 @@
|
||||
package org.gcube.portlets.user.dataminermanager.client.events;
|
||||
|
||||
import com.google.gwt.event.shared.GwtEvent;
|
||||
import com.google.gwt.event.shared.EventHandler;
|
||||
import java.lang.String;
|
||||
import com.google.gwt.event.shared.HasHandlers;
|
||||
|
||||
public class TablesGridGotDirtyEvent extends
|
||||
GwtEvent<TablesGridGotDirtyEvent.TablesGridGotDirtyHandler> {
|
||||
|
||||
public static Type<TablesGridGotDirtyHandler> TYPE = new Type<TablesGridGotDirtyHandler>();
|
||||
private String tableId;
|
||||
|
||||
public interface TablesGridGotDirtyHandler extends EventHandler {
|
||||
void onTablesGridGotDirty(TablesGridGotDirtyEvent event);
|
||||
}
|
||||
|
||||
public TablesGridGotDirtyEvent(String tableId) {
|
||||
this.tableId = tableId;
|
||||
}
|
||||
|
||||
public String getTableId() {
|
||||
return tableId;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void dispatch(TablesGridGotDirtyHandler handler) {
|
||||
handler.onTablesGridGotDirty(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Type<TablesGridGotDirtyHandler> getAssociatedType() {
|
||||
return TYPE;
|
||||
}
|
||||
|
||||
public static Type<TablesGridGotDirtyHandler> getType() {
|
||||
return TYPE;
|
||||
}
|
||||
|
||||
public static void fire(HasHandlers source, String tableId) {
|
||||
source.fireEvent(new TablesGridGotDirtyEvent(tableId));
|
||||
}
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
package org.gcube.portlets.user.dataminermanager.client.experimentArea;
|
||||
package org.gcube.portlets.user.dataminermanager.client.experiments;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package org.gcube.portlets.user.dataminermanager.client.experimentArea;
|
||||
package org.gcube.portlets.user.dataminermanager.client.experiments;
|
||||
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
@ -1,11 +1,11 @@
|
||||
package org.gcube.portlets.user.dataminermanager.client.experimentArea;
|
||||
package org.gcube.portlets.user.dataminermanager.client.experiments;
|
||||
|
||||
import org.gcube.portlets.user.dataminermanager.client.DataMinerManager;
|
||||
import org.gcube.portlets.user.dataminermanager.client.bean.Operator;
|
||||
import org.gcube.portlets.user.dataminermanager.client.events.ComputationReadyEvent;
|
||||
import org.gcube.portlets.user.dataminermanager.client.events.ComputationReadyEvent.ComputationReadyEventHandler;
|
||||
import org.gcube.portlets.user.dataminermanager.client.events.ComputationReadyEvent.HasComputationReadyEventHandler;
|
||||
import org.gcube.portlets.user.dataminermanager.client.experimentArea.ComputationParametersPanel.ComputationParametersPanelHandler;
|
||||
import org.gcube.portlets.user.dataminermanager.client.experiments.ComputationParametersPanel.ComputationParametersPanelHandler;
|
||||
|
||||
import com.google.gwt.event.shared.HandlerRegistration;
|
||||
import com.google.gwt.user.client.ui.HTML;
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package org.gcube.portlets.user.dataminermanager.client.experimentArea;
|
||||
package org.gcube.portlets.user.dataminermanager.client.experiments;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
@ -1,4 +1,4 @@
|
||||
package org.gcube.portlets.user.dataminermanager.client.experimentArea;
|
||||
package org.gcube.portlets.user.dataminermanager.client.experiments;
|
||||
|
||||
import org.gcube.portlets.user.dataminermanager.client.bean.Operator;
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package org.gcube.portlets.user.dataminermanager.client.experimentArea;
|
||||
package org.gcube.portlets.user.dataminermanager.client.experiments;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package org.gcube.portlets.user.dataminermanager.client.experimentArea;
|
||||
package org.gcube.portlets.user.dataminermanager.client.experiments;
|
||||
|
||||
import org.gcube.portlets.user.dataminermanager.client.bean.Operator;
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package org.gcube.portlets.user.dataminermanager.client.experimentArea;
|
||||
package org.gcube.portlets.user.dataminermanager.client.experiments;
|
||||
|
||||
import org.gcube.portlets.user.dataminermanager.client.bean.Operator;
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package org.gcube.portlets.user.dataminermanager.client.experimentArea;
|
||||
package org.gcube.portlets.user.dataminermanager.client.experiments;
|
||||
|
||||
import org.gcube.portlets.user.dataminermanager.client.DataMinerManager;
|
||||
import org.gcube.portlets.user.dataminermanager.client.bean.Operator;
|
@ -0,0 +1,11 @@
|
||||
package org.gcube.portlets.user.dataminermanager.client.type;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author "Giancarlo Panichi" <a
|
||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||
*
|
||||
*/
|
||||
public enum DataMinerWorkAreaElementType {
|
||||
InputDataSets, OutputDataSets, Computations;
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
package org.gcube.portlets.user.dataminermanager.client.type;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Giancarlo Panichi
|
||||
* email: <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||
*
|
||||
*/
|
||||
public enum OperatorsClassificationRequestType {
|
||||
Default, ByName;
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
package org.gcube.portlets.user.dataminermanager.client.events;
|
||||
package org.gcube.portlets.user.dataminermanager.client.type;
|
||||
|
||||
/**
|
||||
*
|
Loading…
Reference in New Issue