|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SearchEngine
| Field Summary | |
|---|---|
static int |
DEFAULT_MAX_ROWS
The default size of a search query result. |
static int |
DEFAULT_QUERY_TIMEOUT
The default query timeout in seconds. |
static java.lang.String |
PROP_USERWILDCARD
The user wildcard selects the properties predefined by the user through the ResultPreferencesEngine. |
static java.lang.String |
PROP_WILDCARD
The wildcard character selects all properties of the result content type. |
| Method Summary | |
|---|---|
long |
getLastContentChange(boolean live)
Returns the last time that any content that affects queries was changed. |
QueryRootNode |
load(ResultLocation location,
java.lang.String name)
Load the query of the given name, for the current user. |
QueryRootNode |
loadDefault(ResultLocation location)
Load the default query for the given type/location. |
java.util.Collection<java.lang.String> |
loadNames(ResultLocation location)
Returns the names of the stored queries for the calling user/location. |
QueryRootNode |
loadSystemDefault(ResultLocation location)
Load the system-wide default query for the given type/location. |
void |
remove(ResultLocation location,
java.lang.String name)
Remove the query of the given name and type from the database. |
void |
save(QueryRootNode query)
Store the given query for the current user. |
void |
saveDefault(QueryRootNode query)
Sets the user-defined default query for the query's type and location. |
void |
saveSystemDefault(QueryRootNode query)
Sets the system-wide default query for the query's type and location. |
FxResultSet |
search(java.lang.String query)
Executes a query. |
FxResultSet |
search(java.lang.String query,
int startIndex,
int fetchRows,
FxSQLSearchParams params)
Executes a query. |
FxResultSet |
search(java.lang.String query,
int startIndex,
int fetchRows,
FxSQLSearchParams params,
ResultLocation location,
ResultViewType viewType)
Executes a query. |
| Field Detail |
|---|
static final java.lang.String PROP_WILDCARD
static final java.lang.String PROP_USERWILDCARD
ResultPreferencesEngine.
static final int DEFAULT_QUERY_TIMEOUT
static final int DEFAULT_MAX_ROWS
| Method Detail |
|---|
FxResultSet search(java.lang.String query)
throws FxApplicationException
query - the query to execute
FxApplicationException - if the search failed
FxResultSet search(java.lang.String query,
int startIndex,
int fetchRows,
FxSQLSearchParams params)
throws FxApplicationException
query - the query to executestartIndex - return data starting at the given row, 0 basedfetchRows - the maximum rows to fetch, -1 to fetch all rowsparams - all additional search options
FxApplicationException - if the search failed
FxResultSet search(java.lang.String query,
int startIndex,
int fetchRows,
FxSQLSearchParams params,
ResultLocation location,
ResultViewType viewType)
throws FxApplicationException
query - the query to executestartIndex - return data starting at the given row, 0 basedfetchRows - the maximum rows to fetch, -1 to fetch all rows.params - all additional search optionslocation - the result locationviewType - the result view type
FxApplicationException - if the search failedlong getLastContentChange(boolean live)
live - if true only the last changes of live contents are checked
void save(QueryRootNode query)
throws FxApplicationException
query - the query to be stored
FxApplicationException - TODO
void saveDefault(QueryRootNode query)
throws FxApplicationException
query - the query to be stored
FxApplicationException - if the default query could not be set.QueryRootNode.getType(),
QueryRootNode.getLocation()
void saveSystemDefault(QueryRootNode query)
throws FxApplicationException
query - the default query to be set
FxApplicationException - if the default query could not be set, or
the caller lacks supervisor privilegesQueryRootNode.getType(),
QueryRootNode.getLocation()
QueryRootNode load(ResultLocation location,
java.lang.String name)
throws FxApplicationException
location - the query locationname - query to be loaded @return the loaded query tree
FxApplicationException - TODO
FxNotFoundException - if the query does not exist
QueryRootNode loadDefault(ResultLocation location)
throws FxApplicationException
location - the query location, usually matched to the location of its result
FxApplicationException - if the default query could not be loaded
QueryRootNode loadSystemDefault(ResultLocation location)
throws FxApplicationException
location - the query location, usually matched to the location of its result
FxApplicationException - if the default query could not be loaded
java.util.Collection<java.lang.String> loadNames(ResultLocation location)
throws FxApplicationException
load(com.flexive.shared.search.ResultLocation, String).
location - the query location, usually matched to the location of its result
FxApplicationException - if the query names could not be retrieved
void remove(ResultLocation location,
java.lang.String name)
throws FxApplicationException
location - the query locationname - the query to be removed @throws FxApplicationException TODO
FxApplicationException - if the query could not be deleted
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||