diff --git a/src/main/java/org/gcube/portlets/user/td/openwidget/client/source/FileSource.java b/src/main/java/org/gcube/portlets/user/td/openwidget/client/source/FileSource.java deleted file mode 100644 index e18d55f..0000000 --- a/src/main/java/org/gcube/portlets/user/td/openwidget/client/source/FileSource.java +++ /dev/null @@ -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(); - } - - - -} \ No newline at end of file diff --git a/src/main/java/org/gcube/portlets/user/td/openwidget/client/source/Source.java b/src/main/java/org/gcube/portlets/user/td/openwidget/client/source/Source.java deleted file mode 100644 index 7a6408a..0000000 --- a/src/main/java/org/gcube/portlets/user/td/openwidget/client/source/Source.java +++ /dev/null @@ -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(); - - -} diff --git a/src/main/java/org/gcube/portlets/user/td/openwidget/client/source/TDOpenSource.java b/src/main/java/org/gcube/portlets/user/td/openwidget/client/source/TDOpenSource.java deleted file mode 100644 index d64d43e..0000000 --- a/src/main/java/org/gcube/portlets/user/td/openwidget/client/source/TDOpenSource.java +++ /dev/null @@ -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(); - } - - - -} \ No newline at end of file diff --git a/src/main/java/org/gcube/portlets/user/td/openwidget/client/source/WorkspaceSource.java b/src/main/java/org/gcube/portlets/user/td/openwidget/client/source/WorkspaceSource.java deleted file mode 100644 index 0e85897..0000000 --- a/src/main/java/org/gcube/portlets/user/td/openwidget/client/source/WorkspaceSource.java +++ /dev/null @@ -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(); - } - - - -} \ No newline at end of file