Enables scripted content fragments to use AbusiveContent
Properties
Name | Access | Type | Description |
---|---|---|---|
DefiniteAbuseThreshold | Read | Int32 | Ignore content in the abuse management list. It will not be shown again until another report is made on it. |
PossibleAbuseThreshold | Read | Int32 | Returns an abusive content record for a given piece of content |
Methods
Get
Velocity
#set($abusiveContentResponse = $core_v2_abusiveContent.Get($contentId, $contentTypeId))
JavaScript
var abusiveContentResponse = core_v2_abusiveContent.Get(contentId, contentTypeId);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contentId | Guid | Content Id | Required | ||
contentTypeId | Guid | Content Type Id | Required |
Returns
Ignore
Velocity
$core_v2_abusiveContent.Ignore($contentId, $contentTypeId)
JavaScript
core_v2_abusiveContent.Ignore(contentId, contentTypeId);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contentId | Guid | Content Id | Required | ||
contentTypeId | Guid | Content Type Id | Required |
Returns
NothingIsModerated
Velocity
#set($booleanResponse = $core_v2_abusiveContent.IsModerated($contentId, $contentTypeId))
JavaScript
var booleanResponse = core_v2_abusiveContent.IsModerated(contentId, contentTypeId);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contentId | Guid | Content Id | Required | ||
contentTypeId | Guid | Content Type Id | Required |
Returns
Boolean
List
Lists abusive content
Velocity
#set($pagedListResponse = $core_v2_abusiveContent.List("%{ AbuseState = $abuseStateArg, AppealState = $appealStateArg, ApplicationId = $applicationIdArg, AuthorUserId = $authorUserIdArg, ContainerId = $containerIdArg, ContentTypeId = $contentTypeIdArg, EndCreateDate = $endCreateDateArg, EndReportDate = $endReportDateArg, IncludeIgnoredContent = $includeIgnoredContentArg, PageIndex = $pageIndexArg, PageSize = $pageSizeArg, SortBy = $sortByArg, SortOrder = $sortOrderArg, StartCreateDate = $startCreateDateArg, StartReportDate = $startReportDateArg }"))
JavaScript
var pagedListResponse = core_v2_abusiveContent.List({ AbuseState: abuseStateArg, AppealState: appealStateArg, ApplicationId: applicationIdArg, AuthorUserId: authorUserIdArg, ContainerId: containerIdArg, ContentTypeId: contentTypeIdArg, EndCreateDate: endCreateDateArg, EndReportDate: endReportDateArg, IncludeIgnoredContent: includeIgnoredContentArg, PageIndex: pageIndexArg, PageSize: pageSizeArg, SortBy: sortByArg, SortOrder: sortOrderArg, StartCreateDate: startCreateDateArg, StartReportDate: startReportDateArg });
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
AbuseState | String | Abuse State | Optional | Abusive, Default, Expunged, Moderated, NotAbusive, NotReported, Reported | |
AppealState | String | Appeal State | Optional | Accepted, AuthorResponded, Default, Expired, Initiated, ModerationRequired, Rejected | |
ApplicationId | Guid | Application Id | Optional | ||
AuthorUserId | Guid | Author User Id | Optional | ||
ContainerId | Guid | Container Id | Optional | ||
ContentTypeId | Guid | Content Type Id | Optional | ||
EndCreateDate | DateTime | End Create Date | Optional | ||
EndReportDate | DateTime | End Report Date | Optional | ||
IncludeIgnoredContent | Boolean | Include Ignored Content | Optional | ||
PageIndex | Int32 | Specify the page number of paged results to return. Zero-based index. | Optional | 0 | |
PageSize | Int32 | Specify the number of results to return per page. | Optional | 20 | |
SortBy | String | Sort By | Optional | AbuseId, AuthorUserId, AuthorUserName | |
SortOrder | String | Sort order | Optional | Ascending | Ascending, Descending |
StartCreateDate | DateTime | Start Create Date | Optional | ||
StartReportDate | DateTime | Start Report Date | Optional |