net.firstpartners.rp.mid.feedback
Class BaseFeedback

java.lang.Object
  extended by net.firstpartners.rp.mid.feedback.BaseFeedback
All Implemented Interfaces:
IFeedback
Direct Known Subclasses:
CategoryFeedback, DocumentFeedback, SearchFeedback

public class BaseFeedback
extends java.lang.Object
implements IFeedback

General feedback class

Version:
1.6
Author:
Firstpartners.net

Field Summary
static java.lang.String CATEGORY_LOCATION
          Feedback category location
static java.lang.String CATEGORY_NAME
          Feedback category name
private  java.lang.String date
          Feedback document date
static java.lang.String DESCRIPTION
          Feedback document description
static java.lang.String ID
          Feedback document id
private  int score
          Feedback score (+1/-1)
static java.lang.String SCORE
          Feedback score
static java.lang.String SEARCH_TERM
          Search Term used to store the previous search request (will contain only the terms, without the "categoryname:").
private  java.lang.String type
          Feedback type
static java.lang.String TYPE_CATEGORY_FEEDBACK
          Category feedback type
static java.lang.String TYPE_DOCUMENT_FEEDBACK
          Document feedback type
static java.lang.String TYPE_SEARCH_FEEDBACK
          Search feedback type
 
Constructor Summary
BaseFeedback(java.lang.String type)
          Creates a new CategoryFeedback object.
BaseFeedback(java.lang.String type, int score)
           
 
Method Summary
 java.lang.String getDate()
           
 int getScore()
           
 java.lang.String getType()
           
 void setDate(java.lang.String date)
           
 void setScore(int score)
           
 void setType(java.lang.String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_CATEGORY_FEEDBACK

public static final java.lang.String TYPE_CATEGORY_FEEDBACK
Category feedback type

See Also:
Constant Field Values

TYPE_DOCUMENT_FEEDBACK

public static final java.lang.String TYPE_DOCUMENT_FEEDBACK
Document feedback type

See Also:
Constant Field Values

TYPE_SEARCH_FEEDBACK

public static final java.lang.String TYPE_SEARCH_FEEDBACK
Search feedback type

See Also:
Constant Field Values

SCORE

public static final java.lang.String SCORE
Feedback score

See Also:
Constant Field Values

ID

public static final java.lang.String ID
Feedback document id

See Also:
Constant Field Values

CATEGORY_NAME

public static final java.lang.String CATEGORY_NAME
Feedback category name

See Also:
Constant Field Values

DESCRIPTION

public static final java.lang.String DESCRIPTION
Feedback document description

See Also:
Constant Field Values

CATEGORY_LOCATION

public static final java.lang.String CATEGORY_LOCATION
Feedback category location

See Also:
Constant Field Values

SEARCH_TERM

public static final java.lang.String SEARCH_TERM
Search Term used to store the previous search request (will contain only the terms, without the "categoryname:").

See Also:
Constant Field Values

type

private java.lang.String type
Feedback type


score

private int score
Feedback score (+1/-1)


date

private java.lang.String date
Feedback document date

Constructor Detail

BaseFeedback

public BaseFeedback(java.lang.String type)
Creates a new CategoryFeedback object.

Parameters:
type - The document type

BaseFeedback

public BaseFeedback(java.lang.String type,
                    int score)
Method Detail

getDate

public java.lang.String getDate()
Returns:
Returns the date.

setDate

public void setDate(java.lang.String date)
Parameters:
date - The date to set.

getType

public java.lang.String getType()
Returns:
Returns the type.

setType

public void setType(java.lang.String type)
Parameters:
type - The type to set.

getScore

public int getScore()
Returns:
Returns the score.

setScore

public void setScore(int score)
Parameters:
score - The score to set.