zenodoItem setLicenses not null as LicenseBean S new
This commit is contained in:
parent
1be6d17b84
commit
139775a525
|
@ -204,8 +204,10 @@ public class CkanToZenodoPublisherServiceImpl extends RemoteServiceServlet imple
|
||||||
// zenodoItem.getMetadata().setUpload_type(null);
|
// zenodoItem.getMetadata().setUpload_type(null);
|
||||||
// zenodoItem.getMetadata().setPublication_type(null);
|
// zenodoItem.getMetadata().setPublication_type(null);
|
||||||
|
|
||||||
LOG.info("zenodoItem setLicenses not null as LicenseBean new");
|
LOG.info("zenodoItem setLicenses not null as LicenseBean S new");
|
||||||
//zenodoItem.getMetadata().setLicenses(null);
|
|
||||||
|
LOG.info("zenodoItem getLicenses: "+zenodoItem.getMetadata().getLicenses());
|
||||||
|
zenodoItem.getMetadata().setLicenses(null);
|
||||||
|
|
||||||
LOG.debug("Returning item: "+zenodoItem);
|
LOG.debug("Returning item: "+zenodoItem);
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,6 @@ import java.util.List;
|
||||||
|
|
||||||
import org.gcube.portlets.widgets.ckan2zenodopublisher.shared.SerializableEnum;
|
import org.gcube.portlets.widgets.ckan2zenodopublisher.shared.SerializableEnum;
|
||||||
import org.gcube.portlets.widgets.ckan2zenodopublisher.shared.wrapped.LicenseBean;
|
import org.gcube.portlets.widgets.ckan2zenodopublisher.shared.wrapped.LicenseBean;
|
||||||
import org.gcube.portlets.widgets.ckan2zenodopublisher.shared.wrapped.ZenodoLicense;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -11,7 +11,7 @@ import java.util.List;
|
||||||
* Dec 10, 2019
|
* Dec 10, 2019
|
||||||
* @param <T> the generic type
|
* @param <T> the generic type
|
||||||
*/
|
*/
|
||||||
public class SerializableEnum<E> implements Serializable{
|
public class SerializableEnum<E extends Serializable> implements Serializable{
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -884,6 +884,8 @@ public class ZenodoMetadata implements Serializable {
|
||||||
public SerializableEnum<LicenseBean> getLicenses() {
|
public SerializableEnum<LicenseBean> getLicenses() {
|
||||||
return licenses;
|
return licenses;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
|
|
Loading…
Reference in New Issue