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);
|
||||
}
|
||||
|
||||
public String create(String json, boolean socialPost) {
|
||||
public String create(String json, boolean socialPost) throws WebApplicationException {
|
||||
try {
|
||||
Map<String,String> queryParams = new HashMap<>();
|
||||
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
|
||||
public String create(String json) {
|
||||
public String create(String json) throws WebApplicationException {
|
||||
return super.create(json);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String read(String name) {
|
||||
public String read(String name) throws WebApplicationException {
|
||||
return super.read(name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String update(String name, String json) {
|
||||
public String update(String name, String json) throws WebApplicationException {
|
||||
return super.update(json, name);
|
||||
}
|
||||
|
||||
@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);
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue