08-05-2007 07:17 AM
// Execute the query to get all devies
QueryResult queryResult = repositoryService.query( ClientConstants.STORE, devicesQuery, true);
// Display the results
ResultSet resultSet = queryResult.getResultSet();
ResultSetRow[] rows = resultSet.getRows();
if (rows == null)
{
logger.error( "No Devices found!!! Can it be ??");
}
else
{
for ( int i = 0; i < rows.length; i++)
{
h = General.getStringQueryResults( rows);
String deviceId = h.get( ClientConstants.DEVICE_ID);
if ( deviceId == null || deviceId.equals( ClientConstants.STR_EMPTY))
continue;
String[] devicesParameters = new String[2];
//first place is for default devie name
devicesParameters[0] = new String( h.get( ClientConstants.DEFAULT_DEVICE));
//second place fo user agent
devicesParameters[1] = new String( h.get( ClientConstants.USER_AGENT));
tmpDevices.put( deviceId, devicesParameters);
logger.debug( "Device Loaded. Device Id=" + deviceId + ", default device=" + devicesParameters[0] + ", user agent=" + devicesParameters[1]);
}//for
}//if-else
08-05-2007 12:17 PM
08-06-2007 07:00 AM
08-07-2007 02:31 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.