Class FileQueryBuilder


  • public class FileQueryBuilder
    extends java.lang.Object
    Builds a file query.
    • Method Detail

      • from

        public FileQueryBuilder from​(@NonNull
                                     @NonNull java.lang.String search)
        Create FileQuery from search string.
        Parameters:
        search - search string
        Returns:
        this
      • owners

        public FileQueryBuilder owners​(@NonNull
                                       @NonNull java.lang.Iterable<java.lang.String> owners)
        Add all owners.
        Parameters:
        owners - list of owner to search for
        Returns:
        this
      • owner

        public FileQueryBuilder owner​(@NonNull
                                      @NonNull java.lang.String owner)
        Add an owner.
        Parameters:
        owner - one Owner
        Returns:
        this
      • names

        public FileQueryBuilder names​(@NonNull
                                      @NonNull java.lang.Iterable<java.lang.String> names)
        Add all file names.
        Parameters:
        names - names of files to search for
        Returns:
        this
      • name

        public FileQueryBuilder name​(@NonNull
                                     @NonNull java.lang.String name)
        Add a file name.
        Parameters:
        name - new file name to search for
        Returns:
        this
      • types

        public FileQueryBuilder types​(@NonNull
                                      @NonNull java.lang.Iterable<java.lang.String> types)
        Add all file types.
        Parameters:
        types - file types to search for
        Returns:
        this
      • type

        public FileQueryBuilder type​(@NonNull
                                     @NonNull java.lang.String type)
        Add a file type.
        Parameters:
        type - new type to search for
        Returns:
        this
      • tags

        public FileQueryBuilder tags​(@NonNull
                                     @NonNull java.lang.Iterable<java.lang.String> tags)
        Add all tags.
        Parameters:
        tags - what the file should be tagged with
        Returns:
        this
      • tag

        public FileQueryBuilder tag​(@NonNull
                                    @NonNull java.lang.String tag)
        Add a tag.
        Parameters:
        tag - what the file should be tagged with
        Returns:
        this
      • build

        public FileQuery build()
        Builds the object from it's information.
        Returns:
        file query object