|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.fh_mannheim.mm.dms.framework.ConnectionManager
de.fh_mannheim.mm.dms.framework.ContentConnectionManager
de.fh_mannheim.mm.dms.framework.ContentManager
ContentManager loads extracted text to the database and stems the keywords.
To search the documentbase, the function searchQuery() is used.
| Field Summary | |
static int |
BOOLEAN_AND
Public declarations for weights for boolean values |
static int |
BOOLEAN_NOT
|
static int |
BOOLEAN_OR
|
static double |
MIN_RELEVANCY
Minimum relevance |
static int |
PRIORITY_META
Factor for metainformation |
| Fields inherited from class de.fh_mannheim.mm.dms.framework.ContentConnectionManager |
MAX_RESULTS |
| Constructor Summary | |
ContentManager(Config cfg,
UploadManager uplMgr,
StopwordManager stwdMgr)
Constructor. |
|
| Method Summary | |
boolean |
addContent(java.lang.String strText,
int nID)
Add new content. |
boolean |
addIndex(int nFileID,
int nKeywordID,
int nFrequency)
Adds a document-keyword-pair to the index database. |
boolean |
addIndexList(int nFileID,
java.util.ArrayList aKeywords)
Adds a list with document-keyword-pairs to the index database. |
boolean |
addKeyword(java.lang.String strKeyword)
Adds a keyword to the keyword database. |
boolean |
addKeyword(java.lang.String strKeyword,
int nFrequency)
Adds a keyword to the keyword database. |
boolean |
addKeywordList(java.util.ArrayList aKeywords)
Adds a list with keywords to the keyword database. |
int |
addLanguage(Upload upload,
StopwordList aStopwords)
Adds a the language to the upload by comparing the stopwords. |
boolean |
addMetaIndexList(int nFileID,
java.util.ArrayList aKeywords)
Adds a list with document-keyword-pairs to the index database. |
boolean |
addPreparedQueryWord(java.lang.String strWord,
int nBoolType,
int nLanguage,
int nUserID)
Prepare the querystring for request. |
boolean |
addQueryWord(java.lang.String strWord,
double dWeight,
int nUserID)
Adds a query keyword to the query database. |
boolean |
addQueryWord(java.lang.String strWord,
int nUserID)
Adds a query keyword to the query database. |
boolean |
addUpload(Upload upload)
Extract the plaintext from a given document. |
void |
adjustWeights()
Adjust the weights. |
boolean |
clearQuery(int nUserID)
Clear the querystring for request. |
static java.lang.StringBuffer |
convertText(java.lang.String strPlaintext)
Remove umlaute and convert to lowercase. |
void |
cutOffWords(java.util.ArrayList aWords)
Remove all words with frequency 1. |
boolean |
deleteContent(int nID)
Deletes content of a file. |
boolean |
deleteIndex()
Delete all keywords. |
boolean |
deleteIndex(int nFileID)
Delete all keywords from a file. |
int |
getIndexNum()
Counts all index pairs. |
int |
getKeyword(java.lang.String strKeyword)
Get keyword. |
int |
getKeywordNum()
Counts all keywords. |
java.util.ArrayList |
getKeywords(int nUploadID,
int nLimit)
Get all keywords of a given document. |
double |
getLastCompressionRate()
Returns the compressionrate of the last file. |
int |
indexMetaInformation(Upload upload)
Index metainformation of upload. |
int |
indexText(java.lang.StringBuffer strText,
Upload upload)
Remove stopwords of a string and index keywords. |
int |
indexTextFile(Upload upload)
Extract the plaintext from a text document. |
void |
optimize()
Optimize tables. |
SearchResultList |
searchQuery(Query query)
Prepare the querystring for request. |
void |
showMessage(java.lang.String strMessage)
Show a message. |
void |
showMessage(java.lang.String strMessage,
boolean bShowTime)
Show a message. |
void |
showMessage(java.lang.String strMessage,
boolean bShowTime,
boolean bNewLine)
Show a message. |
static java.util.ArrayList |
sort(java.lang.String[] strList)
Sort list. |
java.util.ArrayList |
stemWordList(java.util.ArrayList aWords,
int nLanguage)
Creates a new list with all words stemmed. |
| Methods inherited from class de.fh_mannheim.mm.dms.framework.ContentConnectionManager |
insertIndex, insertKeyword, insertQuery, searchQuery, searchQuery, searchQueryByLanguage, searchQueryByLanguage, updateFileWeight, updateIndexFrequency, updateIndexWeight, updateKeywordFrequency, updateKeywordWeight, updateQuery |
| Methods inherited from class de.fh_mannheim.mm.dms.framework.ConnectionManager |
checkConnection, closeConnection, closePreparedStatement, closeResultSet, closeResultSet, commit, executeQuery, executeQueryGetBool, executeQueryGetDate, executeQueryGetDouble, executeQueryGetInt, executeQueryGetString, executeUpdate, formatBool, formatDate, formatDate, formatDouble, formatInteger, formatString, getPreparedStatement, openConnection, optimizeTable, rollback, startTransaction |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int BOOLEAN_AND
public static final int BOOLEAN_NOT
public static final int BOOLEAN_OR
public static final double MIN_RELEVANCY
public static final int PRIORITY_META
| Constructor Detail |
public ContentManager(Config cfg,
UploadManager uplMgr,
StopwordManager stwdMgr)
cfg - ConfiguplMgr - UploadManager| Method Detail |
public boolean addContent(java.lang.String strText,
int nID)
strText - nID - ID of file
public boolean addIndex(int nFileID,
int nKeywordID,
int nFrequency)
nFileID - Corresponding uploadnKeywordID - Corresponding keywordnFrequency - Number of found equal keywords
public boolean addIndexList(int nFileID,
java.util.ArrayList aKeywords)
nFileID - Corresponding uploadaKeywords - Corresponding keywords
public boolean addKeyword(java.lang.String strKeyword)
strKeyword - New keyword
public boolean addKeyword(java.lang.String strKeyword,
int nFrequency)
strKeyword - New keywordnFrequency - Frequency of keyword
public boolean addKeywordList(java.util.ArrayList aKeywords)
aKeywords - New keyword list
public int addLanguage(Upload upload,
StopwordList aStopwords)
upload - Upload orderaStopwords - Stopwords within this document
public boolean addMetaIndexList(int nFileID,
java.util.ArrayList aKeywords)
nFileID - Corresponding uploadaKeywords - Corresponding keywords
public boolean addQueryWord(java.lang.String strWord,
int nUserID)
strWord - New query-keywordnUserID - ID of user who calls search
public boolean addQueryWord(java.lang.String strWord,
double dWeight,
int nUserID)
strWord - New query-keyworddWeight - WeightnUserID - ID of user who calls search
public boolean addUpload(Upload upload)
throws ParsingFailedException
upload - Document, which should be parsed
ParsingFailedException - When document could not be parsedpublic void adjustWeights()
public static java.lang.StringBuffer convertText(java.lang.String strPlaintext)
strPlaintext - Text which should be parsed
public boolean deleteContent(int nID)
nID - ID of file
public boolean deleteIndex()
public boolean deleteIndex(int nFileID)
nFileID - ID of file
public int getIndexNum()
public int getKeyword(java.lang.String strKeyword)
strKeyword - Keyword
public int getKeywordNum()
public java.util.ArrayList getKeywords(int nUploadID,
int nLimit)
nUploadID - ID of uploadnLimit - Limit of keywords
public double getLastCompressionRate()
public int indexMetaInformation(Upload upload)
upload - Upload with metainformation
public int indexText(java.lang.StringBuffer strText,
Upload upload)
strText - Textupload - Upload
public int indexTextFile(Upload upload)
upload - Upload
public boolean clearQuery(int nUserID)
nUserID - ID of user who calls search
public boolean addPreparedQueryWord(java.lang.String strWord,
int nBoolType,
int nLanguage,
int nUserID)
strWord - WordnBoolType - WeightnLanguage - Language of searchnUserID - ID of user who calls search
public SearchResultList searchQuery(Query query)
searchQuery in interface ISearchManagerquery - Searchtext
public void optimize()
public void cutOffWords(java.util.ArrayList aWords)
aWords - ArrayList with words to be checkedpublic void showMessage(java.lang.String strMessage)
strMessage - Message that should be displayed
public void showMessage(java.lang.String strMessage,
boolean bShowTime)
strMessage - Message that should be displayedbShowTime - Should time be displayed behind message
public void showMessage(java.lang.String strMessage,
boolean bShowTime,
boolean bNewLine)
strMessage - Message that should be displayedbShowTime - Should time be displayed behind messagebNewLine - Should a line break follow the textpublic static java.util.ArrayList sort(java.lang.String[] strList)
strList - StringList to be sorted
public java.util.ArrayList stemWordList(java.util.ArrayList aWords,
int nLanguage)
aWords - ArrayList with words to be stemmednLanguage - Language of keywords
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||