net.firstpartners.rp.plugins
Interface ICategoryStore

All Known Implementing Classes:
BasicCategoryStore

public interface ICategoryStore

Stores Meta Data (Indexed items , things we have spidered , user reaction to links)

Author:
brownpa

Method Summary
 double getDirectScore(java.lang.String categName, java.lang.String documID)
          Get the direct score for the specified document id in the category
 double getImpliedScore(java.lang.String categName, java.lang.String documID)
          Get the implied score for the specified document id in the category
 java.lang.String getOriginalLocation(java.lang.String path)
          Get the original location of the category from the model.
 void store(DocumStruct doc)
          Store the document data as rdf-xml
 void updateCategoryScore(java.lang.String categoryname, int userScore)
          Update the category score using the categoryname and user feedback score
 void updateDocumentDirectScore(java.lang.String categoryname, java.lang.String documentid, int userScore)
          Update the direct score of the document using the categoryname, document id and user feedback score
 void updateDocumentLinksAndScore(java.util.LinkedList listLinks, int userScore)
          Update the document with the specified links list and user feedback (+/-)
 

Method Detail

getOriginalLocation

java.lang.String getOriginalLocation(java.lang.String path)
                                     throws RpException
Get the original location of the category from the model.

Parameters:
path - Category folder path
Returns:
Original location of the category
Throws:
RpException - If an error occur in reading the document location

getDirectScore

double getDirectScore(java.lang.String categName,
                      java.lang.String documID)
                      throws RpException
Get the direct score for the specified document id in the category

Parameters:
categName - The category name
documID - The document id
Returns:
Direct score of the document
Throws:
RpException - If an error occur in reading the direct score of the document

getImpliedScore

double getImpliedScore(java.lang.String categName,
                       java.lang.String documID)
                       throws RpException
Get the implied score for the specified document id in the category

Parameters:
categName - The category name
documID - The document id
Returns:
Implied score of the document
Throws:
RpException - If an error occur in calculate the implied score of the document

updateDocumentLinksAndScore

void updateDocumentLinksAndScore(java.util.LinkedList listLinks,
                                 int userScore)
Update the document with the specified links list and user feedback (+/-)

Parameters:
listLinks - Links list to update the document
userScore - User feedback score (+/-)

updateDocumentDirectScore

void updateDocumentDirectScore(java.lang.String categoryname,
                               java.lang.String documentid,
                               int userScore)
Update the direct score of the document using the categoryname, document id and user feedback score

Parameters:
categoryname - The category name
documentid - The document id
userScore - The user feedback score (+1/-1)

updateCategoryScore

void updateCategoryScore(java.lang.String categoryname,
                         int userScore)
Update the category score using the categoryname and user feedback score

Parameters:
categoryname - The category name
userScore - The user feedback score (+1/-1)

store

void store(DocumStruct doc)
           throws RpException
Store the document data as rdf-xml

Parameters:
doc - Document to be stored
Throws:
RpException - If an error occur in storing the data