Added setGcubeProfile, documentSectionAsJSON
This commit is contained in:
parent
fb3790b2ef
commit
b1a4a22cc6
|
@ -191,6 +191,7 @@ public class Geoportal_JSON_Mapper {
|
||||||
theProfileBeanExt.setCategories(theProfileBean.getCategories());
|
theProfileBeanExt.setCategories(theProfileBean.getCategories());
|
||||||
theProfileBeanExt.setTitle(theProfileBean.getTitle());
|
theProfileBeanExt.setTitle(theProfileBean.getTitle());
|
||||||
theProfileBeanExt.setType(theProfileBean.getType());
|
theProfileBeanExt.setType(theProfileBean.getType());
|
||||||
|
theProfileBeanExt.setGcubeProfile(gcubeProfileDV);
|
||||||
|
|
||||||
Document fromSectionDoc = listBSONDocument.get(i);
|
Document fromSectionDoc = listBSONDocument.get(i);
|
||||||
LOG.debug("\n\nNew section DOC for index " + i + " is: "
|
LOG.debug("\n\nNew section DOC for index " + i + " is: "
|
||||||
|
@ -236,6 +237,8 @@ public class Geoportal_JSON_Mapper {
|
||||||
}
|
}
|
||||||
|
|
||||||
theProfileBeanExt.setMetadataFields(new ArrayList<MetadataFieldWrapper>(cloneListOfMFW));
|
theProfileBeanExt.setMetadataFields(new ArrayList<MetadataFieldWrapper>(cloneListOfMFW));
|
||||||
|
theProfileBeanExt.setDocumentSectionAsJSON(fromSectionDoc.toJson());
|
||||||
|
theProfileBeanExt.setGcubeProfile(gcubeProfileDV);
|
||||||
LOG.debug("Metadata fields are: " + theProfileBeanExt.getMetadataFields());
|
LOG.debug("Metadata fields are: " + theProfileBeanExt.getMetadataFields());
|
||||||
|
|
||||||
// Reading filePaths
|
// Reading filePaths
|
||||||
|
|
|
@ -4,6 +4,7 @@ import java.io.Serializable;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.gcube.application.geoportalcommon.shared.geoportal.config.GcubeProfileDV;
|
||||||
import org.gcube.application.geoportalcommon.shared.geoportal.materialization.innerobject.FilesetDV;
|
import org.gcube.application.geoportalcommon.shared.geoportal.materialization.innerobject.FilesetDV;
|
||||||
import org.gcube.application.geoportalcommon.shared.geoportal.materialization.innerobject.PayloadDV;
|
import org.gcube.application.geoportalcommon.shared.geoportal.materialization.innerobject.PayloadDV;
|
||||||
import org.gcube.portlets.widgets.mpformbuilder.shared.metadata.CategoryWrapper;
|
import org.gcube.portlets.widgets.mpformbuilder.shared.metadata.CategoryWrapper;
|
||||||
|
@ -23,8 +24,13 @@ public class MetaDataProfileBeanExt extends MetaDataProfileBean implements Seria
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private static final long serialVersionUID = 2518128223147908835L;
|
private static final long serialVersionUID = 2518128223147908835L;
|
||||||
|
|
||||||
|
private String documentSectionAsJSON = null;
|
||||||
|
|
||||||
private List<FilesetDV> listFileset = null;
|
private List<FilesetDV> listFileset = null;
|
||||||
|
|
||||||
|
private GcubeProfileDV gcubeProfileDV;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Instantiates a new meta data profile bean ext.
|
* Instantiates a new meta data profile bean ext.
|
||||||
*/
|
*/
|
||||||
|
@ -56,6 +62,24 @@ public class MetaDataProfileBeanExt extends MetaDataProfileBean implements Seria
|
||||||
return listFileset;
|
return listFileset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the document section as JSON.
|
||||||
|
*
|
||||||
|
* @return the document section as JSON
|
||||||
|
*/
|
||||||
|
public String getDocumentSectionAsJSON() {
|
||||||
|
return documentSectionAsJSON;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the document section as JSON.
|
||||||
|
*
|
||||||
|
* @param documentSectionAsJSON the new document section as JSON
|
||||||
|
*/
|
||||||
|
public void setDocumentSectionAsJSON(String documentSectionAsJSON) {
|
||||||
|
this.documentSectionAsJSON = documentSectionAsJSON;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the list fileset.
|
* Sets the list fileset.
|
||||||
*
|
*
|
||||||
|
@ -120,15 +144,24 @@ public class MetaDataProfileBeanExt extends MetaDataProfileBean implements Seria
|
||||||
return clonedMDPBE;
|
return clonedMDPBE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setGcubeProfile(GcubeProfileDV gcubeProfileDV) {
|
||||||
|
this.gcubeProfileDV = gcubeProfileDV;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public GcubeProfileDV getGcubeProfileDV() {
|
||||||
|
return gcubeProfileDV;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder builder = new StringBuilder();
|
StringBuilder builder = new StringBuilder();
|
||||||
builder.append("MetaDataProfileBeanExt [getType()=");
|
builder.append("MetaDataProfileBeanExt [documentSectionAsJSON=");
|
||||||
builder.append(getType());
|
builder.append(documentSectionAsJSON);
|
||||||
builder.append(", getTitle()=");
|
builder.append(", listFileset=");
|
||||||
builder.append(getTitle());
|
builder.append(listFileset);
|
||||||
builder.append(", getMetadataFields()=");
|
builder.append(", gcubeProfileDV=");
|
||||||
builder.append(getMetadataFields());
|
builder.append(gcubeProfileDV);
|
||||||
builder.append("]");
|
builder.append("]");
|
||||||
return builder.toString();
|
return builder.toString();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue