|
|
|
@ -212,7 +212,7 @@ public class ResourceRegistryContextClientImpl implements ResourceRegistryContex
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String internalUpdate(Context context) throws ResourceRegistryException {
|
|
|
|
|
public String internalUpdate(Context context) throws ContextNotFoundException, ResourceRegistryException {
|
|
|
|
|
try {
|
|
|
|
|
String contextString = ElementMapper.marshal(context);
|
|
|
|
|
logger.trace("Going to update {}", contextString);
|
|
|
|
@ -244,7 +244,7 @@ public class ResourceRegistryContextClientImpl implements ResourceRegistryContex
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public Context update(Context context) throws ResourceRegistryException {
|
|
|
|
|
public Context update(Context context) throws ContextNotFoundException, ResourceRegistryException {
|
|
|
|
|
try {
|
|
|
|
|
String res = internalUpdate(context);
|
|
|
|
|
return ElementMapper.unmarshal(Context.class, res);
|
|
|
|
@ -258,7 +258,7 @@ public class ResourceRegistryContextClientImpl implements ResourceRegistryContex
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public String update(String context) throws ResourceRegistryException {
|
|
|
|
|
public String update(String context) throws ContextNotFoundException, ResourceRegistryException {
|
|
|
|
|
try {
|
|
|
|
|
Context c = ElementMapper.unmarshal(Context.class, context);
|
|
|
|
|
return internalUpdate(c);
|
|
|
|
|