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:
parent
28388712f1
commit
7f608a504f
|
@ -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){
|
||||
|
||||
|
|
|
@ -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){
|
||||
|
||||
|
|
Reference in New Issue