|
Jive API (3.0.13) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CommentableTypeInfoProvider
The comments subsystem (primarily CommentManager) uses this provider to perform comment-related operations on behalf of objects of this type.
CommentableType| Method Summary | |
|---|---|
int |
getCommentStatus(CommentContentResource commentTarget)
Returns the comment status of the comment target. |
InterceptorManager |
getInterceptorManager(CommentContentResource commentTarget)
Gets the interceptor manager for the comment target, so that the comments subsystem will can use it to invoke the correct interceptors when comments are added or modified for the target. |
EntityDescriptor |
getParentObject(CommentContentResource commentTarget)
Get an entity descriptor indicating the comment target's parent's object type and object id. |
boolean |
isAuthorizedInBackChannel(CommentContentResource commentTarget,
User user)
Returns true if the comment target can be commented upon in the back-channel by the specified user. |
boolean |
isCommentAttachedToCommentTarget(EntityDescriptor commentTarget,
EntityDescriptor comment)
Returns true if the comment is attached to the comment target. |
boolean |
isCommentsEnabled()
Returns true if comments are enabled for this type. |
boolean |
isDeleteable(CommentContentResource commentTarget,
Comment comment)
Returns true if the comment is deleteable, based on the deletable status of the comment target and comment itself. |
boolean |
isInDraftState(CommentContentResource commentTarget)
Returns true if the comment target is in draft state. |
boolean |
validateCommentOptions(CommentContentResource commentTarget,
Comment comment,
boolean isAnonymousUser)
Returns true if the options for comment authentication are valid. |
| Method Detail |
|---|
InterceptorManager getInterceptorManager(CommentContentResource commentTarget)
throws NotFoundException
commentTarget - the object that was commented upon.
NotFoundException - thrown when an object could not be loaded.
EntityDescriptor getParentObject(CommentContentResource commentTarget)
throws NotFoundException
commentTarget - the object that was commented upon.
NotFoundException - thrown when an object could not be loaded.
boolean isDeleteable(CommentContentResource commentTarget,
Comment comment)
commentTarget - the object that was commented upon.comment - the comment.
int getCommentStatus(CommentContentResource commentTarget)
throws NotFoundException
commentTarget - the object that was commented upon.
NotFoundException - thrown when an object could not be loaded.
boolean isCommentAttachedToCommentTarget(EntityDescriptor commentTarget,
EntityDescriptor comment)
commentTarget - the object that was commented upon.comment - the comment.
boolean isInDraftState(CommentContentResource commentTarget)
commentTarget - the object that was commented upon.
boolean isCommentsEnabled()
boolean isAuthorizedInBackChannel(CommentContentResource commentTarget,
User user)
commentTarget - the object that was commented upon.user - the user whose authorization is in question.
boolean validateCommentOptions(CommentContentResource commentTarget,
Comment comment,
boolean isAnonymousUser)
commentTarget - the object that was commented upon.comment - the comment.isAnonymousUser - whether or not the user is anonymous.
|
Jive Product Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||