Merge with 1.0.1 branch version: products are always published as private in manage context; they are published as public in the public context

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/grsf-publisher-ws@142375 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2017-02-08 11:56:26 +00:00
parent 28388712f1
commit 7f608a504f
2 changed files with 8 additions and 2 deletions

View File

@ -211,6 +211,9 @@ public class GrsfPublisherFisheryService {
else throw new Exception("Please check the license id!");
long version = record.getVersion() == null ? 1 : record.getVersion();
// set the visibility of the datatest according the context
boolean publicDataset = context.equals((String)contextServlet.getInitParameter(HelperMethods.PUBLIC_CONTEX_KEY));
logger.info("Invoking creation method..");
@ -230,7 +233,7 @@ public class GrsfPublisherFisheryService {
new ArrayList<String>(tags),
customFields,
resources,
true);
publicDataset);
if(id != null){

View File

@ -201,6 +201,9 @@ public class GrsfPublisherStockService {
else throw new Exception("Please check the license id!");
long version = record.getVersion() == null ? 1 : record.getVersion();
// set the visibility of the datatest according the context
boolean publicDataset = context.equals((String)contextServlet.getInitParameter(HelperMethods.PUBLIC_CONTEX_KEY));
logger.info("Invoking creation method..");
@ -220,7 +223,7 @@ public class GrsfPublisherStockService {
new ArrayList<String>(tags),
customFields,
resources,
true);
publicDataset);
if(id != null){