|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfedora.server.Parameterized
fedora.server.Pluggable
fedora.server.Module
fedora.server.search.FieldSearchSQLModule
Title: FieldSearchSQLModule.java
Description:
-----------------------------------------------------------------------------License and Copyright: The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/.
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
The entire file consists of original code. Copyright © 2002-2005 by The Rector and Visitors of the University of Virginia and Cornell University. All rights reserved.
-----------------------------------------------------------------------------
| Constructor Summary | |
FieldSearchSQLModule(java.util.Map params,
Server server,
java.lang.String role)
|
|
| Method Summary | |
boolean |
delete(java.lang.String pid)
Remove an object from the search indexes. |
FieldSearchResult |
findObjects(java.lang.String[] resultFields,
int maxResults,
FieldSearchQuery query)
Search across specific fields and return the desired fields. |
java.lang.String[] |
getRequiredModuleRoles()
Gets the names of the roles that are required by this Pluggable.
|
void |
postInitModule()
Second stage of Module initialization. |
FieldSearchResult |
resumeFindObjects(java.lang.String sessionToken)
Resume an in-progress search across specific fields and return the desired fields. |
void |
update(DOReader reader)
Update the search indexes with information from the provided DOReader. |
| Methods inherited from class fedora.server.Module |
getRole, getServer, initModule, logConfig, logFine, logFiner, logFinest, loggingConfig, loggingFine, loggingFiner, loggingFinest, loggingInfo, loggingSevere, loggingWarning, logInfo, logSevere, logWarning, shutdownModule |
| Methods inherited from class fedora.server.Pluggable |
getHelp, getOptionalParameters, getParameterHelp, getRequiredParameters |
| Methods inherited from class fedora.server.Parameterized |
getParameter, getParameters, parameterNames, setParameter, setParameters |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FieldSearchSQLModule(java.util.Map params,
Server server,
java.lang.String role)
throws ModuleInitializationException
| Method Detail |
public void postInitModule()
throws ModuleInitializationException
Module
postInitModule in class ModuleModuleInitializationException - If initialization values are
invalid or initialization fails for some other reason.public java.lang.String[] getRequiredModuleRoles()
PluggablePluggable.
By default, no roles need to be fulfilled.
getRequiredModuleRoles in class Pluggable
public void update(DOReader reader)
throws ServerException
FieldSearch
update in interface FieldSearchreader - the DOReader containing all the field information
for the object
ServerException - if anything went wrong
public boolean delete(java.lang.String pid)
throws ServerException
FieldSearch
delete in interface FieldSearchpid - the unique id of the object whose info should be removed
ServerException - if anything went wrong
public FieldSearchResult findObjects(java.lang.String[] resultFields,
int maxResults,
FieldSearchQuery query)
throws ServerException
FieldSearch
findObjects in interface FieldSearchresultFields - the desired fieldsmaxResults - the maximum number of results the client wantsquery - the query
ServerException - if anything went wrong
public FieldSearchResult resumeFindObjects(java.lang.String sessionToken)
throws ServerException
FieldSearch
resumeFindObjects in interface FieldSearchsessionToken - the token of the session in which the remaining
results can be found
ServerException - if anything went wrong
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||