|
org.openidex.util/3 3.11 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openidex.search.SearchInfoFactory
public final class SearchInfoFactory
Factory for creating SearchInfo objects.
SearchInfo| Field Summary | |
|---|---|
static FileObjectFilter |
SHARABILITY_FILTER
filter that skips files and folders which are not sharable according to the SharabilityQuery |
static FileObjectFilter |
VISIBILITY_FILTER
filter that skips files and folders which are not visible according to the VisibilityQuery |
| Method Summary | |
|---|---|
static SearchInfo |
createSearchInfo(FileObject[] folders,
boolean recursive,
FileObjectFilter[] filters)
Creates a SearchInfo object for given folders. |
static SearchInfo |
createSearchInfo(FileObject folder,
boolean recursive,
FileObjectFilter[] filters)
Creates a SearchInfo object for a given folder. |
static SearchInfo |
createSearchInfoBySubnodes(Node node)
Creates a SearchInfo object combining
SearchInfo objects returned by the node's subnodes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final FileObjectFilter VISIBILITY_FILTER
VisibilityQuery
VisibilityQuerypublic static final FileObjectFilter SHARABILITY_FILTER
SharabilityQuery
SharabilityQuery| Method Detail |
|---|
public static SearchInfo createSearchInfo(FileObject folder, boolean recursive, FileObjectFilter[] filters)
SearchInfo object for a given folder.
The returned SearchInfo object's method
SearchInfo.canSearch() always returns true
and iterates through DataObjects found in the given
folder. Files and folders that do not pass any of the given filters
are skipped (not searched). If multiple filters are passed,
the filters are applied on each file/folder in the same order
as in the array passed to this method.
folder - folder which should be searchedrecursive - whether the folder's subfolders should be taken
into accountfilters - filters to be used when searching;
or null if no filters should be used
SearchInfo object which iterates through
DataObjects found in the specified folder
and (optionally) its subfoldersFileObjectFilterpublic static SearchInfo createSearchInfo(FileObject[] folders, boolean recursive, FileObjectFilter[] filters)
SearchInfo object for given folders.
The returned SearchInfo object's method
SearchInfo.canSearch() always returns true
and iterates through DataObjects found in the given
folders. Files and folders that do not pass any of the given filters
are skipped (not searched). If multiple filters are passed,
the filters are applied on each file/folder in the same order
as in the array passed to this method.
folders - folders which should be searchedrecursive - whether the folders' subfolders should be taken
into accountfilters - filters to be used when searching;
or null if no filters should be used
SearchInfo object which iterates through
DataObjects found in the specified folders
and (optionally) their subfoldersFileObjectFilterpublic static SearchInfo createSearchInfoBySubnodes(Node node)
SearchInfo object combining
SearchInfo objects returned by the node's subnodes.
Method SearchInfo.canSearch() of the resulting
SearchInfo objects returns true if and only if
at least one of the nodes is searchable
(its method canSearch() returns true).
The iterator iterates through all DataObjects returned
by the subnode's SearchInfo iterators.
node - node to create SearchInfo for
SearchInfo object representing combination
of SearchInfo objects of the node's subnodes
|
org.openidex.util/3 3.11 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||