minor fix
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/grsf-publisher-ws@133202 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
92d8d0bc47
commit
8f8c0bbdd2
|
@ -163,7 +163,7 @@ public class GrsfPublisherFisheryService {
|
||||||
|
|
||||||
logger.debug("A product with name " + futureName + " already exists");
|
logger.debug("A product with name " + futureName + " already exists");
|
||||||
responseBean.setId(null);
|
responseBean.setId(null);
|
||||||
status = Status.BAD_REQUEST;
|
status = Status.CONFLICT;
|
||||||
throw new Exception("Sorry but a product with such name already exists!");
|
throw new Exception("Sorry but a product with such name already exists!");
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
|
|
|
@ -155,7 +155,7 @@ public class GrsfPublisherStockService {
|
||||||
|
|
||||||
logger.debug("A product with name " + futureName + " already exists");
|
logger.debug("A product with name " + futureName + " already exists");
|
||||||
responseBean.setId(null);
|
responseBean.setId(null);
|
||||||
status = Status.BAD_REQUEST;
|
status = Status.CONFLICT;
|
||||||
throw new Exception("Sorry but a product with such name already exists!");
|
throw new Exception("Sorry but a product with such name already exists!");
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
|
@ -221,7 +221,7 @@ public class GrsfPublisherStockService {
|
||||||
tags,
|
tags,
|
||||||
customFields,
|
customFields,
|
||||||
resources,
|
resources,
|
||||||
setPublic); // TODO
|
setPublic);
|
||||||
|
|
||||||
if(id != null){
|
if(id != null){
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ public enum Type {
|
||||||
|
|
||||||
Assessment_Unit("Assessment Unit"),// for stock
|
Assessment_Unit("Assessment Unit"),// for stock
|
||||||
Resource("Resource"), // for stock
|
Resource("Resource"), // for stock
|
||||||
Fishing_Activity("Fishing Activity"), // for fishery
|
Fishery_Activity("Fishery Activity"), // for fishery
|
||||||
Fishing_Description("Fishing Description"); // for fishery
|
Fishing_Description("Fishing Description"); // for fishery
|
||||||
|
|
||||||
private String subGroupNameOrig;
|
private String subGroupNameOrig;
|
||||||
|
|
Loading…
Reference in New Issue