IDEMPIERE-3394 Allow defining web service type in System and extend in Tenant

This commit is contained in:
Carlos Ruiz 2017-06-14 00:57:10 +02:00
parent 8615b92609
commit ba7348f6a4
1 changed files with 10 additions and 6 deletions

View File

@ -126,12 +126,14 @@ public class MWebServiceType extends X_WS_WebServiceType
+ " AND c.IsActive='Y' "
+ " AND f.IsActive='Y' "
+ "ORDER BY c.ColumnName";
List<Object> list = DB.getSQLValueObjectsEx(get_TrxName(), sql, getWS_WebServiceType_ID());
List<List<Object>> list = DB.getSQLArrayObjectsEx(get_TrxName(), sql, getWS_WebServiceType_ID());
if (list == null) {
m_inputcolumnnames = new String[0];
} else {
m_inputcolumnnames = new String[list.size ()];
list.toArray (m_inputcolumnnames);
m_inputcolumnnames = new String[list.size()];
for (int idx = 0; idx < list.size(); idx++) {
m_inputcolumnnames[idx] = (String) list.get(idx).get(0);
}
}
return m_inputcolumnnames;
} // getInputColumnNames
@ -173,12 +175,14 @@ public class MWebServiceType extends X_WS_WebServiceType
+ " AND c.IsActive='Y' "
+ " AND f.IsActive='Y' "
+ "ORDER BY c.ColumnName";
List<Object> list = DB.getSQLValueObjectsEx(get_TrxName(), sql, getWS_WebServiceType_ID());
List<List<Object>> list = DB.getSQLArrayObjectsEx(get_TrxName(), sql, getWS_WebServiceType_ID());
if (list == null) {
m_outputcolumnnames = new String[0];
} else {
m_outputcolumnnames = new String[list.size ()];
list.toArray (m_outputcolumnnames);
m_outputcolumnnames = new String[list.size()];
for (int idx = 0; idx < list.size(); idx++) {
m_outputcolumnnames[idx] = (String) list.get(idx).get(0);
}
}
return m_outputcolumnnames;
} // getOutputColumnNames