Class SearchResultItem


  • public class SearchResultItem
    extends Object
    Holds the data of a single search result
    Author:
    joseross
    • Field Detail

      • path

        protected String path
        The path of the file
      • name

        protected String name
        The name of the item
      • type

        protected String type
        The type of the file
      • mimeType

        protected String mimeType
        The mime type of the file
      • previewUrl

        protected String previewUrl
        The preview URL of the file
      • lastModifier

        protected String lastModifier
        The last user that modified the file
      • lastModified

        protected Instant lastModified
        The last date that the file was modified
      • size

        protected long size
        The size of the file, in bytes
      • snippets

        protected List<String> snippets
        Snippets relevant to the search query
    • Constructor Detail

      • SearchResultItem

        public SearchResultItem()
    • Method Detail

      • getPath

        public String getPath()
      • setPath

        public void setPath​(String path)
      • getName

        public String getName()
      • setName

        public void setName​(String name)
      • getType

        public String getType()
      • setType

        public void setType​(String type)
      • getMimeType

        public String getMimeType()
      • setMimeType

        public void setMimeType​(String mimeType)
      • getPreviewUrl

        public String getPreviewUrl()
      • setPreviewUrl

        public void setPreviewUrl​(String previewUrl)
      • getLastModifier

        public String getLastModifier()
      • setLastModifier

        public void setLastModifier​(String lastModifier)
      • getLastModified

        public Instant getLastModified()
      • setLastModified

        public void setLastModified​(Instant lastModified)
      • getSize

        public long getSize()
      • setSize

        public void setSize​(long size)
      • setSnippets

        public void setSnippets​(List<String> snippets)