This commit is contained in:
Giancarlo Panichi 2013-12-06 11:18:28 +00:00 committed by Giancarlo Panichi
parent 64aae3e11a
commit ea3fec0985
4 changed files with 0 additions and 203 deletions

View File

@ -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();
}
}

View File

@ -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();
}

View File

@ -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();
}
}

View File

@ -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();
}
}