mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
- Web service query result values are now being converted correctly
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2265 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -27,6 +27,7 @@ import org.alfresco.repo.webservice.types.Store;
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
import org.alfresco.service.cmr.repository.NodeService;
|
||||
import org.alfresco.service.cmr.repository.Path;
|
||||
import org.alfresco.service.cmr.repository.datatype.DefaultTypeConverter;
|
||||
import org.alfresco.service.cmr.search.ResultSet;
|
||||
import org.alfresco.service.cmr.search.ResultSetRow;
|
||||
import org.alfresco.service.cmr.search.SearchService;
|
||||
@@ -114,10 +115,13 @@ public class ResultSetQuerySession extends AbstractQuerySession
|
||||
for (Path path : values.keySet())
|
||||
{
|
||||
String value = null;
|
||||
Serializable valueObj = values.get(path);
|
||||
if (valueObj != null)
|
||||
try
|
||||
{
|
||||
value = valueObj.toString();
|
||||
value = DefaultTypeConverter.INSTANCE.convert(String.class, values.get(path));
|
||||
}
|
||||
catch (Throwable exception)
|
||||
{
|
||||
value = values.get(path).toString();
|
||||
}
|
||||
|
||||
// Get the attribute QName from the result path
|
||||
|
Reference in New Issue
Block a user