Class FileQuery


  • public final class FileQuery
    extends java.lang.Object
    Wrapper for file search requests.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static FileQueryBuilder builder()
      Returns a builder for file queries.
      boolean checkMatch​(FileInfo file)
      Checks if file query matches with file meta data.
      boolean equals​(java.lang.Object o)  
      java.util.Set<java.lang.String> getNames()
      List of file names to search for.
      java.util.Set<java.lang.String> getOwners()
      List of user names of file owners to search for.
      java.util.Set<java.lang.String> getTags()
      List of file tags to search for.
      java.util.Set<java.lang.String> getTypes()
      List of file types to search for.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • builder

        public static FileQueryBuilder builder()
        Returns a builder for file queries.
        Returns:
        a file query builder
      • checkMatch

        public boolean checkMatch​(FileInfo file)
        Checks if file query matches with file meta data.
        Parameters:
        file - a file information object
        Returns:
        if the file meta data matches the query request
      • getNames

        public java.util.Set<java.lang.String> getNames()
        List of file names to search for.
      • getOwners

        public java.util.Set<java.lang.String> getOwners()
        List of user names of file owners to search for.
      • getTypes

        public java.util.Set<java.lang.String> getTypes()
        List of file types to search for.
      • getTags

        public java.util.Set<java.lang.String> getTags()
        List of file tags to search for.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object