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.

@FunctionalInterface public interface SearchPermissionFilterContributor
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 Type
    Method
    Description
    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.
  • 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 filter
      companyId - the primary key of the company in the current search context
      groupIds - the primary keys of the groups in the current search context
      userId - the primary key of the user in the current search context
      permissionChecker - the permission checker in use
      className - the class name of the entity being permission checked