public class DefaultCommentTreeDisplayContext extends BaseCommentDisplayContext implements com.liferay.portal.kernel.comment.display.context.CommentTreeDisplayContext
Constructor and Description |
---|
DefaultCommentTreeDisplayContext(DiscussionRequestHelper discussionRequestHelper,
DiscussionTaglibHelper discussionTaglibHelper,
com.liferay.portal.kernel.comment.DiscussionPermission discussionPermission,
com.liferay.portal.kernel.comment.DiscussionComment discussionComment) |
Modifier and Type | Method and Description |
---|---|
String |
getPublishButtonLabel(Locale locale) |
protected com.liferay.portal.kernel.theme.ThemeDisplay |
getThemeDisplay() |
protected com.liferay.portal.kernel.model.User |
getUser() |
protected boolean |
hasUpdatePermission() |
protected boolean |
hasViewPermission() |
boolean |
isActionControlsVisible() |
protected boolean |
isCommentApproved() |
protected boolean |
isCommentAuthor() |
protected boolean |
isCommentPending() |
boolean |
isDeleteActionControlVisible() |
boolean |
isDiscussionVisible() |
boolean |
isEditActionControlVisible() |
boolean |
isEditControlsVisible() |
protected boolean |
isGroupAdmin() |
boolean |
isRatingsVisible() |
boolean |
isReplyActionControlVisible() |
boolean |
isWorkflowStatusVisible() |
isReplyButtonVisible
public DefaultCommentTreeDisplayContext(DiscussionRequestHelper discussionRequestHelper, DiscussionTaglibHelper discussionTaglibHelper, com.liferay.portal.kernel.comment.DiscussionPermission discussionPermission, com.liferay.portal.kernel.comment.DiscussionComment discussionComment)
public String getPublishButtonLabel(Locale locale)
getPublishButtonLabel
in interface com.liferay.portal.kernel.comment.display.context.CommentTreeDisplayContext
public boolean isActionControlsVisible() throws com.liferay.portal.kernel.exception.PortalException
isActionControlsVisible
in interface com.liferay.portal.kernel.comment.display.context.CommentTreeDisplayContext
com.liferay.portal.kernel.exception.PortalException
public boolean isDeleteActionControlVisible() throws com.liferay.portal.kernel.exception.PortalException
isDeleteActionControlVisible
in interface com.liferay.portal.kernel.comment.display.context.CommentTreeDisplayContext
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.CommentTreeDisplayContext
com.liferay.portal.kernel.exception.PortalException
public boolean isEditActionControlVisible() throws com.liferay.portal.kernel.exception.PortalException
isEditActionControlVisible
in interface com.liferay.portal.kernel.comment.display.context.CommentTreeDisplayContext
com.liferay.portal.kernel.exception.PortalException
public boolean isEditControlsVisible() throws com.liferay.portal.kernel.exception.PortalException
isEditControlsVisible
in interface com.liferay.portal.kernel.comment.display.context.CommentTreeDisplayContext
com.liferay.portal.kernel.exception.PortalException
public boolean isRatingsVisible() throws com.liferay.portal.kernel.exception.PortalException
isRatingsVisible
in interface com.liferay.portal.kernel.comment.display.context.CommentTreeDisplayContext
com.liferay.portal.kernel.exception.PortalException
public boolean isReplyActionControlVisible() throws com.liferay.portal.kernel.exception.PortalException
isReplyActionControlVisible
in interface com.liferay.portal.kernel.comment.display.context.CommentTreeDisplayContext
com.liferay.portal.kernel.exception.PortalException
public boolean isWorkflowStatusVisible()
isWorkflowStatusVisible
in interface com.liferay.portal.kernel.comment.display.context.CommentTreeDisplayContext
protected com.liferay.portal.kernel.theme.ThemeDisplay getThemeDisplay()
getThemeDisplay
in class BaseCommentDisplayContext
protected com.liferay.portal.kernel.model.User getUser()
protected boolean hasUpdatePermission() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected boolean hasViewPermission() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected boolean isCommentApproved()
protected boolean isCommentAuthor()
protected boolean isCommentPending()
protected boolean isGroupAdmin()