org.kuali.student.common.search.service.impl
Class SearchManagerImpl

java.lang.Object
  extended by org.kuali.student.common.search.service.impl.SearchManagerImpl
All Implemented Interfaces:
SearchManager

public class SearchManagerImpl
extends Object
implements SearchManager

Loads all search info for a service into memory


Field Summary
private  CrossSearchManager crossSearchManager
           
(package private)  Logger logger
           
private  Map<String,String> queryMap
           
private  String searchContextFile
           
private  Map<String,SearchCriteriaTypeInfo> searchCriteriaTypeMap
           
private  Map<String,SearchTypeInfo> searchInfoTypeMap
           
private  Map<String,SearchResultTypeInfo> searchResultTypeInfoMap
           
 
Constructor Summary
SearchManagerImpl(String searchContextFile)
           
 
Method Summary
 String getSearchContextFile()
           
 SearchCriteriaTypeInfo getSearchCriteriaType(String searchCriteriaTypeKey)
           
 List<SearchCriteriaTypeInfo> getSearchCriteriaTypes()
           
 SearchResultTypeInfo getSearchResultType(String searchResultTypeKey)
           
 List<SearchResultTypeInfo> getSearchResultTypes()
           
 SearchTypeInfo getSearchType(String searchTypeKey)
           
 List<SearchTypeInfo> getSearchTypes()
           
 List<SearchTypeInfo> getSearchTypesByCriteria(String searchCriteriaTypeKey)
           
 List<SearchTypeInfo> getSearchTypesByResult(String searchResultTypeKey)
           
private  void init()
           
 SearchResult search(SearchRequest searchRequest, SearchableDao dao)
           
 void setCrossSearchManager(CrossSearchManager crossSearchManager)
           
 void setSearchContext(String searchContextFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

final Logger logger

searchContextFile

private String searchContextFile

searchInfoTypeMap

private Map<String,SearchTypeInfo> searchInfoTypeMap

searchCriteriaTypeMap

private Map<String,SearchCriteriaTypeInfo> searchCriteriaTypeMap

searchResultTypeInfoMap

private Map<String,SearchResultTypeInfo> searchResultTypeInfoMap

queryMap

private Map<String,String> queryMap

crossSearchManager

private CrossSearchManager crossSearchManager
Constructor Detail

SearchManagerImpl

public SearchManagerImpl(String searchContextFile)
Method Detail

init

private void init()

getSearchCriteriaType

public SearchCriteriaTypeInfo getSearchCriteriaType(String searchCriteriaTypeKey)
                                             throws DoesNotExistException,
                                                    InvalidParameterException,
                                                    MissingParameterException,
                                                    OperationFailedException
Specified by:
getSearchCriteriaType in interface SearchManager
Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException

getSearchCriteriaTypes

public List<SearchCriteriaTypeInfo> getSearchCriteriaTypes()
                                                    throws OperationFailedException
Specified by:
getSearchCriteriaTypes in interface SearchManager
Throws:
OperationFailedException

getSearchResultType

public SearchResultTypeInfo getSearchResultType(String searchResultTypeKey)
                                         throws DoesNotExistException,
                                                InvalidParameterException,
                                                MissingParameterException,
                                                OperationFailedException
Specified by:
getSearchResultType in interface SearchManager
Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException

getSearchResultTypes

public List<SearchResultTypeInfo> getSearchResultTypes()
                                                throws OperationFailedException
Specified by:
getSearchResultTypes in interface SearchManager
Throws:
OperationFailedException

getSearchType

public SearchTypeInfo getSearchType(String searchTypeKey)
                             throws DoesNotExistException,
                                    InvalidParameterException,
                                    MissingParameterException,
                                    OperationFailedException
Specified by:
getSearchType in interface SearchManager
Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException

getSearchTypes

public List<SearchTypeInfo> getSearchTypes()
                                    throws OperationFailedException
Specified by:
getSearchTypes in interface SearchManager
Throws:
OperationFailedException

getSearchTypesByCriteria

public List<SearchTypeInfo> getSearchTypesByCriteria(String searchCriteriaTypeKey)
                                              throws DoesNotExistException,
                                                     InvalidParameterException,
                                                     MissingParameterException,
                                                     OperationFailedException
Specified by:
getSearchTypesByCriteria in interface SearchManager
Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException

getSearchTypesByResult

public List<SearchTypeInfo> getSearchTypesByResult(String searchResultTypeKey)
                                            throws DoesNotExistException,
                                                   InvalidParameterException,
                                                   MissingParameterException,
                                                   OperationFailedException
Specified by:
getSearchTypesByResult in interface SearchManager
Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException

getSearchContextFile

public String getSearchContextFile()

setSearchContext

public void setSearchContext(String searchContextFile)

search

public SearchResult search(SearchRequest searchRequest,
                           SearchableDao dao)
                    throws MissingParameterException
Specified by:
search in interface SearchManager
Throws:
MissingParameterException

setCrossSearchManager

public void setCrossSearchManager(CrossSearchManager crossSearchManager)


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.