public class AbstractCommentCollectionConfiguration extends java.lang.Object implements CommentCollectionConfiguration
CommentCollectionConfiguration
.ALLOW_PRIVILEGED_MEMBERS, ANALYTICS_TIME_SELECTOR, ENABLE_MENTIONS, MAX_MENTIONS, MIN_IMG_DEFAULT_SIZE_FOR_THUMBNAIL, MIN_IMG_SIZE_FOR_THUMBNAIL_PROPERTY, PN_ALLOW_ATTACHMENT, PN_ALLOW_CLOSE, PN_ALLOW_CUSTOM_FLAGREASON, PN_ALLOW_DELETE_COMMENTS, PN_ALLOW_DENY, PN_ALLOW_FEATURED_CONTENT, PN_ALLOW_FLAGGING, PN_ALLOW_FOLLOWING, PN_ALLOW_MOVE, PN_ALLOW_PINNING, PN_ALLOW_REPLIES, PN_ALLOW_SUBSCRIPTIONS, PN_ALLOW_TAGGING, PN_ALLOW_TRANSLATE_ALL, PN_ALLOW_VOTING, PN_DO_NOT_GET_REPLIES_ON_LISTING_PAGE, PN_MAX_ITEMS_PER_PAGE, PN_RTE_ENABLED, PN_SHOW_BADGES, PN_SORT_FIELD, PN_SORT_FIELD_ORDER, PN_SORT_ORDER, PN_VOTING_ROOT, PN_VOTING_TYPE, PRIVILEGED_USERS_GROUP, PV_DEFAULT_ALLOW_ATTACHMENT, PV_DEFAULT_ALLOW_CLOSE, PV_DEFAULT_ALLOW_CUSTOM_FLAGREASON, PV_DEFAULT_ALLOW_DELETE_COMMENTS, PV_DEFAULT_ALLOW_DENY, PV_DEFAULT_ALLOW_FEATURED_CONTENT, PV_DEFAULT_ALLOW_FLAGGING, PV_DEFAULT_ALLOW_FOLLOWING, PV_DEFAULT_ALLOW_MOVE, PV_DEFAULT_ALLOW_PIN, PV_DEFAULT_ALLOW_REPLIES, PV_DEFAULT_ALLOW_SUBSCRIPTIONS, PV_DEFAULT_ALLOW_TRANSLATE_ALL, PV_DEFAULT_ALLOW_VOTING, PV_DEFAULT_ANALYTICS_TIME_SELECTOR, PV_DEFAULT_DO_NOT_GET_REPLIES_ON_LISTING_PAGE, PV_DEFAULT_LAST_UPDATED, PV_DEFAULT_NEWEST, PV_DEFAULT_RTE_ENABLED, PV_DEFAULT_SHOW_BADGES, PV_DEFAULT_SORT_FIELD, PV_DEFAULT_VOTING_ROOT, PV_DEFAULT_VOTING_TYPE, PV_SORT_ASC, PV_SORT_DESC, SORT_BY, THUMBNAIL_DEFAULT_SIZE, THUMBNAIL_SIZE_PROPERTY, UI_MENTION_PATTERN
Constructor and Description |
---|
AbstractCommentCollectionConfiguration(Resource commentSystem)
Constructor.
|
AbstractCommentCollectionConfiguration(ValueMap vm)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAnalyticsTimeSelector()
Get the default time selector for analytics properties like "last 24 hours" , "last 7 days" etc.
|
int |
getMaxMentions() |
long |
getMinimumImgSizeForThumbnail() |
int |
getPageSize() |
java.util.List<java.lang.String> |
getSortByItemsList()
Gets the default sort item list
|
java.util.List<java.util.Map.Entry<java.lang.String,java.lang.Boolean>> |
getSortFields()
Gets the sort fields.
|
CollectionSortedOrder |
getSortOrder() |
int |
getThumbNailSize() |
java.lang.String |
getUIMentionPattern() |
boolean |
isAttachmentAllowed()
Allows attachment.
|
boolean |
isCloseAllowed() |
boolean |
isCustomFlagReasonAllowed() |
boolean |
isDeleteAllowed() |
boolean |
isDenyAllowed() |
boolean |
isDoNotGetRepliesOnListingPage() |
boolean |
isEditAllowed() |
boolean |
isFeaturingContentAllowed() |
boolean |
isFlaggingAllowed() |
boolean |
isFollowingAllowed() |
boolean |
isMentionsEnabled() |
boolean |
isMoveAllowed() |
boolean |
isPinAllowed() |
boolean |
isReplyAllowed() |
boolean |
isRTEEnabled()
Checks if is RTE enabled.
|
boolean |
isSubscriptionsAllowed() |
boolean |
isTranslateAllButtonAllowed() |
boolean |
isVotingAllowed() |
public AbstractCommentCollectionConfiguration(Resource commentSystem)
commentSystem
- the CommentSystem
instance of the CommentCollectionpublic AbstractCommentCollectionConfiguration(@Nonnull ValueMap vm)
vm
- properties valuemap to use for the configurationpublic boolean isMentionsEnabled()
isMentionsEnabled
in interface CommentCollectionConfiguration
public int getMaxMentions()
getMaxMentions
in interface CommentCollectionConfiguration
public java.lang.String getUIMentionPattern()
getUIMentionPattern
in interface CommentCollectionConfiguration
public int getThumbNailSize()
getThumbNailSize
in interface CommentCollectionConfiguration
public long getMinimumImgSizeForThumbnail()
getMinimumImgSizeForThumbnail
in interface CommentCollectionConfiguration
public boolean isVotingAllowed()
isVotingAllowed
in interface CommentCollectionConfiguration
public boolean isAttachmentAllowed()
CommentCollectionConfiguration
isAttachmentAllowed
in interface CommentCollectionConfiguration
public boolean isRTEEnabled()
CommentCollectionConfiguration
isRTEEnabled
in interface CommentCollectionConfiguration
public boolean isCustomFlagReasonAllowed()
isCustomFlagReasonAllowed
in interface CommentCollectionConfiguration
public boolean isTranslateAllButtonAllowed()
isTranslateAllButtonAllowed
in interface CommentCollectionConfiguration
public int getPageSize()
getPageSize
in interface CommentCollectionConfiguration
public boolean isFlaggingAllowed()
isFlaggingAllowed
in interface CommentCollectionConfiguration
public boolean isCloseAllowed()
isCloseAllowed
in interface CommentCollectionConfiguration
public boolean isPinAllowed()
isPinAllowed
in interface CommentCollectionConfiguration
public boolean isDenyAllowed()
isDenyAllowed
in interface CommentCollectionConfiguration
public boolean isEditAllowed()
isEditAllowed
in interface CommentCollectionConfiguration
public boolean isReplyAllowed()
isReplyAllowed
in interface CommentCollectionConfiguration
public boolean isDeleteAllowed()
isDeleteAllowed
in interface CommentCollectionConfiguration
public boolean isFollowingAllowed()
isFollowingAllowed
in interface CommentCollectionConfiguration
public boolean isSubscriptionsAllowed()
isSubscriptionsAllowed
in interface CommentCollectionConfiguration
public CollectionSortedOrder getSortOrder()
getSortOrder
in interface CommentCollectionConfiguration
CollectionSortedOrder
.REVERSED_ORDER.public boolean isMoveAllowed()
isMoveAllowed
in interface CommentCollectionConfiguration
public java.util.List<java.util.Map.Entry<java.lang.String,java.lang.Boolean>> getSortFields()
CommentCollectionConfiguration
getSortFields
in interface CommentCollectionConfiguration
public java.util.List<java.lang.String> getSortByItemsList()
CommentCollectionConfiguration
getSortByItemsList
in interface CommentCollectionConfiguration
public java.lang.String getAnalyticsTimeSelector()
CommentCollectionConfiguration
getAnalyticsTimeSelector
in interface CommentCollectionConfiguration
public boolean isFeaturingContentAllowed()
isFeaturingContentAllowed
in interface CommentCollectionConfiguration
public boolean isDoNotGetRepliesOnListingPage()
isDoNotGetRepliesOnListingPage
in interface CommentCollectionConfiguration
Copyright © 2010 - 2020 Adobe. All Rights Reserved