public class DefaultCommentSectionDisplayContext extends BaseCommentDisplayContext implements com.liferay.portal.kernel.comment.display.context.CommentSectionDisplayContext
Constructor and Description |
---|
DefaultCommentSectionDisplayContext(DiscussionRequestHelper discussionRequestHelper,
DiscussionTaglibHelper discussionTaglibHelper,
com.liferay.portal.kernel.comment.DiscussionPermission discussionPermission,
com.liferay.portal.kernel.comment.Discussion discussion) |
Modifier and Type | Method and Description |
---|---|
protected com.liferay.portal.kernel.theme.ThemeDisplay |
getThemeDisplay() |
protected boolean |
hasViewPermission() |
boolean |
isControlsVisible() |
boolean |
isDiscussionVisible() |
boolean |
isMessageThreadVisible() |
isReplyButtonVisible
public DefaultCommentSectionDisplayContext(DiscussionRequestHelper discussionRequestHelper, DiscussionTaglibHelper discussionTaglibHelper, com.liferay.portal.kernel.comment.DiscussionPermission discussionPermission, com.liferay.portal.kernel.comment.Discussion discussion)
public boolean isControlsVisible() throws com.liferay.portal.kernel.exception.PortalException
isControlsVisible
in interface com.liferay.portal.kernel.comment.display.context.CommentSectionDisplayContext
com.liferay.portal.kernel.exception.PortalException
public boolean isDiscussionVisible() throws com.liferay.portal.kernel.exception.PortalException
isDiscussionVisible
in interface com.liferay.portal.kernel.comment.display.context.CommentSectionDisplayContext
com.liferay.portal.kernel.exception.PortalException
public boolean isMessageThreadVisible()
isMessageThreadVisible
in interface com.liferay.portal.kernel.comment.display.context.CommentSectionDisplayContext
protected com.liferay.portal.kernel.theme.ThemeDisplay getThemeDisplay()
getThemeDisplay
in class BaseCommentDisplayContext
protected boolean hasViewPermission() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException