Package mops.businesslogic.file.query
Class FileQueryBuilder
- java.lang.Object
-
- mops.businesslogic.file.query.FileQueryBuilder
-
public class FileQueryBuilder extends java.lang.Object
Builds a file query.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileQuery
build()
Builds the object from it's information.FileQueryBuilder
from(@NonNull java.lang.String search)
Create FileQuery from search string.FileQueryBuilder
name(@NonNull java.lang.String name)
Add a file name.FileQueryBuilder
names(@NonNull java.lang.Iterable<java.lang.String> names)
Add all file names.FileQueryBuilder
owner(@NonNull java.lang.String owner)
Add an owner.FileQueryBuilder
owners(@NonNull java.lang.Iterable<java.lang.String> owners)
Add all owners.FileQueryBuilder
tag(@NonNull java.lang.String tag)
Add a tag.FileQueryBuilder
tags(@NonNull java.lang.Iterable<java.lang.String> tags)
Add all tags.FileQueryBuilder
type(@NonNull java.lang.String type)
Add a file type.FileQueryBuilder
types(@NonNull java.lang.Iterable<java.lang.String> types)
Add all file types.
-
-
-
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
-
-