Added metadata

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@85791 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2013-11-20 16:53:14 +00:00
parent 83e70acd04
commit 8abac0ccfe
8 changed files with 281 additions and 0 deletions

View File

@ -0,0 +1,33 @@
package org.gcube.portlets.user.td.gwtservice.shared.tr.metadata;
import java.util.ArrayList;
/**
*
* @author "Giancarlo Panichi" <a
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
*
*/
public class TRDescriptionsMetadata implements TRMetadata {
private static final long serialVersionUID = -2663624208642658528L;
ArrayList<TRLocalizedText> listLocalizedText;
public ArrayList<TRLocalizedText> getListLocalizedText() {
return listLocalizedText;
}
public void setListLocalizedText(ArrayList<TRLocalizedText> listLocalizedText) {
this.listLocalizedText = listLocalizedText;
}
@Override
public String toString() {
return "TRDescriptionsMetadata [listLocalizedText=" + listLocalizedText
+ "]";
}
}

View File

@ -0,0 +1,45 @@
package org.gcube.portlets.user.td.gwtservice.shared.tr.metadata;
import java.util.Date;
/**
*
* @author "Giancarlo Panichi" <a
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
*
*/
public class TRExportMetadata implements TRMetadata {
private static final long serialVersionUID = -2663624208642658528L;
private String destinationType;
private String url;
private Date exportDate;
public String getDestinationType() {
return destinationType;
}
public void setDestinationType(String destinationType) {
this.destinationType = destinationType;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public Date getExportDate() {
return exportDate;
}
public void setExportDate(Date exportDate) {
this.exportDate = exportDate;
}
@Override
public String toString() {
return "TRExportMetadata [destinationType=" + destinationType
+ ", url=" + url + ", exportDate=" + exportDate + "]";
}
}

View File

@ -0,0 +1,32 @@
package org.gcube.portlets.user.td.gwtservice.shared.tr.metadata;
import java.util.HashMap;
/**
*
* @author "Giancarlo Panichi" <a
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
*
*/
public class TRGenericMapMetadata implements TRMetadata {
private static final long serialVersionUID = -2663624208642658528L;
private HashMap<String, String> metadataMap = new HashMap<String, String>();
public HashMap<String, String> getMetadataMap() {
return metadataMap;
}
public void setMetadataMap(HashMap<String, String> metadataMap) {
this.metadataMap = metadataMap;
}
@Override
public String toString() {
return "TRGenericMapMetadata [metadataMap=" + metadataMap + "]";
}
}

View File

@ -0,0 +1,48 @@
package org.gcube.portlets.user.td.gwtservice.shared.tr.metadata;
import java.util.Date;
/**
*
* @author "Giancarlo Panichi" <a
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
*
*/
public class TRImportMetadata implements TRMetadata {
private static final long serialVersionUID = -2663624208642658528L;
private String sourceType;
private String url;
private Date importDate;
public String getSourceType() {
return sourceType;
}
public void setSourceType(String sourceType) {
this.sourceType = sourceType;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public Date getImportDate() {
return importDate;
}
public void setImportDate(Date importDate) {
this.importDate = importDate;
}
@Override
public String toString() {
return "TRImportMetadata [sourceType=" + sourceType + ", url=" + url
+ ", importDate=" + importDate + "]";
}
}

View File

@ -0,0 +1,43 @@
package org.gcube.portlets.user.td.gwtservice.shared.tr.metadata;
import java.io.Serializable;
/**
*
* @author "Giancarlo Panichi" <a
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
*
*/
public class TRLocalizedText implements Serializable {
private static final long serialVersionUID = 5208229342328376604L;
private String value;
private String localeCode;
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public String getLocaleCode() {
return localeCode;
}
public void setLocaleCode(String localeCode) {
this.localeCode = localeCode;
}
@Override
public String toString() {
return "TRLocalizedText [value=" + value + ", localeCode=" + localeCode
+ "]";
}
}

View File

@ -0,0 +1,15 @@
package org.gcube.portlets.user.td.gwtservice.shared.tr.metadata;
import java.io.Serializable;
/**
*
* @author "Giancarlo Panichi"
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
*
*/
public interface TRMetadata extends Serializable {
}

View File

@ -0,0 +1,33 @@
package org.gcube.portlets.user.td.gwtservice.shared.tr.metadata;
import java.util.ArrayList;
/**
*
* @author "Giancarlo Panichi" <a
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
*
*/
public class TRNamesMetadata implements TRMetadata {
private static final long serialVersionUID = 7635332011036656032L;
ArrayList<TRLocalizedText> listLocalizedText;
public ArrayList<TRLocalizedText> getListLocalizedText() {
return listLocalizedText;
}
public void setListLocalizedText(ArrayList<TRLocalizedText> listLocalizedText) {
this.listLocalizedText = listLocalizedText;
}
@Override
public String toString() {
return "TRNamesMetadata [listLocalizedText=" + listLocalizedText + "]";
}
}

View File

@ -0,0 +1,32 @@
package org.gcube.portlets.user.td.gwtservice.shared.tr.metadata;
/**
*
* @author "Giancarlo Panichi" <a
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
*
*/
public class TRVersionMetadata implements TRMetadata {
private static final long serialVersionUID = 5208229342328376604L;
private String version;
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
@Override
public String toString() {
return "TRVersionMetadata [version=" + version + "]";
}
}