public class SearchCriteriaManager
extends java.lang.Object
Constructor and Description |
---|
SearchCriteriaManager() |
Modifier and Type | Method and Description |
---|---|
static SearchCriteria |
open(java.lang.String searchCriteriaFileName,
Configuration configuration)
Open the file from the file system, and load the search criteria
stored in it.
|
static boolean |
save(SearchCriteria searchCriteria,
java.lang.String searchCriteriaFile)
Save the search criteria to a file in the XML format.
|
public static SearchCriteria open(java.lang.String searchCriteriaFileName, Configuration configuration) throws SearchCriteriaParseException, java.io.IOException
searchCriteriaFileName
- The location and file name of the search
criteria to be loaded.configuration
- The configuration of the opening search criteria.SearchCriteriaParseException
- Thrown if there is any error
during parsing the search criteria file.java.io.IOException
- Thrown if IO errors happened during reading of
the search criteria file.public static boolean save(SearchCriteria searchCriteria, java.lang.String searchCriteriaFile) throws IllegalActionException, java.io.IOException
searchCriteria
- The DTO containing the search criteria to be
saved.searchCriteriaFile
- The file path and name where the criteria
should be saved.IllegalActionException
- Thrown if the passed attributes'
values cannot be obtained.java.io.IOException
- Thrown if error happens during writing the
search criteria information to the file.