Fixed bug on rr clients
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry-publisher@142213 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
3d35c029ab
commit
d33bbbca7c
|
@ -279,7 +279,13 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher
|
||||||
String res = result.toString();
|
String res = result.toString();
|
||||||
logger.trace("Server returned content : {}", res);
|
logger.trace("Server returned content : {}", res);
|
||||||
|
|
||||||
return (C) ISMapper.unmarshal((Class<ISManageable>) clazz, res);
|
if(Boolean.class.isAssignableFrom(clazz)){
|
||||||
|
return (C) ((Boolean) Boolean.getBoolean(res)) ;
|
||||||
|
}else if(ISManageable.class.isAssignableFrom(clazz)){
|
||||||
|
return (C) ISMapper.unmarshal((Class<ISManageable>) clazz, res);
|
||||||
|
}
|
||||||
|
|
||||||
|
return (C) res;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue