Added patch method for item
This commit is contained in:
parent
cee12f1be6
commit
85a5436b59
|
@ -54,7 +54,7 @@ public class Item extends GCatClient implements org.gcube.gcat.api.interfaces.It
|
||||||
return super.list(queryParams);
|
return super.list(queryParams);
|
||||||
}
|
}
|
||||||
|
|
||||||
public String create(String json, boolean socialPost) {
|
public String create(String json, boolean socialPost) throws WebApplicationException {
|
||||||
try {
|
try {
|
||||||
Map<String,String> queryParams = new HashMap<>();
|
Map<String,String> queryParams = new HashMap<>();
|
||||||
queryParams.put(GCatConstants.SOCIAL_POST_PARAMETER, String.valueOf(socialPost));
|
queryParams.put(GCatConstants.SOCIAL_POST_PARAMETER, String.valueOf(socialPost));
|
||||||
|
@ -67,22 +67,27 @@ public class Item extends GCatClient implements org.gcube.gcat.api.interfaces.It
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String create(String json) {
|
public String create(String json) throws WebApplicationException {
|
||||||
return super.create(json);
|
return super.create(json);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String read(String name) {
|
public String read(String name) throws WebApplicationException {
|
||||||
return super.read(name);
|
return super.read(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String update(String name, String json) {
|
public String update(String name, String json) throws WebApplicationException {
|
||||||
return super.update(json, name);
|
return super.update(json, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Void delete(String name) {
|
public String patch(String name, String json) throws WebApplicationException {
|
||||||
|
return super.patch(json, name);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Void delete(String name) throws WebApplicationException {
|
||||||
super.delete(false, name);
|
super.delete(false, name);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue