| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DocumentSearchService
Service for data access for document searches.
| Method Summary | |
|---|---|
|  DocumentSearchCriteria | clearCriteria(DocumentType documentType,
                           DocumentSearchCriteria criteria) | 
|  void | clearNamedSearches(String principalId)Clears all saved searches for the specified user (named and automatic) | 
|  List<KeyValue> | getMostRecentSearches(String principalId)Returns automatically saved recent searches for the specified user | 
|  DocumentSearchCriteria | getNamedSearchCriteria(String principalId,
                                             String savedSearchName)Returns an explicitly named saved search criteria | 
|  List<KeyValue> | getNamedSearches(String principalId)Returns named saved searches for the specified user | 
|  DocumentSearchCriteria | getSavedSearchCriteria(String principalId,
                                             String key)Returns a saved search criteria, either explicitly named by the user, or saved automatically as a recent search | 
|  DocumentSearchGenerator | getStandardDocumentSearchGenerator() | 
|  DocumentSearchResults | lookupDocuments(String principalId,
                               DocumentSearchCriteria criteria)This method performs a standard document search for the given criteria. | 
|  void | validateDocumentSearchCriteria(DocumentSearchGenerator docSearchGenerator,
                                                             DocumentSearchCriteria.Builder criteria) | 
| Method Detail | 
|---|
DocumentSearchResults lookupDocuments(String principalId,
                                      DocumentSearchCriteria criteria)
principalId - the id of the principal who is executing the search, this may be null to indicate the
 search could be executed by an arbitrary usercriteria - criteria to use to search documents
DocumentSearchCriteria getSavedSearchCriteria(String principalId,
                                              String key)
principalId - the user principal idkey - the user option key under which the criteria is saved
DocumentSearchCriteria getNamedSearchCriteria(String principalId,
                                              String savedSearchName)
principalId - the user principal idsavedSearchName - the user-provided saved search name
void clearNamedSearches(String principalId)
principalId - user principal idList<KeyValue> getNamedSearches(String principalId)
principalId - the user principal id
List<KeyValue> getMostRecentSearches(String principalId)
principalId - the user principal id
DocumentSearchCriteria clearCriteria(DocumentType documentType,
                                     DocumentSearchCriteria criteria)
DocumentSearchGenerator getStandardDocumentSearchGenerator()
void validateDocumentSearchCriteria(DocumentSearchGenerator docSearchGenerator,
                                    DocumentSearchCriteria.Builder criteria)
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||