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:
Costantino Perciante 2016-10-14 13:20:10 +00:00
parent 92d8d0bc47
commit 8f8c0bbdd2
3 changed files with 4 additions and 4 deletions

View File

@ -163,7 +163,7 @@ public class GrsfPublisherFisheryService {
logger.debug("A product with name " + futureName + " already exists");
responseBean.setId(null);
status = Status.BAD_REQUEST;
status = Status.CONFLICT;
throw new Exception("Sorry but a product with such name already exists!");
}else{

View File

@ -155,7 +155,7 @@ public class GrsfPublisherStockService {
logger.debug("A product with name " + futureName + " already exists");
responseBean.setId(null);
status = Status.BAD_REQUEST;
status = Status.CONFLICT;
throw new Exception("Sorry but a product with such name already exists!");
}else{
@ -221,7 +221,7 @@ public class GrsfPublisherStockService {
tags,
customFields,
resources,
setPublic); // TODO
setPublic);
if(id != null){

View File

@ -12,7 +12,7 @@ public enum Type {
Assessment_Unit("Assessment Unit"),// for stock
Resource("Resource"), // for stock
Fishing_Activity("Fishing Activity"), // for fishery
Fishery_Activity("Fishery Activity"), // for fishery
Fishing_Description("Fishing Description"); // for fishery
private String subGroupNameOrig;