|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.index.RwareIndexDelegate
This is the class that extracts textual information from Windchill business
objects and sends it off to be indexed into a RetrievalWare library.
Note that you should not call or instantiate the RwareIndexDelegate directly,
but rely on the queing mechanism of the IndexService to execute the methods
when appropriate.
Supported API: true
Extendable: true
Field Summary | |
private static String |
CLASSNAME
|
private LinkedList |
contentItems
|
static long |
EXTERNALIZATION_VERSION_UID
|
private Hashtable |
fieldTbl
|
private IndexAccessorConnection |
iaccConn
|
private IndexAccessor |
indexAccessor
|
private static long |
indexContent
|
private static LinkedList |
libraries
|
private static Locale |
locale
|
private String |
objIdentity
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private static Vector |
supportedRwareDocs
Contains the list of supported document types that are configured with Rware |
Constructor Summary | |
RwareIndexDelegate()
|
Method Summary | |
protected void |
addFieldToTbl(String fieldName,
String fieldValue)
This method can be used by instances of IndexServiceDelegate that subclass RwareIndexDelegate to index the appropriate fields into the library Supported API: false |
void |
custom_getAdditionalFieldData(Indexable indexable)
Deprecated. |
void |
custom_getAdditionalMetaData(Indexable indexable)
Deprecated. |
void |
custom_getFieldData()
Deprecated. |
void |
custom_getMetaData(Indexable indexable)
This method indexes all attributes of an object into the Rware metadata field and is searchable using that field. |
boolean |
delete(LinkedList indexCollection,
IndexerSet libraries)
This method is used to delete an item from the index based on the items UFID key Supported API: false |
IndexAccessor |
getIndexAccessor()
Gets the value of the attribute: indexAccessor. |
private Object |
getPropValueObj(ClassInfo objInfo,
String propStr,
Indexable indexable)
|
WTCollection |
index(WTCollection indexCollection)
This method is used to generate all of the information required for an object to be indexed. |
protected void |
indexInstanceAttributes(Indexable indexable)
Called by the custom_getMetaData method and looks for all soft attributes (IBAs) and indexes them to an ibas field in the index and are searchable through the keyword or using the ibas field search, or the generic keyword query. |
private void |
initializeConnection(int operation)
|
protected IndexAccessor |
initIndexAccessor(IndexAccessorConnection iaccConn,
int operation)
|
Locale |
localeFromString(String localeString)
|
private void |
Log(String line)
|
private void |
processContentItems(Indexable indexable)
|
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(RwareIndexDelegate thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
private String |
sanitize(String str)
|
private void |
sendAttributeToIndex(ClassInfo objInfo,
PropertyDescriptor prop,
Indexable indexable)
|
protected void |
sendAttributeToIndex(String indexField,
String value,
IndexAccessor iacc,
Indexable indexable)
This method is to be used by an implementing IndexServiceDelegate as a method to call to index metadata to the indexer. |
void |
setIndexAccessor(IndexAccessor a_IndexAccessor)
Sets the value of the attribute: indexAccessor. |
private void |
updateIndexerSet(WTCollection indexables)
|
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
protected void |
writeFieldData()
|
private void |
writeLibraries(Indexable indexable)
|
private void |
writeLibraries(IndexerSet list)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private IndexAccessor indexAccessor
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private Hashtable fieldTbl
private IndexAccessorConnection iaccConn
private String objIdentity
private static Vector supportedRwareDocs
private static long indexContent
private LinkedList contentItems
private static LinkedList libraries
private static Locale locale
Constructor Detail |
public RwareIndexDelegate()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(RwareIndexDelegate thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public IndexAccessor getIndexAccessor()
public void setIndexAccessor(IndexAccessor a_IndexAccessor) throws WTPropertyVetoException
a_IndexAccessor
-
WTPropertyVetoException
public WTCollection index(WTCollection indexCollection) throws IndexingException, WTException, IllegalAccessException, InvocationTargetException, ClassNotFoundException, InstantiationException, PropertyVetoException, IOException
index
in interface IndexServiceDelegate
indexCollection
-
IndexingException
WTException
IllegalAccessException
InvocationTargetException
ClassNotFoundException
InstantiationException
PropertyVetoException
IOException
public boolean delete(LinkedList indexCollection, IndexerSet libraries) throws IndexingException, WTException, IllegalAccessException, InvocationTargetException, ClassNotFoundException, InstantiationException, PropertyVetoException, IOException
delete
in interface IndexServiceDelegate
indexCollection
- libraries
-
IndexingException
WTException
IllegalAccessException
InvocationTargetException
ClassNotFoundException
InstantiationException
PropertyVetoException
IOException
protected void indexInstanceAttributes(Indexable indexable)
indexable
- public void custom_getMetaData(Indexable indexable) throws WTException, IndexingException
custom_getMetaData
in interface IndexServiceDelegate
indexable
-
WTException
IndexingException
public void custom_getAdditionalMetaData(Indexable indexable) throws WTException, IndexingException
custom_getAdditionalMetaData
in interface IndexServiceDelegate
indexable
-
WTException
IndexingException
public void custom_getAdditionalFieldData(Indexable indexable) throws WTException, IndexingException
custom_getAdditionalFieldData
in interface IndexServiceDelegate
indexable
-
WTException
IndexingException
public void custom_getFieldData() throws WTException, IndexingException
custom_getFieldData
in interface IndexServiceDelegate
WTException
IndexingException
protected void addFieldToTbl(String fieldName, String fieldValue)
fieldName
- fieldValue
- protected void sendAttributeToIndex(String indexField, String value, IndexAccessor iacc, Indexable indexable) throws WTException, IllegalAccessException, InvocationTargetException
indexField
- value
- iacc
- indexable
-
WTException
IllegalAccessException
InvocationTargetException
protected IndexAccessor initIndexAccessor(IndexAccessorConnection iaccConn, int operation) throws IndexingException, WTException, IllegalAccessException, InvocationTargetException, ClassNotFoundException, InstantiationException, PropertyVetoException, IOException
IndexingException
WTException
IllegalAccessException
InvocationTargetException
ClassNotFoundException
InstantiationException
PropertyVetoException
IOException
private void initializeConnection(int operation) throws IllegalAccessException, IOException, ClassNotFoundException, PropertyVetoException, WTException, InstantiationException, InvocationTargetException
IllegalAccessException
IOException
ClassNotFoundException
PropertyVetoException
WTException
InstantiationException
InvocationTargetException
private void sendAttributeToIndex(ClassInfo objInfo, PropertyDescriptor prop, Indexable indexable) throws WTException, IllegalAccessException, InvocationTargetException
WTException
IllegalAccessException
InvocationTargetException
private Object getPropValueObj(ClassInfo objInfo, String propStr, Indexable indexable) throws WTException
WTException
protected void writeFieldData() throws WTException, IllegalAccessException, InvocationTargetException, PropertyVetoException
WTException
IllegalAccessException
InvocationTargetException
PropertyVetoException
public Locale localeFromString(String localeString)
private void Log(String line)
private String sanitize(String str)
private void updateIndexerSet(WTCollection indexables) throws WTException
WTException
private void processContentItems(Indexable indexable) throws WTException, PropertyVetoException, IllegalAccessException, InvocationTargetException
WTException
PropertyVetoException
IllegalAccessException
InvocationTargetException
private void writeLibraries(Indexable indexable)
private void writeLibraries(IndexerSet list)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |