mime type fix for resources
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@150725 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
174be6eaa3
commit
e105b82eb2
|
@ -1,9 +1,14 @@
|
|||
<ReleaseNotes>
|
||||
<Changeset component="org.gcube.data-catalogue.ckan-util-library.2-3-1"
|
||||
date="2017-07-01">
|
||||
<Change>Mime type fix for resources</Change>
|
||||
</Changeset>
|
||||
<Changeset component="org.gcube.data-catalogue.ckan-util-library.2-3-0"
|
||||
date="2017-05-01">
|
||||
<Change>Pom fixes</Change>
|
||||
<Change>Moved to java 8</Change>
|
||||
<Change>Added method to add a dataset to a group and its parents (if any)</Change>
|
||||
<Change>Added method to add a dataset to a group and its parents (if
|
||||
any)</Change>
|
||||
</Changeset>
|
||||
<Changeset component="org.gcube.data-catalogue.ckan-util-library.2-2-1"
|
||||
date="2017-04-01">
|
||||
|
@ -13,7 +18,8 @@
|
|||
date="2017-02-01">
|
||||
<Change>Added method to delete/purge group</Change>
|
||||
<Change>Project structure and so packages are changed (gwt-widget like
|
||||
structure)</Change>
|
||||
structure)
|
||||
</Change>
|
||||
</Changeset>
|
||||
<Changeset component="org.gcube.data-catalogue.ckan-util-library.2-1-0"
|
||||
date="2016-12-01">
|
||||
|
@ -31,9 +37,11 @@
|
|||
instances of the utils class(cache)
|
||||
</Change>
|
||||
<Change>Added code to discover a new Application Profile (see ticket
|
||||
#4925)</Change>
|
||||
#4925)
|
||||
</Change>
|
||||
<Change>Added methods to manage group creation, assing a user/product
|
||||
to a group</Change>
|
||||
to a group
|
||||
</Change>
|
||||
</Changeset>
|
||||
<Changeset component="org.gcube.data-catalogue.ckan-util-library.1-0-0"
|
||||
date="2016-06-01">
|
||||
|
|
2
pom.xml
2
pom.xml
|
@ -10,7 +10,7 @@
|
|||
</parent>
|
||||
<groupId>org.gcube.data-catalogue</groupId>
|
||||
<artifactId>ckan-util-library</artifactId>
|
||||
<version>2.3.0-SNAPSHOT</version>
|
||||
<version>2.3.1-SNAPSHOT</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>CKan utility library</name>
|
||||
|
|
|
@ -816,12 +816,14 @@ public class DataCatalogueImpl implements DataCatalogue{
|
|||
List<CkanResource> resourcesCkan = new ArrayList<CkanResource>();
|
||||
for(ResourceBean resource: resources){
|
||||
|
||||
logger.debug("Going to add resource described by " + resource);
|
||||
CkanResource newResource = new CkanResource();
|
||||
newResource.setDescription(resource.getDescription());
|
||||
newResource.setId(resource.getId());
|
||||
newResource.setUrl(resource.getUrl());
|
||||
newResource.setName(resource.getName());
|
||||
newResource.setMimetype(resource.getMimeType());
|
||||
newResource.setFormat(resource.getMimeType());
|
||||
newResource.setOwner(ckanUsername);
|
||||
resourcesCkan.add(newResource);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue