Updated algorithms to DataMiner service

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/databases-manager-portlet@133902 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2016-11-04 12:11:35 +00:00
parent f2757b816d
commit de3eca7c72
2 changed files with 19 additions and 14 deletions

View File

@ -218,4 +218,19 @@ public class FileModel extends BaseModelData implements IsSerializable {
}
return super.equals(obj);
}
@Override
public String toString() {
return "FileModel [isExpanded=" + isExpanded + ", isLoaded=" + isLoaded
+ ", isTable=" + isTable + ", isSchema=" + isSchema
+ ", isDatabase=" + isDatabase + ", isCollapsed=" + isCollapsed
+ ", DBInfo=" + DBInfo + ", isDBInfoDisplayed="
+ isDBInfoDisplayed + ", TableDetails=" + TableDetails
+ ", isTableDetailsDisplayed=" + isTableDetailsDisplayed
+ ", DatabaseType=" + DatabaseType + ", ResourceName="
+ ResourceName + ", DatabaseName=" + DatabaseName + "]";
}
}

View File

@ -1742,7 +1742,8 @@ public class GWTdbManagerServiceImpl extends RemoteServiceServlet implements
.parseInt(objectResource.getValue()));
} else {
ObjectResource objectResource = (ObjectResource) value;
mapKeys.put(String.valueOf(i), key);
logger.debug("ObjectResource: "+value);
mapKeys.put(String.valueOf(i), value.getName());
mapValues.put(String.valueOf(i),
objectResource.getValue());
i++;
@ -2826,19 +2827,8 @@ public class GWTdbManagerServiceImpl extends RemoteServiceServlet implements
// + key);
}
}
// TODO **TO REMOVE
// if (outputParameters!=null){
// // logger.info("dbmanager-> ***print output ");
// Set<String> keys = outputParameters.keySet();
// Object[] array = keys.toArray();
//
// for (int i=0;i<outputParameters.size();i++){
// logger.trace("dbmanager-> *** " + outputParameters
// .get(array[i].toString())
// .getName());
// }
//
// }
logger.debug("dbmanager outputParameters-> "+outputParameters);
return outputParameters;
} catch (Exception e) {
// e.printStackTrace();