Interface SearchPermissionFieldContributor


public interface SearchPermissionFieldContributor
Indexes new permission checking fields in a search document. These fields can be matched when returning search results via a corresponding SearchPermissionFilterContributor.

Register implementations of this interface as OSGi components using the service SearchPermissionFieldContributor.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    contribute(com.liferay.portal.kernel.search.Document document, String className, long classPK)
    Contributes permission checking fields to the search document.
  • Method Details

    • contribute

      void contribute(com.liferay.portal.kernel.search.Document document, String className, long classPK)
      Contributes permission checking fields to the search document.
      Parameters:
      document - the document being indexed
      className - the class name of the entity being indexed
      classPK - the primary key of the entity being indexed