|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.index.rware.RwareServletHelper
This class is a helper class for Rware.
Supported API: false
Extendable: false
Field Summary | |
private static int |
cacheNumber
|
private static String |
DO_MAX_DOCS_PER_LIB_PROPERTY
|
private static String |
EXPANSION_LEVEL_PROPERTY
|
private static String |
loginError
|
private static String |
MAX_DOCS_PROPERTY
|
private static String |
MAX_REG_EXPR_PROPERTY
|
private static String |
MAX_SEARCH_TIME_PROPERTY
|
private static String |
MIN_MAX_HIT_PROPERTY
|
private static int |
numberOfConnections
|
private static String |
PERSIST_OID_FIELD
|
private static String |
QUERY_TYPE
|
private static boolean |
secure
|
private ServletConstants |
servletConstants
Supported API: false Extendable: false |
private static com.convera.hl.RWLoginSession[] |
sessions
|
private static String |
SET_LANGUAGE_PROPERTY
|
private static Vector |
supportedRwareDocs
|
Constructor Summary | |
RwareServletHelper(ServletConstants sc)
Default Constructor. |
Method Summary | |
private Hashtable |
addHitRankings(com.convera.hl.RWResultDoc result,
Hashtable oldResult,
String ufid)
|
private HashMap |
buildLibraryCache(com.convera.hl.RWLoginSession session)
This method gets all of the libraries defined in an Rware application based on the session and it returns the display name of the libraries Supported API: false |
private static void |
checkCartridges(com.convera.hl.RWLoginSession session)
|
private com.convera.hl.RWQuery |
executeQuery(com.convera.hl.RWQuery query)
Execute the query. |
HashMap |
getLibraryCache()
|
static String |
getRwareSupportedDocumentTypes(String rwarePath)
|
private com.convera.hl.RWLoginSession |
getRWSession()
|
Vector |
getSearchableFields()
This method returns the names of all of the available fields that are searchable Supported API: false |
boolean |
indexFile(Hashtable[] index,
String library,
boolean delete)
This method creates, updates or deletes an Index in Rware of a Windchill Business Object Supported API: false |
private void |
initializeRwareConnection(int connections)
This method creates the connections and returns the different items that are cached for later use Supported API: false |
private boolean |
isValidLibrary(String libraryName)
This method creates, updates or deletes an Index in Rware of a Windchill Business Object Supported API: false |
private com.convera.hl.RWLoginSession |
loginToRware()
|
Hashtable |
performSearch(String searchString,
String[] contentLibraries,
Hashtable queryPrefs,
Hashtable searchFields,
String[] prefetchFields,
ArrayList arrClassList,
String strGetHitRankings)
This method creates, updates or deletes an Index in Rware of a Windchill Business Object Supported API: false |
private static void |
printLibraryFields(com.convera.hl.RWLibrary[] libraries)
This method is for informational purposes only and prints out the fields for each library provided Supported API: false |
private Hashtable |
processQuery(com.convera.hl.RWQuery query,
String[] prefetchFields,
ArrayList classList,
String getHitRankings)
Methos signature changed.... |
boolean |
setServletConstants(ServletConstants sc)
|
private com.convera.hl.RWQuery |
setUpQuery(String searchString,
String[] contentLibraries,
Hashtable queryPrefs,
Hashtable searchFields,
String[] prefetchFields)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static String loginError
private static com.convera.hl.RWLoginSession[] sessions
private static int cacheNumber
private static final String PERSIST_OID_FIELD
private static boolean secure
private static int numberOfConnections
private static Vector supportedRwareDocs
private static String MAX_SEARCH_TIME_PROPERTY
private static String QUERY_TYPE
private static String EXPANSION_LEVEL_PROPERTY
private static String MAX_DOCS_PROPERTY
private static String MIN_MAX_HIT_PROPERTY
private static String SET_LANGUAGE_PROPERTY
private static String DO_MAX_DOCS_PER_LIB_PROPERTY
private static String MAX_REG_EXPR_PROPERTY
private ServletConstants servletConstants
Constructor Detail |
public RwareServletHelper(ServletConstants sc)
Method Detail |
private static void checkCartridges(com.convera.hl.RWLoginSession session) throws com.convera.hl.RWException
com.convera.hl.RWException
private boolean isValidLibrary(String libraryName) throws RwareInterfaceException
libraryName
- - String - The library name to check to ensure this exists in session
com.convera.hl.RWException
- - This is thrown for the following reasons. 1.
RwareInterfaceException
private HashMap buildLibraryCache(com.convera.hl.RWLoginSession session) throws com.convera.hl.RWException
session
- - RWLoginSession - The session for which the libraries exist within
com.convera.hl.RWException
- - This is thrown for the following reasons. 1.private static void printLibraryFields(com.convera.hl.RWLibrary[] libraries)
libraries
- - RWLibrary [] - The set of libraries to print the fields frompublic Vector getSearchableFields() throws RwareInterfaceException
RwareInterfaceException
public HashMap getLibraryCache() throws RwareInterfaceException
RwareInterfaceException
private com.convera.hl.RWLoginSession loginToRware() throws com.convera.hl.RWBadFileException, com.convera.hl.RWNotFoundException, com.convera.hl.RWLoginFailedException
com.convera.hl.RWBadFileException
com.convera.hl.RWNotFoundException
com.convera.hl.RWLoginFailedException
private com.convera.hl.RWLoginSession getRWSession() throws com.convera.hl.RWException
com.convera.hl.RWException
private void initializeRwareConnection(int connections) throws com.convera.hl.RWException
connections
- - A value that determine the number of active connections to create to Rware
com.convera.hl.RWException
- - This is thrown for the following reasons. 1. Invalid login to Rwarepublic boolean indexFile(Hashtable[] index, String library, boolean delete) throws RwareInterfaceException
index
- - Hashtable[] - An array of Hashtables of values to be indexed against a certain Rware applicationdelete
- - boolean - A value that indicates whehter or not the index is to be deleted
com.convera.hl.RWException
- - This is thrown for the following reasons. 1. Invalid library defined
2. Error during the submitting of the index batch 3. The connections might have returned an error
RwareInterfaceException
public Hashtable performSearch(String searchString, String[] contentLibraries, Hashtable queryPrefs, Hashtable searchFields, String[] prefetchFields, ArrayList arrClassList, String strGetHitRankings) throws RwareInterfaceException
com.convera.hl.RWException
- - This is thrown for the following reasons. 1. Invalid library defined
2. Error during the submitting of the index batch 3. The connections might have returned an error
RwareInterfaceException
private com.convera.hl.RWQuery setUpQuery(String searchString, String[] contentLibraries, Hashtable queryPrefs, Hashtable searchFields, String[] prefetchFields) throws com.convera.hl.RWException
com.convera.hl.RWException
private com.convera.hl.RWQuery executeQuery(com.convera.hl.RWQuery query) throws com.convera.hl.RWException
RwareInterfaceException
- If an error occurred executing the query.
com.convera.hl.RWException
private Hashtable processQuery(com.convera.hl.RWQuery query, String[] prefetchFields, ArrayList classList, String getHitRankings) throws com.convera.hl.RWException
query
- prefetchFields
- classList
-
com.convera.hl.RWException
public static String getRwareSupportedDocumentTypes(String rwarePath) throws IOException
IOException
public boolean setServletConstants(ServletConstants sc)
private Hashtable addHitRankings(com.convera.hl.RWResultDoc result, Hashtable oldResult, String ufid)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |