added generic dataset bean
This commit is contained in:
parent
b657ec4670
commit
da31daafe0
|
@ -881,5 +881,7 @@ public class CreateMetadataForm extends Composite{
|
|||
public void showSelectedProfiles(boolean show) {
|
||||
this.selectedProfile.setVisible(show);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -5,6 +5,7 @@ import java.util.List;
|
|||
import java.util.Map;
|
||||
|
||||
import org.gcube.portlets.widgets.mpformbuilder.shared.metadata.MetaDataProfileBean;
|
||||
import org.gcube.portlets.widgets.mpformbuilder.shared.upload.FileUploaded;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -16,8 +17,15 @@ import org.gcube.portlets.widgets.mpformbuilder.shared.metadata.MetaDataProfileB
|
|||
*/
|
||||
public class GenericDatasetBean implements Serializable {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = -5215392381589702647L;
|
||||
|
||||
|
||||
private List<MetaDataProfileBean> metadataList;
|
||||
private Map<String, List<String>> customFields;
|
||||
private List<FileUploaded> fileUploaded;
|
||||
|
||||
/**
|
||||
* Instantiates a new generic dataset bean.
|
||||
|
@ -25,12 +33,18 @@ public class GenericDatasetBean implements Serializable {
|
|||
public GenericDatasetBean(){
|
||||
}
|
||||
|
||||
public GenericDatasetBean(List<MetaDataProfileBean> metadataList, Map<String, List<String>> customFields) {
|
||||
|
||||
|
||||
public GenericDatasetBean(List<MetaDataProfileBean> metadataList, Map<String, List<String>> customFields,
|
||||
List<FileUploaded> fileUploaded) {
|
||||
super();
|
||||
this.metadataList = metadataList;
|
||||
this.customFields = customFields;
|
||||
this.fileUploaded = fileUploaded;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public List<MetaDataProfileBean> getMetadataList() {
|
||||
return metadataList;
|
||||
}
|
||||
|
@ -47,6 +61,16 @@ public class GenericDatasetBean implements Serializable {
|
|||
this.customFields = customFields;
|
||||
}
|
||||
|
||||
public List<FileUploaded> getFileUploaded() {
|
||||
return fileUploaded;
|
||||
}
|
||||
|
||||
public void setFileUploaded(List<FileUploaded> fileUploaded) {
|
||||
this.fileUploaded = fileUploaded;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder builder = new StringBuilder();
|
||||
|
@ -54,8 +78,11 @@ public class GenericDatasetBean implements Serializable {
|
|||
builder.append(metadataList);
|
||||
builder.append(", customFields=");
|
||||
builder.append(customFields);
|
||||
builder.append(", fileUploaded=");
|
||||
builder.append(fileUploaded);
|
||||
builder.append("]");
|
||||
return builder.toString();
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue