|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jalios.jcms.ReviewManager
public class ReviewManager
Field Summary | |
---|---|
static String |
REVIEWED_PUBLICATION_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 |
invalidatePublicationReviewInfo(Publication pub)
Invalidate the statistics (avg. |
void |
removeAllReviews(Publication pub)
Removes all the Reviews bound to the given publication. |
void |
updatePublicationReviewInfo(Publication pub)
Recompute the statistics (avg. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String REVIEWED_PUBLICATION_ID_FIELD
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 invalidatePublicationReviewInfo(Publication pub)
pub
- the publicationpublic 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 |