Class ContentPermissionsExtractor

  • All Implemented Interfaces:
    Extractor2

    public class ContentPermissionsExtractor
    extends Object
    implements Extractor2
    Extracts the content permissions set on a searchable object.

    If the searchable object is an attachment or comment extract the permissions from the containing content object. At the moment, content permissions are only set on Pages. Hence, this class only handles permissions for Page objects.

    Since:
    7.20
    • Constructor Detail

      • ContentPermissionsExtractor

        public ContentPermissionsExtractor()
    • Method Detail

      • extractText

        public StringBuilder extractText​(Object searchable)
        Always returns an empty buffer.
        Specified by:
        extractText in interface Extractor2
        Parameters:
        searchable - a searchable object
        Returns:
        an empty buffer.
      • extractFields

        public Collection<FieldDescriptor> extractFields​(Object searchable)
        Extract fields from the searchable object.
        Specified by:
        extractFields in interface Extractor2
        Parameters:
        searchable - a searchable object
        Returns:
        collection of fields extracted from the searchable object