The following are methods for CommunityModeration. All methods are static.
29.0
Yes
public static ConnectApi.ModerationFlags addFlagToComment(String communityId, String commentId)
30.0
Yes
public static ConnectApi.ModerationFlags addFlagToComment(String communityId, String commentId, ConnectApi.CommunityFlagVisibility visibility)
38.0
Yes
public static ConnectApi.ModerationFlags addFlagToComment(String communityId, String commentId, ConnectApi.CommunityFlagType type)
If a type isn’t specified, it defaults to FlagAsInappropriate.
38.0
Yes
public static ConnectApi.ModerationFlags addFlagToComment(String communityId, String commentId, String note)
38.0
Yes
public static ConnectApi.ModerationFlags addFlagToComment(String communityId, String commentId, ConnectApi.CommunityFlagType type, String note)
If a type isn’t specified, it defaults to FlagAsInappropriate.
38.0
Yes
public static ConnectApi.ModerationFlags addFlagToComment(String communityId, String commentId, ConnectApi.CommunityFlagType type, ConnectApi.CommunityFlagVisibility visibility)
If a type isn’t specified, it defaults to FlagAsInappropriate.
38.0
Yes
public static ConnectApi.ModerationFlags addFlagToComment(String communityId, String commentId, ConnectApi.CommunityFlagVisibility visibility, String note)
To add a flag to a comment, Allow members to flag content must be selected for a community.
38.0
Yes
public static ConnectApi.ModerationFlags addFlagToComment(String communityId, String commentId, ConnectApi.CommunityFlagType type, ConnectApi.CommunityFlagVisibility visibility, String note)
If a type isn’t specified, it defaults to FlagAsInappropriate.
To add a flag to a comment, Allow members to flag content must be selected for a community.
31.0
Yes
public static ConnectApi.ModerationCapability addFlagToFeedElement(String communityId, String feedElementId)
Type: ConnectApi.ModerationCapability
If the feed element doesn’t support this capability, the return value is ConnectApi.NotFoundException.
31.0
Yes
public static ConnectApi.ModerationCapability addFlagToFeedElement(String communityId, String feedElementId, ConnectApi.CommunityFlagVisibility visibility)
Type: ConnectApi.ModerationCapability
If the feed element doesn’t support this capability, the return value is ConnectApi.NotFoundException.
38.0
Yes
public static ConnectApi.ModerationCapability addFlagToFeedElement(String communityId, String feedElementId, ConnectApi.CommunityFlagType type)
If a type isn’t specified, it defaults to FlagAsInappropriate.
To add a flag to a feed element, Allow members to flag content must be selected for a community.
38.0
Yes
public static ConnectApi.ModerationCapability addFlagToFeedElement(String communityId, String feedElementId, String note)
To add a flag to a feed element, Allow members to flag content must be selected for a community.
38.0
Yes
public static ConnectApi.ModerationCapability addFlagToFeedElement(String communityId, String feedElementId, ConnectApi.CommunityFlagType type, String note)
If a type isn’t specified, it defaults to FlagAsInappropriate.
To add a flag to a feed element, Allow members to flag content must be selected for a community.
38.0
Yes
public static ConnectApi.ModerationCapability addFlagToFeedElement(String communityId, String feedElementId, ConnectApi.CommunityFlagType type, ConnectApi.CommunityFlagVisibility visibility)
If a type isn’t specified, it defaults to FlagAsInappropriate.
To add a flag to a feed element, Allow members to flag content must be selected for a community.
38.0
Yes
public static ConnectApi.ModerationCapability addFlagToFeedElement(String communityId, String feedElementId, ConnectApi.CommunityFlagVisibility visibility, String note)
To add a flag to a feed element, Allow members to flag content must be selected for a community.
38.0
Yes
public static ConnectApi.ModerationCapability addFlagToFeedElement(String communityId, String feedElementId, ConnectApi.CommunityFlagType type, ConnectApi.CommunityFlagVisibility visibility, String note)
If a type isn’t specified, it defaults to FlagAsInappropriate.
To add a flag to a feed element, Allow members to flag content must be selected for a community.
In version 32.0 and later, use addFlagToFeedElement(communityId, feedElementId).
Yes
public static ConnectApi.ModerationFlags addFlagToFeedItem(String communityId, String feedItemId)
In version 32.0 and later, use addFlagToFeedElement(communityId, feedElementId, visibility).
Yes
public static ConnectApi.ModerationFlags addFlagToFeedItem(String communityId, String feedItemId, ConnectApi.CommunityFlagVisibility visibility)
29.0
Yes
public static ConnectApi.ModerationFlags getFlagsOnComment(String communityId, String commentId)
30.0
Yes
public static ConnectApi.ModerationFlags getFlagsOnComment(String communityId, String commentId, ConnectApi.CommunityFlagVisibility visibility)
40.0
Yes
public static ConnectApi.ModerationFlags getFlagsOnComment(String communityId, String commentId, Integer pageSize, String pageParam)
40.0
Yes
public static ConnectApi.ModerationFlags getFlagsOnComment(String communityId, String commentId, ConnectApi.CommunityFlagVisibility visibility, Integer pageSize, String pageParam)
31.0
Yes
public static ConnectApi.ModerationCapability getFlagsOnFeedElement(String communityId, String feedElementId)
Type: ConnectApi.ModerationCapability Class
If the feed element doesn’t support this capability, the return value is ConnectApi.NotFoundException.
31.0
Yes
public static ConnectApi.ModerationCapability getFlagsOnFeedElement(String communityId, String feedElementId, ConnectApi.CommunityFlagVisibility visibility)
Type: ConnectApi.ModerationCapability Class
If the feed element doesn’t support this capability, the return value is ConnectApi.NotFoundException.
40.0
Yes
public static ConnectApi.ModerationCapability getFlagsOnFeedElement(String communityId, String feedElementId, String pageParam, Integer pageSize)
Type: ConnectApi.ModerationCapability Class
If the feed element doesn’t support this capability, the return value is ConnectApi.NotFoundException.
40.0
Yes
public static ConnectApi.ModerationCapability getFlagsOnFeedElement(String communityId, String feedElementId, ConnectApi.CommunityFlagVisibility visibility, Integer pageSize, String pageParam)
Type: ConnectApi.ModerationCapability Class
If the feed element doesn’t support this capability, the return value is ConnectApi.NotFoundException.
In version 32.0 and later, use getFlagsOnFeedElement(communityId, feedElementId).
Yes
public static ConnectApi.ModerationFlags getFlagsOnFeedItem(String communityId, String feedItemId)
In version 32.0 and later, use getFlagsOnFeedElement(communityId, feedElementId, visibility).
Yes
public static ConnectApi.ModerationFlags getFlagsOnFeedItem(String communityId, String feedItemId, ConnectApi.CommunityFlagVisibility visibility)
29.0
Yes
public static ConnectApi.ModerationFlags removeFlagFromComment(String communityId, String commentId, String userId)
Type: Void
31.0
Yes
public static void removeFlagFromFeedElement(String communityId, String feedElementId, String userId)
Type: ConnectApi.ModerationCapability Class
If the feed element doesn’t support this capability, the return value is ConnectApi.NotFoundException.
In version 32.0 and later, use removeFlagFromFeedElement(communityId, feedElementId, userId).
Yes
public static ConnectApi.ModerationFlags removeFlagsOnFeedItem(String communityId, String feedItemId, String userId)
Type: Void