Interface IRepositorySearch
- All Known Subinterfaces:
IRepository
public interface IRepositorySearch
The interface containing the search related methods of the repository .
-
Method Summary
Modifier and Type Method Description List<String>find(String path, String pattern)Find files by a given pattern.List<IEntity>searchName(String parameter, boolean caseInsensitive)Search the given parameter in the names of the files and folders ( means *parameter).List<IEntity>searchName(String root, String parameter, boolean caseInsensitive)Search the given parameter in the names of the files and folders ( means *parameter) under specified root folder (means *root).List<IEntity>searchPath(String parameter, boolean caseInsensitive)Search the given given parameter in the names of the files and folders (means *parameter*).voidsearchRefresh()Re-index the content.List<IEntity>searchText(String term)Search the given given parameter in the names of the files and folders as well as in the content of the text files.
-
Method Details
-
searchName
List<IEntity> searchName(String parameter, boolean caseInsensitive) throws RepositorySearchExceptionSearch the given parameter in the names of the files and folders ( means *parameter).- Parameters:
parameter- the search textcaseInsensitive- whether to be case insensitive- Returns:
- a list of
IEntityinstances - Throws:
RepositorySearchException- in case the search fails
-
searchName
List<IEntity> searchName(String root, String parameter, boolean caseInsensitive) throws RepositorySearchExceptionSearch the given parameter in the names of the files and folders ( means *parameter) under specified root folder (means *root).- Parameters:
root- the root location to start the search fromparameter- the search textcaseInsensitive- whether to be case insensitive- Returns:
- a list of
IEntityinstances - Throws:
RepositorySearchException- in case the search fails
-
searchPath
List<IEntity> searchPath(String parameter, boolean caseInsensitive) throws RepositorySearchExceptionSearch the given given parameter in the names of the files and folders (means *parameter*).- Parameters:
parameter- the search textcaseInsensitive- whether to be case insensitive- Returns:
- a list of
IEntityinstances - Throws:
RepositorySearchException- in case the search fails
-
searchText
Search the given given parameter in the names of the files and folders as well as in the content of the text files.- Parameters:
term- the search text- Returns:
- a list of
IEntityinstances - Throws:
RepositorySearchException- in case the search fails
-
searchRefresh
Re-index the content.- Throws:
RepositorySearchException- the repository search exception
-
find
Find files by a given pattern.- Parameters:
path- the starting pathpattern- the search pattern- Returns:
- a list of
IEntityinstances - Throws:
RepositorySearchException- in case the search fails
-