git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-open-widget@86656 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
64aae3e11a
commit
ea3fec0985
|
@ -1,54 +0,0 @@
|
||||||
package org.gcube.portlets.user.td.openwidget.client.source;
|
|
||||||
|
|
||||||
|
|
||||||
public class FileSource implements Source {
|
|
||||||
|
|
||||||
|
|
||||||
private static final long serialVersionUID = -5990408094142286488L;
|
|
||||||
|
|
||||||
public static final FileSource INSTANCE = new FileSource();
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritDoc}
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public String getId() {
|
|
||||||
return "File";
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritDoc}
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public String getName() {
|
|
||||||
return "File source";
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritDoc}
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public String getDescription() {
|
|
||||||
return "Select this source if you want to retrive document from File";
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritDoc}
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder builder = new StringBuilder();
|
|
||||||
builder.append("File source [getId()=");
|
|
||||||
builder.append(getId());
|
|
||||||
builder.append(", getName()=");
|
|
||||||
builder.append(getName());
|
|
||||||
builder.append(", getDescription()=");
|
|
||||||
builder.append(getDescription());
|
|
||||||
builder.append("]");
|
|
||||||
return builder.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,27 +0,0 @@
|
||||||
package org.gcube.portlets.user.td.openwidget.client.source;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
|
|
||||||
|
|
||||||
public interface Source extends Serializable {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the document type id.
|
|
||||||
* @return the document type id.
|
|
||||||
*/
|
|
||||||
public String getId();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the document type name.
|
|
||||||
* @return the document type name.
|
|
||||||
*/
|
|
||||||
public String getName();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the document type description.
|
|
||||||
* @return the document type description.
|
|
||||||
*/
|
|
||||||
public String getDescription();
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,68 +0,0 @@
|
||||||
package org.gcube.portlets.user.td.openwidget.client.source;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public class TDOpenSource implements Source {
|
|
||||||
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 3254879141340681969L;
|
|
||||||
|
|
||||||
public static final TDOpenSource INSTANCE = new TDOpenSource();
|
|
||||||
|
|
||||||
protected String url;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritDoc}
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public String getId() {
|
|
||||||
return "SDMXRegistry";
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritDoc}
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public String getName() {
|
|
||||||
return "SDMX Registry source";
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritDoc}
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public String getDescription() {
|
|
||||||
return "Select this source if you want to retrive document from SDMX Registry";
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getUrl() {
|
|
||||||
return url;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setUrl(String url) {
|
|
||||||
this.url = url;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritDoc}
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder builder = new StringBuilder();
|
|
||||||
builder.append("SDMXRegistry source [getId()=");
|
|
||||||
builder.append(getId());
|
|
||||||
builder.append(", getName()=");
|
|
||||||
builder.append(getName());
|
|
||||||
builder.append(", getDescription()=");
|
|
||||||
builder.append(getDescription());
|
|
||||||
builder.append(", getUrl()=");
|
|
||||||
builder.append(getUrl());
|
|
||||||
builder.append("]");
|
|
||||||
return builder.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,54 +0,0 @@
|
||||||
package org.gcube.portlets.user.td.openwidget.client.source;
|
|
||||||
|
|
||||||
|
|
||||||
public class WorkspaceSource implements Source {
|
|
||||||
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 2826706131664617270L;
|
|
||||||
|
|
||||||
public static final WorkspaceSource INSTANCE = new WorkspaceSource();
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritDoc}
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public String getId() {
|
|
||||||
return "Workspace";
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritDoc}
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public String getName() {
|
|
||||||
return "Workspace source";
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritDoc}
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public String getDescription() {
|
|
||||||
return "Select this source if you want to retrive document from Workspace";
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritDoc}
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder builder = new StringBuilder();
|
|
||||||
builder.append("Workspace source [getId()=");
|
|
||||||
builder.append(getId());
|
|
||||||
builder.append(", getName()=");
|
|
||||||
builder.append(getName());
|
|
||||||
builder.append(", getDescription()=");
|
|
||||||
builder.append(getDescription());
|
|
||||||
builder.append("]");
|
|
||||||
return builder.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
Loading…
Reference in New Issue