Interface SearchPermissionFilterContributor
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Contributes new filters for checking permissions on search results. Matches
are based on the fields indexed by the corresponding
SearchPermissionFieldContributor.
Register implementations of this interface as OSGi components using the
service SearchPermissionFilterContributor.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcontribute(com.liferay.portal.kernel.search.filter.BooleanFilter booleanFilter, long companyId, long[] groupIds, long userId, com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker, String className) Contributes filters to check against indexed fields.
-
Method Details
-
contribute
void contribute(com.liferay.portal.kernel.search.filter.BooleanFilter booleanFilter, long companyId, long[] groupIds, long userId, com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker, String className) Contributes filters to check against indexed fields.- Parameters:
booleanFilter- the parent search result permission checking filtercompanyId- the primary key of the company in the current search contextgroupIds- the primary keys of the groups in the current search contextuserId- the primary key of the user in the current search contextpermissionChecker- the permission checker in useclassName- the class name of the entity being permission checked
-