|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jalios.jcmsplugin.comment.CommentUtil
public class CommentUtil
This class is a set of Static utility methods to manipulate Comment
Field Summary | |
---|---|
static Class |
COMMENT_CLASS
|
static String |
REVISION
|
Constructor Summary | |
---|---|
CommentUtil()
|
Method Summary | |
---|---|
static boolean |
allowAnonymousComment()
Returns true if Comments can be published anonymously |
static boolean |
canComment(Member mbr,
Publication pub)
Returns true if the member can comment on the given publication |
static Collection |
getComments(Publication content,
Member loggedMember)
Returns all comments bind to the given content |
static Plugin |
getPlugin()
Returns the CommentPlugin |
static boolean |
isCommentable(Publication pub)
Returns true if the publication is commentable |
static boolean |
isCompatibleType(Class clazz)
Returns true if the given class is commentable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String REVISION
public static Class COMMENT_CLASS
Constructor Detail |
---|
public CommentUtil()
Method Detail |
---|
public static boolean isCommentable(Publication pub)
pub
- the workin publicaiton
public static boolean canComment(Member mbr, Publication pub)
mbr
- the member who commentpub
- the working publication
public static boolean allowAnonymousComment()
public static boolean isCompatibleType(Class clazz)
clazz
- the class to check
public static Collection getComments(Publication content, Member loggedMember)
content
- the working content
public static Plugin getPlugin()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |