|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jalios.jcms.ReviewManager
public class ReviewManager
| Field Summary |
|---|
| Fields inherited from interface com.jalios.jcms.db.DBConstants |
|---|
AUTHOR_ID_FIELD, CDATE_FIELD, CHANNEL_JCMSDB_PROP, DBDATA_URID, HIBERNATE_MAPPING_ADATE, HIBERNATE_MAPPING_AUTHOR, HIBERNATE_MAPPING_CDATE, HIBERNATE_MAPPING_EDATE, HIBERNATE_MAPPING_MDATE, HIBERNATE_MAPPING_PDATE, HIBERNATE_MAPPING_PSTATUS, HIBERNATE_MAPPING_TITLE, HIBERNATE_MAPPING_WORKSPACE_ID, MDATE_FIELD, REVISION, ROW_ID_FIELD, WORKSPACE_ID_FIELD |
| Method Summary | |
|---|---|
int |
getDefaultRating()
Returns the default review rating get from the property review.default-rating |
static ReviewManager |
getInstance()
|
int |
getMaxReviewRating()
Returns the maximum review rating value. |
AbstractReview |
getReview(Publication pub,
Member author)
Returns the review written by the given author and bound to the given publication. |
int |
getReviewCount(Publication pub)
Returns how many reviews are attached to the given publication. |
List<AbstractReview> |
getReviewList(Publication pub)
Returns all the reviews bound to the given publication. |
List<AbstractReview> |
getReviewList(Publication pub,
Member mbr)
Returns all the reviews bound to the given publication the given member can access. |
int |
getReviewRating(Publication pub)
Returns the average rating for the given publication. |
void |
removeAllReviews(Publication pub)
Removes all the Reviews bound to the given publication. |
void |
updatePublicationReviewInfo(Publication pub)
Recompute the statistics (avg. rating, count) on the review of the given publication. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ReviewManager getInstance()
public List<AbstractReview> getReviewList(Publication pub)
pub - the publication
public List<AbstractReview> getReviewList(Publication pub,
Member mbr)
pub - the publicationmbr - the member
public AbstractReview getReview(Publication pub,
Member author)
pub - the publicationauthor - the author
public void removeAllReviews(Publication pub)
pub - the publicationpublic int getReviewRating(Publication pub)
pub - the publication
public int getReviewCount(Publication pub)
pub - the publication
public void updatePublicationReviewInfo(Publication pub)
pub - the publicationpublic int getMaxReviewRating()
public int getDefaultRating()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||