You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: LDK/api-src/org/labkey/api/ldk/table/ContainerScopedTable.java
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,6 @@
28
28
importorg.labkey.api.data.ContainerFilter;
29
29
importorg.labkey.api.data.ContainerManager;
30
30
importorg.labkey.api.data.ContainerType;
31
-
importorg.labkey.api.data.ConvertHelper;
32
31
importorg.labkey.api.data.SimpleFilter;
33
32
importorg.labkey.api.data.TableInfo;
34
33
importorg.labkey.api.data.TableSelector;
@@ -138,7 +137,7 @@ private ColumnInfo getPkCol()
138
137
{
139
138
assert_rootTable.getPkColumnNames().size() == 1;
140
139
141
-
return_rootTable.getPkColumns().get(0);
140
+
return_rootTable.getPkColumns().getFirst();
142
141
}
143
142
144
143
@Override
@@ -324,7 +323,7 @@ public boolean rowExists(Container c, Object key)
324
323
}
325
324
catch (ConversionExceptione)
326
325
{
327
-
_log.error("Unable to convert value for column: " + _pseudoPk + " to class: " +pkCol.getJavaClass() + " for table: " + getPublicSchemaName() + "." +getName(), e);
326
+
_log.error("Unable to convert value for column: {} to class: {} for table: {}.{}", _pseudoPk,pkCol.getJavaClass(), getPublicSchemaName(),getName(), e);
_log.error("Invalid user when trying to run notification " + notification.getName() + " for container: " +c.getPath());
640
+
_log.error("Invalid user when trying to run notification {} for container: {}", notification.getName(),c.getPath());
648
641
return;
649
642
}
650
643
651
644
if (!c.hasPermission(u, AdminPermission.class))
652
645
{
653
-
_log.error("Error running " + notification.getName() + ". User " + u.getEmail() + " does not have admin permissions on container: " +c.getPath());
646
+
_log.error("Error running {}. User {} does not have admin permissions on container: {}", notification.getName(), u.getEmail(),c.getPath());
654
647
return;
655
648
}
656
649
657
650
if (!NotificationServiceImpl.get().isActive(notification, c))
658
651
{
659
-
_log.error("Error running " + notification.getName() + " in container : " + c.getPath() + ". Notification is inactive, but a task was still scheduled");
652
+
_log.error("Error running {} in container : {}. Notification is inactive, but a task was still scheduled", notification.getName(), c.getPath());
_log.error("Table: " + ti.getUserSchema().getSchemaName() + "." + ti.getPublicName() + " supplied an alternate primaryKeyField that doesnt match actual PKs: " +alternatePK);
140
+
_log.error("Table: {}.{} supplied an alternate primaryKeyField that doesnt match actual PKs: {}", ti.getUserSchema().getSchemaName(), ti.getPublicName(),alternatePK);
_log.error("Table: " + ti.getUserSchema().getSchemaName() + "." + ti.getPublicName() + " supplied an alternate primaryKeyField that doesnt match actual PKs: " +alternatePK);
203
+
_log.error("Table: {}.{} supplied an alternate primaryKeyField that doesnt match actual PKs: {}", ti.getUserSchema().getSchemaName(), ti.getPublicName(),alternatePK);
204
204
return;
205
205
}
206
206
@@ -213,13 +213,13 @@ else if (_settings.isSetEditLinkOverrides())
213
213
}
214
214
elseif (keyFields.size() != 1)
215
215
{
216
-
_log.error("Table: " + schemaName + "." + queryName + " has more than 1 PK: " + StringUtils.join(keyFields, ";") + ", cannot apply custom links - please update the TableCustomizer properties");
216
+
_log.error("Table: {}.{} has more than 1 PK: {}, cannot apply custom links - please update the TableCustomizer properties", schemaName, queryName, StringUtils.join(keyFields, ";"));
217
217
return;
218
218
}
219
219
220
220
if (schemaName != null && queryName != null)
221
221
{
222
-
StringkeyField = keyFields.get(0);
222
+
StringkeyField = keyFields.getFirst();
223
223
if (!AbstractTableInfo.LINK_DISABLER_ACTION_URL.equals(ti.getImportDataURL(ti.getUserSchema().getContainer())))
0 commit comments