|
16 | 16 |
|
17 | 17 | package org.labkey.api.query; |
18 | 18 |
|
| 19 | +import jakarta.servlet.http.HttpSession; |
19 | 20 | import org.apache.commons.collections4.SetValuedMap; |
20 | 21 | import org.jetbrains.annotations.NotNull; |
21 | 22 | import org.jetbrains.annotations.Nullable; |
22 | 23 | import org.json.JSONObject; |
23 | 24 | import org.labkey.api.audit.AuditHandler; |
24 | 25 | import org.labkey.api.audit.DetailedAuditTypeEvent; |
| 26 | +import org.labkey.api.data.ColumnHeaderType; |
| 27 | +import org.labkey.api.data.ColumnInfo; |
| 28 | +import org.labkey.api.data.CompareType; |
| 29 | +import org.labkey.api.data.Container; |
| 30 | +import org.labkey.api.data.ContainerFilter; |
| 31 | +import org.labkey.api.data.DbSchema; |
| 32 | +import org.labkey.api.data.DisplayColumn; |
| 33 | +import org.labkey.api.data.Filter; |
| 34 | +import org.labkey.api.data.JdbcType; |
| 35 | +import org.labkey.api.data.MethodInfo; |
| 36 | +import org.labkey.api.data.MutableColumnInfo; |
| 37 | +import org.labkey.api.data.ParameterDescription; |
| 38 | +import org.labkey.api.data.ParameterDescriptionImpl; |
| 39 | +import org.labkey.api.data.QueryLogging; |
| 40 | +import org.labkey.api.data.Results; |
| 41 | +import org.labkey.api.data.SQLFragment; |
| 42 | +import org.labkey.api.data.Sort; |
| 43 | +import org.labkey.api.data.SqlSelector; |
| 44 | +import org.labkey.api.data.TableInfo; |
| 45 | +import org.labkey.api.data.TableSelector; |
| 46 | +import org.labkey.api.data.dialect.SqlDialect; |
25 | 47 | import org.labkey.api.gwt.client.model.GWTPropertyDescriptor; |
| 48 | +import org.labkey.api.module.Module; |
26 | 49 | import org.labkey.api.pipeline.PipelineJob; |
27 | 50 | import org.labkey.api.query.column.ColumnInfoTransformer; |
28 | | -import org.labkey.api.data.*; |
29 | | -import org.labkey.api.data.dialect.SqlDialect; |
30 | | -import org.labkey.api.module.Module; |
31 | 51 | import org.labkey.api.query.column.ConceptURIColumnInfoTransformer; |
32 | 52 | import org.labkey.api.query.snapshot.QuerySnapshotDefinition; |
33 | 53 | import org.labkey.api.security.User; |
|
41 | 61 | import org.labkey.data.xml.TableType; |
42 | 62 | import org.springframework.web.servlet.mvc.Controller; |
43 | 63 |
|
44 | | -import jakarta.servlet.http.HttpSession; |
45 | 64 | import java.io.IOException; |
46 | 65 | import java.sql.ResultSet; |
47 | 66 | import java.sql.SQLException; |
@@ -653,6 +672,13 @@ default MutableColumnInfo applyColumnTransformer(MutableColumnInfo col) |
653 | 672 | @Nullable |
654 | 673 | ContainerFilter getContainerFilterForLookups(Container container, User user); |
655 | 674 |
|
| 675 | + /** |
| 676 | + * Provides the configured ContainerFilter to utilize when requesting data that is being read |
| 677 | + * within a folder context. Equivalent to the client side function in @labkey/components |
| 678 | + */ |
| 679 | + @Nullable |
| 680 | + ContainerFilter getContainerFilterForFolder(Container container, User user); |
| 681 | + |
656 | 682 |
|
657 | 683 | interface SelectBuilder |
658 | 684 | { |
|
0 commit comments