Package mops.businesslogic.file.query
Class FileQuery
- java.lang.Object
 - 
- mops.businesslogic.file.query.FileQuery
 
 
- 
public final class FileQuery extends java.lang.ObjectWrapper for file search requests. 
- 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FileQueryBuilderbuilder()Returns a builder for file queries.booleancheckMatch(FileInfo file)Checks if file query matches with file meta data.booleanequals(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.inthashCode()java.lang.StringtoString() 
 - 
 
- 
- 
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:
 equalsin classjava.lang.Object
 
- 
hashCode
public int hashCode()
- Overrides:
 hashCodein classjava.lang.Object
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
 - 
 
 -