public class BaseSearchManager extends Object implements SearchManager, Observer
| Modifier and Type | Class and Description |
|---|---|
class |
BaseSearchManager.BasicObjectIterator |
class |
BaseSearchManager.BasicSearch |
class |
BaseSearchManager.BasicSearchDatabaseHierarchy |
class |
BaseSearchManager.BasicSearchProperties |
class |
BaseSearchManager.BasicType |
| Modifier and Type | Field and Description |
|---|---|
protected static BaseSearchManager.BasicType |
categoryAssetType |
protected static BaseSearchManager.BasicType |
databaseAssetType |
protected String |
databaseHierarchyResourceRef |
protected Map<String,String> |
hierarchyMap |
protected ConfigurationService |
m_configService |
protected SessionManager |
m_sessionManager |
protected static int |
MAX_DUPLICATES
Maximum number of consecutive duplicate result records we'll accept
before disabling the duplicate record check for the current search.
|
protected static BaseSearchManager.BasicType |
repositoryType |
static String |
SAKAI_HOST |
static String |
SAKAI_KEY |
static String |
SAKAI_SESSION |
protected static BaseSearchManager.BasicType |
searchType |
protected ServerConfigurationService |
serverConfigurationService
Dependency: ServerConfigurationService.
|
static String |
SERVLET_NAME |
protected SortedSet<String> |
updatableResources |
static String |
WINDOW_PREFIX |
ASSET_NOT_FETCHED, DEFAULT_PAGE_SIZE, DEFAULT_SORT_BY, DEFAULT_START_RECORD, METASEARCH_ERROR, MIN_START_RECORD, SESSION_TIMED_OUT| Constructor and Description |
|---|
BaseSearchManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
ActiveSearch |
doNextPage(ActiveSearch search) |
ActiveSearch |
doPrevPage(ActiveSearch search) |
ActiveSearch |
doSearch(ActiveSearch search) |
protected SecurityAdvisor |
enableSecurityAdvisor()
Establish a security advisor to allow the "embedded" azg work to occur
with no need for additional security permissions.
|
protected org.osid.shared.Type |
getCategoryType(org.osid.repository.Repository repository) |
String |
getExternalSearchWindowName(String resourceId) |
String |
getGoogleScholarUrl(String resourceId) |
MemoryService |
getMemoryService() |
protected org.osid.shared.Type |
getPropertyType(org.osid.repository.Repository repository) |
String |
getResourceContent(ContentResource resource)
Fetch the content from a Resource
|
String |
getResourceContent(String resourceReference)
Fetch content from a resource reference (a named resource)
|
String |
getSaveciteUrl(String resourceId,
String saveciteClientId)
Supply the url for the savecite servlet to add a citation to a particular citation list.
|
SearchDatabaseHierarchy |
getSearchHierarchy() |
protected String |
getSearchStatusMessage(org.osid.repository.Repository repository) |
protected org.osid.shared.Type |
getSearchType(org.osid.repository.Repository repository) |
ServerConfigurationService |
getServerConfigurationService() |
void |
init() |
ActiveSearch |
newSearch() |
ActiveSearch |
newSearch(CitationCollection savedResults) |
protected String |
newSearchId() |
protected boolean |
paramIsEmpty(String param) |
void |
setConfigurationService(ConfigurationService configService) |
void |
setMemoryService(MemoryService memoryService) |
void |
setServerConfigurationService(ServerConfigurationService serverConfigurationService) |
void |
setSessionManager(SessionManager sessionManager) |
protected void |
setupTypes() |
void |
update(Observable arg0,
Object arg1) |
void |
updateHierarchy(String databaseXmlReference) |
protected static int MAX_DUPLICATES
public static final String SAKAI_SESSION
public static final String SAKAI_KEY
public static final String SAKAI_HOST
public static final String SERVLET_NAME
public static final String WINDOW_PREFIX
protected static BaseSearchManager.BasicType categoryAssetType
protected static BaseSearchManager.BasicType databaseAssetType
protected static BaseSearchManager.BasicType searchType
protected static BaseSearchManager.BasicType repositoryType
protected SessionManager m_sessionManager
protected ConfigurationService m_configService
protected ServerConfigurationService serverConfigurationService
protected String databaseHierarchyResourceRef
public void setSessionManager(SessionManager sessionManager)
public void setConfigurationService(ConfigurationService configService)
public void destroy()
public ActiveSearch doNextPage(ActiveSearch search) throws SearchException
doNextPage in interface SearchManagerSearchExceptionpublic ActiveSearch doPrevPage(ActiveSearch search) throws SearchException
doPrevPage in interface SearchManagerSearchExceptionpublic ActiveSearch doSearch(ActiveSearch search) throws SearchException, SearchCancelException
doSearch in interface SearchManagerSearchExceptionSearchCancelExceptionprotected String newSearchId()
protected org.osid.shared.Type getPropertyType(org.osid.repository.Repository repository)
throws SearchException
SearchExceptionprotected org.osid.shared.Type getCategoryType(org.osid.repository.Repository repository)
throws SearchException
SearchExceptionprotected org.osid.shared.Type getSearchType(org.osid.repository.Repository repository)
throws SearchException
SearchExceptionprotected String getSearchStatusMessage(org.osid.repository.Repository repository) throws SearchException
SearchExceptionpublic void init()
protected void setupTypes()
public SearchDatabaseHierarchy getSearchHierarchy() throws SearchException
getSearchHierarchy in interface SearchManagerSearchExceptionpublic void updateHierarchy(String databaseXmlReference)
public ActiveSearch newSearch()
newSearch in interface SearchManagerpublic ActiveSearch newSearch(CitationCollection savedResults)
newSearch in interface SearchManagerprotected boolean paramIsEmpty(String param)
public String getGoogleScholarUrl(String resourceId)
getGoogleScholarUrl in interface SearchManagerpublic String getSaveciteUrl(String resourceId, String saveciteClientId)
getSaveciteUrl in interface SearchManagerresourceId - The identifier for the citation list.public String getExternalSearchWindowName(String resourceId)
getExternalSearchWindowName in interface SearchManagerpublic ServerConfigurationService getServerConfigurationService()
public void setServerConfigurationService(ServerConfigurationService serverConfigurationService)
serverConfigurationService - the serverConfigurationService to setpublic void update(Observable arg0, Object arg1)
protected SecurityAdvisor enableSecurityAdvisor()
public String getResourceContent(ContentResource resource) throws IOException, ServerOverloadException
resource - Content hosting resourceIOExceptionServerOverloadExceptionpublic String getResourceContent(String resourceReference) throws IOException, IdUnusedException, PermissionException, ServerOverloadException, TypeException
resourceReference - Resource referenceIOExceptionIdUnusedExceptionPermissionExceptionServerOverloadExceptionTypeExceptionpublic MemoryService getMemoryService()
public void setMemoryService(MemoryService memoryService)
memoryService - the memoryService to setCopyright © 2003–2016 The Sakai Foundation. All rights reserved.